I'm looking for a way to detect if there is any biped collection in selection
and remove it - so two separate actions. Is there any way to achieve it, I found
only this but no idea how to use it, not mentioning about detection:
biped.deleteAllCopies (#posture | #pose | #track)
biped.getCopyName (#posture | #pose | #track)
I would be gretefull for help.
Comments (3)
Comment policy
Thank You very much, work great.
This is exucly what I needed.
-- delete scene bipeds
delete (for o in objects where isKindOf o Biped_Object collect o)
-- delete all copies
if selection.count != 0 do
(
for b in selection where isKindOf b Biped_Object do
(
if biped.numCopies b[3].track #posture != 0 do biped.deleteAllCopies b[3].track #posture
if biped.numCopies b[3].track #pose != 0 do biped.deleteAllCopies b[3].track #pose
if biped.numCopies b[3].track #track != 0 do biped.deleteAllCopies b[3].track #track
)
)