ScriptSpot home

Forum topic · General Scripting

Adding objects to cloth modifier HELP!

By smithy2306 · 2010-10-16

Description

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 (2)
br0t

this works for me:

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

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

Graph

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