Page 1 of 1

Maya: convert collision shapes back to mesh...

Posted: Thu Nov 04, 2010 8:59 pm
by itiunov@gmail.com
Hi. I have a stupid question:

I've done some RBD simulation, bake keys (they bakes into dRigidBody#### transforms). My source geometry stay hidden and still. I want to transfer baked animation from dRigidBodys to source meshes... Please help. Thank You!

Stupid MEL that helps me...

Posted: Fri Nov 05, 2010 9:45 pm
by itiunov@gmail.com

Code: Select all

$selected = `ls -sl`;

for($node in $selected)
{
    select -r $node;
    pickWalk -d down;
    $temp = `ls -sl`;
    setAttr ($temp[0] + ".visibility") 0;
    $temp = `listConnections`;
    select -r $temp[0];
    $temp = `listConnections`;
    select -r $temp[1];
    showHidden -a;
    select -add $node;
    parent;
}