View Full Version : Getting node that custom attribute is on

03 March 2005, 08:13 PM
i'm trying to get node that custom attribute is on from custom attribute code. For example, when i press button (added as CA) called "rename me" object's name changes. So i'm looking for something like: = "new name"

I hope I explained this clear enough.

Tak Tak
03 March 2005, 01:22 PM
Do you mean something like this?

rollout AAA "AAA"
button btn1 "Rename" width:90 height:15

on btn1 pressed do
try ($.name = "New Name") catch()

createDialog AAA

You can use same code on your custom attribute without "rollout AAA "AAA"..." and "createDialog AAA".

Or did I misunderstood?

03 March 2005, 07:47 PM
Of course, why didn't I think about it. This should do it. Thanks a lot.

CGTalk Moderation
03 March 2005, 07:47 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.