Skip to content

Commit

Permalink
Shifter add optional arg to skipRotation connection on connectRef
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Oct 24, 2024
1 parent 75be1cf commit 67f570e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release/scripts/mgear/shifter/component/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,7 @@ def connectRef(
upVAttr=None,
init_refNames=False,
st=None,
sr=None,
):
"""Connect the cns_obj to a multiple object using parentConstraint.
Expand All @@ -1861,6 +1862,7 @@ def connectRef(
upVAttr (bool): Set if the ref Array is for IK or Up vector
init_refNames (bool, optional): Nice name for the references menu
st (None, optional): skipTranslate
sr (None, optional): skipRotate
"""
if refArray:
# mtx = cns_obj.getMatrix(worldSpace=True)
Expand Down Expand Up @@ -1918,6 +1920,8 @@ def connectRef(
ref.append(cns_obj)
if not st:
st = "none"
if not sr:
sr = "none"
cns_node = pm.parentConstraint(
*ref, maintainOffset=True, st=st
)
Expand Down

0 comments on commit 67f570e

Please sign in to comment.