ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Home → Forums → 3ds-max → Scripts-wanted → Script to control rotation pivot of subselection in pollyedit mode to mouse cursor. (max9)
Script to control rotation pivot of subselection in pollyedit mode to mouse cursor. (max9)
Submitted by aNewHobby on Mon, 2008-03-10 13:05
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.
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
Comments
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)
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)
)
www.scriptattack.com
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