[Closed] mCloth/Cloth – making several groups by script
Working on a project where I have to make several cloth point/vertex groups and attach them to alot of already animated objects – this way ripping the cloth apart. Due to the amount of object attachments I would like to do this by script.
Essentially running through all the nodes to attach to, and by volume_select by node retriving a vertex selection for group creation.
but while testing I seemed unable to make more than one group by script, if a group is defined in the cloth/mcloth modifier i get a system exception error
Simple test here:
$test.modifiers[#mCloth].makePointGroup #{1..5} $test "grp1"
– goes fine except name turns out weird ( instead of grp1 it becomes 㢈䁝
)
$test.modifiers[#mCloth].makePointGroup #{6..25} $test "grp2"
** system exception **
If I use the old Cloth name turns out just fine but Im still only able to make one group.
Does anyone know if this simply just doesnt work atm or Im doing something completely wrong here?
64bit – tried the script in 2012 ( with normal Cloth mod ) and there it works fine, but would like to make it work with mcloth since it seems quicker and easier to setup tearing etc.