Skip to content

Commit

Permalink
Merge pull request #5247 from johnhaddon/referenceFrameActivator
Browse files Browse the repository at this point in the history
ConstraintUI : Add activator for `referenceFrame` plug
  • Loading branch information
murraystevenson authored Apr 12, 2023
2 parents ccc8fea + 0a93ae5 commit 933b0ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Improvements
- ArnoldAttributes : Added `shadowAutoBumpVisibility` plug, since Arnold 7.2.1.0 now correctly implements this feature.
- Shader : Added support for shading input connections to splines. After double clicking on a spline to open the editor, you may select a control point, and then drag an input to the value control. Works in GafferImage, GafferObject and Arnold. Supports a max of 32 values in the spline.
- FloatSpline and ColorSpline OSL shaders : Added a `direction` parameter, with options of `U`, `V`, `Diagonal`, `Radial` and `Custom`.
- Constraint : Disabled the `referenceFrame` plug in the NodeEditor when `keepReferencePosition` is off.

Fixes
-----
Expand Down
3 changes: 3 additions & 0 deletions python/GafferSceneUI/ConstraintUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"layout:activator:targetModeIsUV", lambda node : node["targetMode"].getValue() == GafferScene.Constraint.TargetMode.UV,
"layout:activator:targetModeIsVertex", lambda node : node["targetMode"].getValue() == GafferScene.Constraint.TargetMode.Vertex,
"layout:activator:keepReferencePositionIsOff", lambda node : not node["keepReferencePosition"].getValue(),
"layout:activator:keepReferencePositionIsOn", lambda node : node["keepReferencePosition"].getValue(),

plugs = {

Expand Down Expand Up @@ -172,6 +173,8 @@
is adjusted so that the original position at this frame is maintained.
""",

"layout:activator", "keepReferencePositionIsOn",

],

},
Expand Down

0 comments on commit 933b0ed

Please sign in to comment.