PDA

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



bule
01-13-2008, 05: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?

Derek
01-13-2008, 05: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.

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