Adding objects to cloth modifier HELP!

Hey,

I am trying to add simulation properties (0 for collsion, 1 for cloth) to objects in a cloth modifier I have on a plane object. I can add the objects to the modifier but when I try to set whether they are a collision object or a cloth object I get the following error when running the script: --Runtime error: Error, object is not part of simulation

Any ideas on how to fix this because I have no clue at this stage!

Thanks

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

this works for

this works for me:

$YourClothObject.modifiers[#Cloth].setObjectType $YourClothObject 0 

"0" is inactive, "1" is collision object and "2" is cloth object

Never get low & slow & out of ideas

Graph's picture

post the code you got so far

post the code you got so far if you still need help with it, then others have less work to do while fixing it

Raphael 'Insanto' Steves
http://Graph.Net84.Net

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.