Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
clipclicmusic

Get a refernce to the manager from the item

Recommended Posts

What is the simplest way to get a reference to the manager from an item (that is managed)

 

ie I have several managers...

add an item to a manager, then later I have an action from that item, and want to get a reference to its manager (parent?)

 

Any ideas?

 

Thanks

 

Jason

Link to comment
Share on other sites

In all these years, you're the first to ask for this :) I've never seen a need for it, but I can see now how it might be useful in some cases so I just uploaded an update to TransformManager that has a "manager" getter. Does that suffice? Just log into your GreenSock account to get the latest version. https://www.greensock.com/account/

Link to comment
Share on other sites

Hi Jack

 

Awesome...

That's saved me a few hours of headscratching...

BTW, I checked the source code.

It was an interesting experience to see how code SHOULD be written :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×