XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Getting node that custom attribute is on

03-02-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: this.name = "new name"

I hope I explained this clear enough.

Tak Tak
03-04-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-07-2005, 07:47 PM
Of course, why didn't I think about it. This should do it. Thanks a lot.

CGTalk Moderation
03-07-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.