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 / Dynamic Node Names in Expressions?
  RSS 2.0 ATOM  

Dynamic Node Names in Expressions?
Rate this thread
 
52865
 
Permlink of this thread  
avatar
  • sfjedi
  • Posted: 02 March 2011 01:24 AM
  • Location: San Francisco, CA
  • Total Posts: 6
  • Joined: 11 October 2009 03:35 AM

You know how if you change a nodeName in an expression it will also change the name inside of it as well? Well, how do we go about doing this for stuff like a pointPosition, where the nodeName is inside of a string?

For example:

vector $v = `pointPosition -world "outputCloth1.vtx[11]"`;

If you change outputCloth1’s name to myCloth then the expression stops working, because the string still says outputCloth1!



"If you have a difficult task, give it to a lazy person; they will find an easier way to do it.” -Hlade’s Law
NVIDIA Quadro FX 1700 (dual DVI configuration)
Monitor 1: 22" Dell SP2208WFP @ 1440×900
Monitor 2: 19" HP w19b @ 1440×900
Microsoft Windows Vista Home Premium SP2 (64-bit)
AMD Phenom 9550 Quad-Core Processor 2.20 GHz
Memory (RAM): 6GB
Maya 2010 (64-bit)

Replies: 0