Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Shifter: Hide controls on Playback rig setting Closes #131
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Dec 27, 2017
1 parent af5b9da commit 51dc680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/mgear/maya/shifter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def initialHierarchy(self):
self.model, "comments", "string", str(self.options["comments"]))
self.ctlVis_att = attribute.addAttribute(
self.model, "ctl_vis", "bool", True)
self.ctlVisPlayback_att = attribute.addAttribute(
self.model, "ctl_vis_on_playback", "bool", True)
self.jntVis_att = attribute.addAttribute(
self.model, "jnt_vis", "bool", True)

Expand All @@ -266,6 +268,8 @@ def initialHierarchy(self):

# Connect global visibility
pm.connectAttr(self.ctlVis_att, self.global_ctl.attr("visibility"))
pm.connectAttr(self.ctlVisPlayback_att,
self.global_ctl.attr("hideOnPlayback"))
attribute.lockAttribute(self.global_ctl, ['v'])

# --------------------------------------------------
Expand Down

0 comments on commit 51dc680

Please sign in to comment.