[Closed] Node or MaxObject
Hello,
I think I may have to store some refrences/pointers in a custom attribute def about some objects in my rig, after a look in the docs I noticed it mentions “node” and “maxobject” parameter types. I assume I need Node, but can anybody tell me what the “maxobject” parameter type is for and how it is used?
Cheers
Dan
Drop by my site and have a look at the tutorial I have set up on using weak references instead of nodes. This will use the maxObject type.
Hi Paul,
I dissected the example and tried an experiment which was to add another button to your script which would move the object currently selected in the list.
on btn_move pressed [color=white]do
[/color](
num=nodesListLb.selection
if num>0 then
(
nodeArray = for n in refNodes collect n.node
move nodeArray[num] [34,88,99]
)
)
Is this the best way to go about accessing and manipulating the objects stored in the refNodes.
Thanks
Dan
Ya that looks like it should work. Or you could just loop through the array of refNodes and set the position with something like refNodeArray[x].node.pos=[0,0,0].