View Full Version : How to reference object's name on it's own script event

01-13-2008, 04:27 AM
I have some objects (32 of them, for teeth) that all do the same thing.
I want for them to all have the same action, that would change one Paragraph object and put their name in it, but I do not want to hard code the names, instead get them from the name of the object that triggered the event. In OO languages this is easly doable by using self.Name approach. Is there something similar in APMS?

01-13-2008, 04:34 AM
Does this work for you ?

ie: 32 buttons setting the text on an input object would work with:
Input.SetText("Input1", Button.GetProperties(this).ObjectName);

Dont know if that helps.

01-13-2008, 04:53 AM
That is exactly what I need!
Thank you Derek.