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

if $.modifiers[#morpher] != undefined do
	local n = finditem (getPropNames $[4]) #morpher
	if n > 0 then


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