Script to control rotation pivot of subselection in pollyedit mode to mouse cursor. (max9)

I am looking for a script that will allow you to use the mouse pointer as the pivot point for your rotational and scale transforms on sub-object areas of the poly edit modifier.



This is it: macroScript

This is it:

macroScript SmartPivot category:"SmartPivot" tooltip:"SmartPivot v1.0" silentErrors: true
(
global pivotpoint
on isChecked do isValidNode pivotpoint
on execute do (
try(
if isValidNode pivotpoint then delete pivotpoint
old_pen_pos = pickPoint prompt: "Pick Smart Pivot: " snap: #3D
if (classOf old_pen_pos) == Point3 then (
pivotpoint=Point()
pivotpoint.size=1
pivotpoint.pos=old_pen_pos
enableRefCoordSys true
toolMode.coordsys pivotpoint
toolMode.transformCenter()
enableRefCoordSys false
)
)
catch(ClearListener())
)
on closeDialogs do (enableRefCoordSys true; if isValidNode pivotpoint then delete pivotpoint)
)



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.