EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/RectangleControl
From VFXPedia
In addition to RCP_Center and RCP_Angle there is also RCP_Axis which needs to point to the input control that defines the center of rotation for the rectangular overlay. In many standard tools, this is an OffsetControl labeled "Pivot".
The transform fuse example that ships with Fusion doesn't completely recreate the rectangle overlay of the regular transform tool. By using RCP_Angle and RCP_Axis, the overlay is transformed correctly. However, the preview controls for angle and pivot don't move along with the rectangle. This needs to be implemented manually:
- Turn on INP_DoNotifyChanged for the input control that is linked to RCP_Center.
- In the NotifyChanged event handler, set two attributes for both your angle and pivot preview controls (i.e. the inputs linked to RCP_Angle and RCP_Axis): PCD_OffsetX and PCD_OffsetY will shift the preview controls in the viewer and need to be updated with the current position of the center control (minus 0.5 to account for it's default resting position in the middle of the image).
If you want to use separate sliders for X and Y size, keep in mind that PC_Visible (to show/hide the preview widget) also has to be set for both inputs. Otherwise you'll only hide the width or height part of your preview control.