How do I get components in perspective

unitList = system.gui.getWindow(“UnitList”).getRootContainer().getComponent(‘Units’)

Is there some way to do the same thing?Thx, jake

figured it out

plz, let me know how in perspective?

Have this in the control calling a project script function:
Units.Load(self)

In the project script function use the object passed in as caller:
caller.getSibling(“Units”)

So basically from an event on a control, say a button you can do self.getSibling(""). You can pass self to script function in Scripting/Project Library/Units with a function in it called Load with the above code.

While this works, consider looking into perspective messages and message handlers. Doing it this way makes things easier if you have to interact with the component from different levels. (Inside a group, outside a group, from outside an embedded view, etc.)