Notifications
Clear all

[Closed] Use maxscript to get the element hierarchy of objects in track/curve

I don’t know how to use maxscript to get the hierarchical relationship of objects in track/curve. What command do I need to get the hierarchical name information to judge whether the current morpher level is correct?!!imageimage

2 Replies
if $.modifiers[#morpher] != undefined do
(
	local n = finditem (getPropNames $[4]) #morpher
	if n > 0 then
		"right"
	else 
		"error" 
)

in “Error” case we have a node with a reference object… but in any case, all modifiers are still available for access

$.modifiers[Morpher]