Skip to content

Commit

Permalink
Shifter: AddLoc method added kwargs for color and size
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed May 15, 2024
1 parent 261b2a5 commit b462738
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions release/scripts/mgear/shifter/component/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def add_ref_joint(self, loc, vis_attr=None, width=0.5):
self.connect_x_ray(loc)
pm.delete(add_ref_joint)

def addLoc(self, name, parent, position=None):
def addLoc(self, name, parent, position=None, color=17, width=.5):
"""Add a loc object to the guide.
This mehod can initialize the object or draw it.
Expand All @@ -721,11 +721,19 @@ def addLoc(self, name, parent, position=None):
# this functionality is not implemented. The actual design from
# softimage Gear should be review to fit in Maya.
loc = self.prim[name].create(
parent, self.getName(name), self.tra[name], color=17
parent,
self.getName(name),
self.tra[name],
color=color,
width=width
)
else:
loc = icon.guideLocatorIcon(
parent, self.getName(name), color=17, m=self.tra[name]
parent,
self.getName(name),
color=color,
m=self.tra[name],
width=width
)
self.connect_x_ray(loc)
return loc
Expand Down

0 comments on commit b462738

Please sign in to comment.