PDA

View Full Version : Custom Attribute "Node" to Script Controller


mustan9
08-29-2006, 04:26 PM
Hi,

I created a custom attribute modifier on an object, and created an attribute that is a node picker in the scene. So the artist can pick an object in the scene.

I then want to be able to create a scripted controller that will reference that custom attribute, so that the artist can change which node is used by the controller. Without having to navigate to the scripted controllers properties.

I hope this makes sense?

The problem is that when I try to assign the node to a variable in the scripted controllers editor. The custom attribute does not appear. It also does not appear in track editor.

Anyone know why?

Thanks,

PEN
08-29-2006, 05:12 PM
I'm not sure that I follow, can you try and explain a bit more on this and maybe show your code.

mustan9
08-29-2006, 06:31 PM
Hi Paul,

I was trying to link a variable in the scripted controller to a custom attribute on another object. An attribute that was a node picker, but the scripted controller editor wouldn't let me do it. Now I know why, because the custom attribute is not a parameter controller.

So I just hard coded the reference like this in my scripted controller to the customer attribute, and it works.

$chassi_position.modifiers[1].GroundPlane

Thanks for the quick reply,

EDIT: Why do I keep spelling 'custom' as 'customer', sorry.

CGTalk Moderation
08-29-2006, 06:31 PM
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.