Jump to content
GreenSock

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

Hiding Handles

Recommended Posts

Hi,

 

Can anyone recommend the best way to hide specific handles...

 

I want to keep the corner handles, but remove the V and H handles, but and here's the catch, depending on what kind of item has been selected... So I need to check all the selected items whenever an TransformItem is selected, if a particular type (i.e. the TransformItems target) is contained in that list, turn off / on the handles.

 

I've extended the TransformManager for a few other tweaks, and have tried to implement this in the redrawHandles method, but am having no joy.

 

Any suggestions?

 

A\

Link to comment
Share on other sites

Yep, it sounds like you're on the right track (extending that method). calibrateConstraints() also gets called whenever a new selection is added (in case that helps you).

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.
×