ricardoarango
06-21-2007, 12:48 AM
I want to create a hierarchy, father and son usingmaxscript
The idea is, I have an object, with a modifier called Alouatta Object, and through a pick object button, I use attachObjects to link them together... but..
When I try that, it gives me an error:
Unable to Convert Alouatta:Alouatta Object to type: <node>
In my modifier I have this code:
on pickMesh picked obj do
(
if isValidNode obj then (
if (classOf(obj) as string) == "NxActor" then (
nxactorTxt.text = obj.name
NodeNxActor = obj
attachObjects this obj
)
)
)
The line where it fails is "attachObjects this obj", saying the "this" is not a node..
My question is: How can I get the node from my object that has the modifier?
The idea is, I have an object, with a modifier called Alouatta Object, and through a pick object button, I use attachObjects to link them together... but..
When I try that, it gives me an error:
Unable to Convert Alouatta:Alouatta Object to type: <node>
In my modifier I have this code:
on pickMesh picked obj do
(
if isValidNode obj then (
if (classOf(obj) as string) == "NxActor" then (
nxactorTxt.text = obj.name
NodeNxActor = obj
attachObjects this obj
)
)
)
The line where it fails is "attachObjects this obj", saying the "this" is not a node..
My question is: How can I get the node from my object that has the modifier?
