Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Direct Access to Element in a Vector Array?
  RSS 2.0 ATOM  

Direct Access to Element in a Vector Array?
Rate this thread
 
49374
 
Permlink of this thread  
avatar
  • prolow
  • Posted: 12 November 2010 12:21 PM
  • Total Posts: 7
  • Joined: 16 June 2009 01:44 PM

what’s the correct way to do this?
vector arrays aren’t described in the doc’s

vector $vector[];
$vector[0] = <<000>>;

//want to do
xform --os ($vector[0].x) ($vector[0].y) ($vector[0].zmesh.vtx[0];
//syntax error! WTF?


Replies: 0
avatar
  • THNKR
  • Posted: 12 November 2010 12:43 PM

vector $vector;
$vector = <<000>>;

//want to do
xform -os -($vector.x) ($vector.y) ($vector.zmesh.vtx[0];


Replies: 0