PDA

View Full Version : Assign Node variable in controller?


gasmasocet
10-05-2006, 02:01 AM
i write scripted controler
in the script window i see a button "assign to node" in variable area, how can i make this with script. Idea is to use this function "Assign to node" becouse it keeps the connection even if i rename the object

for example let variable MyVar to be assigned to node $Box1
how to make this with max script?

davestewart
10-05-2006, 07:52 AM
s = sphere()
b = box()
sc = s.position.controller[3].controller = float_script()
sc.AddNode "b" b

showinterfaces sc -- this command will show you all the ways to interact with your script controller

CGTalk Moderation
10-05-2006, 07:52 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.