PDA

View Full Version : Node or MaxObject


djlane
06-08-2006, 02:23 PM
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

PEN
06-08-2006, 09:52 PM
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.

djlane
06-08-2006, 11:53 PM
Thanks, I will take a look.

Cheers

Dan

djlane
06-09-2006, 12:41 AM
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 do

(

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

PEN
06-09-2006, 01:26 AM
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].

djlane
06-09-2006, 10:20 AM
Thanks for the help.


Dan

CGTalk Moderation
06-09-2006, 10:20 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.