Message 1 of 3
Expressions through MEL .. need help

Not applicable
01-20-2012
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im working on simple script in which I want to connect some attributes with sine of Time through MEL
there are 20-40 grass planes. each has "RandValue" attributes in them. There is Main control where I want to Control all plane's speed by its speed attributes.
...here is the script
but something is wrong and getting errors.
there are 20-40 grass planes. each has "RandValue" attributes in them. There is Main control where I want to Control all plane's speed by its speed attributes.
...here is the script
string $sel []=`ls -sl`;
for ($eachObj in $sel)
{
expression -o $eachObj -s "rx = sin (frame) * $eachObj.RandValue * ctrl.Speed;";
//--- Here the ctrl is control for speed.
but something is wrong and getting errors.