Select all parents for an object

Hi all!

Is there a way to select all parents to an object?

Have a great day!

Comments

Comment viewing options

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

Hi Insanto! You are

Hi Insanto!

You are absolutely right. Thats what I want. I will check your script out.

Thank you so much for your help!

Graph's picture

as an object can only have

as an object can only have one parent in max i guess you want to walk up through the chain and collect everything on your way there?!

(
	fn add2Arr obj arra=(if isValidNode obj and isValidNode obj.parent do(append arra obj.parent;add2Arr obj.parent arra))
 
	local arr = #()
	add2Arr selection[1] arr
 
	print (arr as string)
)

Raphael Steves

Comment viewing options

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