PDA

View Full Version : Disable cloth solving at a certain frame?


DesignDawg
06-15-2003, 12:16 AM
Hey all,

I'm working on a commercial with 3 different windows with 2 curtains each.....

I have a different solver set up for each curtain, and I would like to be able to essentially disable cloth solving at the frames at which the camera moves off the curtain.

In other words, as soon as the camera moves away from window 1, its cloth no longer needs to exist. I know I can make 3 scenes and only solve the parts I need for each cloth object...

But if there is a simple way to basically set a "cloth end frame", I would love to know it.

Ricky

mental
06-15-2003, 03:32 PM
hi ricky,

just an idea: you might be able to key the "solver enable" attribute (found on the cloth's solver node).

cloth solver 1 On "cpSolver1.solverEnabled" 1;
cloth solver 1 Off "cpSolver1.solverEnabled" 0;

there isn't an easy or overt option to set the end frame to a cloth simulation that i know of (i don't know why there isn't) but keying the the enable attribute should do just the same thing.

just a reminder since cloth simulations take time: i'm not sure if the "solverEnabled" deals in decimals (like the envelope attribute) or just whole numbers (0, 1). if it works in decimals make sure to key the attribute at the value of 1 on the second to last frame of the simulation then set the value to 0 on the last frame. you don't need your simulation gradually turning off during the entire shot ;)

hope that helps
-mental :surprised

CGTalk Moderation
01-15-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.