PDA

View Full Version : checking children


zworp
04-25-2003, 01:42 PM
hi,
I would like to find out if a object has children (objects parented under it..) and if so the names of the children.

hm.. hope you understand what I mean

thanks for any help
/zworp

alexx
04-25-2003, 02:05 PM
with:
ls -sl -dag -tr
you can get all the transform nodes from one seelected object. if the size of the return array = 1, there are no children.
if the return is bigger than 1, it has children and all the returned array from 1 to the size of it holds the names of the children.

cheers

alexx

zworp
04-25-2003, 02:47 PM
ahhh great! thanks

tymznd
04-25-2003, 06:29 PM
"listRelatives" by default returns all the children's names (-c flag). See "mel commands" in help.

CGTalk Moderation
01-15-2006, 12: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.