How to reference object's name on it's own script event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bule
    Indigo Rose Customer
    • May 2005
    • 1116

    How to reference object's name on it's own script event

    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?
    Never know what life is gonna throw at you. ZubTech
  • Derek
    Indigo Rose Customer
    • May 2001
    • 1254

    #2
    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.
    Last edited by Derek; 01-13-2008, 04:45 AM.
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment

    • bule
      Indigo Rose Customer
      • May 2005
      • 1116

      #3
      That is exactly what I need!
      Thank you Derek.
      Never know what life is gonna throw at you. ZubTech

      Comment

      Working...
      X