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
.
OK, it did actually work.
If I have an Edit Poly modifier, and run resetEPM_SlicePlane(), the max listener outputs "0"
If I run it on Editaple Poly, the output is "undefined".
New Suggestion:
Align Slice plane to poly face. I tried using Normal Align tool, but it doesnt work on a gizmo :(
Kind regards
Haider
www.haider.se
...
fn will always returns what is executed last.
bga
...
Check abain *resetEPM_SlicePlane* fn. I tested it on 50 selected objects that not have Edit_Poly modifier (EPoly Objects) and with EP Modifier and it works fine
bga
...
@If I modify the control points, and fiddle with the Set Volume, resetModyGizmoTm will reset everything, not only the Lattice position but also the shape.Why is that?
because of this
bga
...part3 (FFD support)
bga
.
Great work!
When I tried some other modifier, like taper:
resetModyGizmoTm selection whichClass:Taper
... it worked fine (although; I wonder why the gizmo didnt center properly - could you see and explain?)
But for the slice, there was no effect. Can you explain why?
Furthermore, if one wants to develop the script further, for example add support for FFD_2x2x2 which has "lattice" gizmos, should I add new rows like:
(isProperty mody #FFD_2x2x2) : mody.lattice.transform = (translate (matrix3 1) (in coordsys nodes.objecttransform nodes.center))
What about the "set volume" sub object, what should it be called?
ps. just half-off-topic. How do I wrap code in the way you do, so it has a frame aound it? I tried both code and blockcode with no luck..
Kind regards
Haider
www.haider.se
...
http://www.scriptspot.com/forums/3ds-max/general-scripting/kredka-strike...
bga
...
I not tested the code for every modifier class. I only post an example how can be done. Feel free to modify my snippet to suit your need and if you are "stuck" somewhere post your code here. Then we can try to find another solution.
bga
.
Thanks.
- These examples are compatible, but can you please explain why the gizmo placement moves up after centering?
- I understand why the slice didnt work, a small misspelling: "slice_slane" should be "slice_plane"
- I understand that if I want to more subObject items, like "lattice", I add:
... but what should I type for e.g. "Set Volume" subobject in FFD 2x2x2?
- Previously, you said "alternatively you can change i.center[3] to 0". Can you please explain the difference?
- Can this be used for Editable Polygon > Slice Plane?
Kind regards
Haider
www.haider.se
...
@Can this be used for Editable Polygon - Slice Plane?
No. EPoly Slice plane use different concept ei.methods.
bga