About this site
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.
Comments
...part2 (option "center")
For now I added new argument "center". If "on" then gizmo will be placed at the center else at the pivot position.
bga
...
Now how to use it
It's very simple, just select some objects and run this code
NOTE: in "whichClass" argument put any modifiers class
bga
-- this code reset the uvw
usage : select object that already had uvwmap modifier then execute the function [Ctrl+E]
ex: if you want to reset scale only you only need to change resetScales from false to true
your code not working simple because many unworking part:
below simple design UI to make it better understanding how to use
try this...fn
try this...
usage:
alternatively you can change i.center[3] to 0
.
Thanks, regarding the centerAllTheModifierGizmo.
But that would require that the gizmo is called "Gizmo".
What if you want to extend the capacity of the script: For example, slice, uses gizmo name "Slice Plane".
I like your UI. The same features could be available for e.g. Slice: Reset Position, Scale and rotation. You could either make your code generic, compatible with all types of gizmos, or you could add items successively every time you want to make it compatible with yet one more item.
Further features could be that it works on sub-object "gizmos", for example in Editable Poly > Slice plane.
- center gizmo to selection.
- scale gizmo to selection
Kind regards
Haider
www.haider.se
... universal solution
This functions allows you to reset any modifiers gizmo transform(of course if it have one)
bga
rotate gizmo
good reply thank you
i made this rotuine with your routine
but that is not work
there is many modifier ex) edit poly , shell , uvwmap
i would like to roate uvw gizmo only
what problem this code ?
what the meaning to all gizmo
what the meaning to all gizmo ? all kind of modifier that have gizmo?
More ideas
@fajar: I wonder if this code can be rewritten to fit to all kind of gizmos?
Kind regards
Haider
www.haider.se
fn centerTheUvwGizmo =( for
its still raw tho, but work :)
how to :
select object that have uvwmap modifiers and run the function