MCPcopy Create free account
hub / github.com/csaez/mscreen / move

Method move

mscreen.py:144–150  ·  view source on GitHub ↗
(self, x=0.0, y=0.0, z=0.0)

Source from the content-addressed store, hash-verified

142 # convenience and should be equivalent to the ones provided by the Maya
143 # API.
144 def move(self, x=0.0, y=0.0, z=0.0):
145 x, y, z = [v for v in (x, y, z) if isinstance(v, int)]
146 if x == y == z == 0.0:
147 return
148 offset = om2.MVector(x, y, z)
149 self.transform.translateBy(offset, om2.MSpace.kWorld)
150 self.isDirty = True
151
152 def rotate(self, x=0.0, y=0.0, z=0.0, asDegrees=True):
153 if x == y == z == 0.0:

Callers 2

test_readme.pyFile · 0.80
test_transforms.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected