FORUMS: list search recent posts

Maya Expressions (String Variables Not Working)

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Melissa Yung
Maya Expressions (String Variables Not Working)
on Apr 9, 2012 at 7:29:40 pm

Hi,

I have am testing variables in an expression and have created string called $objectName, how can I use this in this expression as it is currently not working:

string $objectName = "wave1.translateY";

$objectName = (sin(time * 20) * 5) + 15;


When I create the expression it says it's created but it doesn't actually do anything, whereas when I write it normally "wave1.translateY = (sin(time * 20) * 5) + 15;" it puts the sine wave into my object.

Any help is greatly appreciated,

Many thanks, Melissa


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]