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.

Comments

Comment viewing options

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

Be careful to use "use

Be careful to use "use transform Coordinate center" so you can use "Point01" as center
(works fine w max 2010)

1acc's picture

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)
)

free agent's picture

hey that works :) but only

hey that works :) but only for move, when try to rotate it goes back to the centre... running the script while in rotation mode, converts back to move :(. could you fix this??? been looking for this one, thanx again

Comment viewing options

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