Message 1 of 5
MEL script rigid bodys?
Not applicable
07-12-2010
11:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all. I am new in scripting, but I wanted to move center of Mass on all my rigid body objects with MEL script, but it fails to execute. Please help me to find the mistake.
How can I make MEL understand that $i is a number?
for ($i = 1; $i <= 100; $i++)
{
setAttr "rigidBody$i.centerOfMassY" -7.131;
setAttr "rigidBody$i.centerOfMassZ" -6.28;
};
// Error: line 3: setAttr: No object matches name: rigidBody$i.centerOfMassY //
How can I make MEL understand that $i is a number?