Angle parameters
Angle parameters
- Subject: Angle parameters
- From: Garrick Meeker <email@hidden>
- Date: Thu, 21 May 2015 16:46:18 -0700
There’s a discrepancy in the documentation between addAngleSliderWithName, getFloatValue, and setFloatValue about whether the units are degrees or radians. addAngleSliderWithName says:
The min and max values are expressed in radians, while the defaultValue is expressed in degrees. Angle parameter values should be retrieved using the -getFloatValue:, and are expressed in counter-clockwise degrees.
Prior to FxPlug 1.2, the documentation for this method had the units (degrees and radians) reversed. However, the implementation has not changed.
getFloatValue says:
When used to get the value of an angle parameter, the result will be expressed in counter-clockwise radians.
setFloatValue says:
When used to set the value of an angle parameter, the result will be expressed in counter-clockwise degrees.
I’m currently seeing getFloatValue return radians (I’m using ignore min/max so I’m not sure about the min/max values) and I haven’t used setFloatValue. I could have sworn I got degrees out of FCP 10.1 and FCP 7 but I haven’t confirmed that. Can we get clarification on the correct units for these calls (and if there is currently a bug in FCP)?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden