Skip to content

Instantly share code, notes, and snippets.

@MirageYM
Last active March 8, 2016 01:07
Show Gist options
  • Select an option

  • Save MirageYM/f19a08b8711d5f5c2f42 to your computer and use it in GitHub Desktop.

Select an option

Save MirageYM/f19a08b8711d5f5c2f42 to your computer and use it in GitHub Desktop.
spPaint3d patch
spPaint3d mod
constraint Y(Y軸コンストレイント) SHIFT + mouse drag
constraint X(X軸コンストレイント) CTRL + mouse drag
spPaint3dContext.py
***** ORIGINAL オリジナル
306:
307: pressPosition = mc.draggerContext(spPaint3dContextID, query=True, anchorPoint=True);
308:
309: worldPos, worldDir = getViewportClick(pressPosition[0],pressPosition[1])
310:
***** MOD 改造
306:
307: self.pressPosition = mc.draggerContext(spPaint3dContextID, query=True, anchorPoint=True);
308:
309: worldPos, worldDir = getViewportClick( self.pressPosition[0], self.pressPosition[1] )
310:
*****
***** ORIGINAL オリジナル
359: dragPosition = mc.draggerContext(spPaint3dContextID, query=True, dragPoint=True);
360:
***** MOD 改造
359: dragPosition = mc.draggerContext(spPaint3dContextID, query=True, dragPoint=True);
360: mods = mc.getModifiers()
361: if( mods & 1 ) > 0:
362: dragPosition[1] = self.pressPosition[1]
363: elif( mods & 4 ) > 0:
364: dragPosition[0] = self.pressPosition[0]
365:
*****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment