Notifications
Clear all

[Closed] Custom Attribute "Node" to Script Controller

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,

2 Replies
 PEN

I’m not sure that I follow, can you try and explain a bit more on this and maybe show your code.

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.