Maya: convert collision shapes back to mesh...

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
itiunov@gmail.com
Posts: 4
Joined: Sat Oct 30, 2010 7:17 pm

Maya: convert collision shapes back to mesh...

Post 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!
itiunov@gmail.com
Posts: 4
Joined: Sat Oct 30, 2010 7:17 pm

Stupid MEL that helps me...

Post 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;
}
Post Reply