scale with ffd 2x2x2

Hello
it would be great if somebody could make a script like this one :
http://www.scriptspot.com/3ds-max/scripts/dimension
but using ffd 2x2x2 :
so it could work on splines, meshes, groups, on all object or just selected vertexes....
I'd be nice !!! :-)

Comments

Comment viewing options

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

I tried to do it myself...

I tried to do it myself... :-(
I have some problems :
- It works just with meshes : I can't manage to add fdd mofifier to groups, meshes and subobjects..
(I can do by hand but not with my script knowledge)
- It is a "inprogress" script so it can just change one axis when running script but I don't know how to close the window when click button.
Can somebody help ? Thanks.
---------------
(
a = $
ffd=ffd_2x2x2()
addModifier a ffd
conformToShape ffd
animateAll a.ffd_2x2x2
modBBMin=getModContextBBoxMin a ffd
modBBMax=getModContextBBoxMax a ffd

VactX = modBBMax.x - modBBMin.x
VactY = modBBMax.y - modBBMin.y
VactZ = modBBMax.z - modBBMin.z

try destroyDialog rlslice catch()
global rlslice = rollout rlslice "Size tool"
(
button goX "dX" pos:[90,3]
button goY "dY" pos:[90,28]
button goZ "dZ" pos:[90,53]
spinner VdezX "X " width:70 range:[0,10000,VactX] type:#float pos:[10,5]
spinner VdezY "Y " width:70 range:[0,10000,VactY] type:#float pos:[10,30]
spinner VdezZ "Z " width:70 range:[0,10000,VactZ] type:#float pos:[10,55]
on goX pressed do
(
RX = VdezX.value / VactX
ffd.control_point_5 = [RX,0,0]
ffd.control_point_6 = [RX,0,1]
ffd.control_point_7 = [RX,1,0]
ffd.control_point_8 = [RX,1,1]
maxops.CollapseNodeTo a a.modifiers.count true
)
on goY pressed do
(
RY = VdezY.value / VactY
ffd.control_point_3 = [0,RY,0]
ffd.control_point_4 = [0,RY,1]
ffd.control_point_7 = [1,RY,0]
ffd.control_point_8 = [1,RY,1]
maxops.CollapseNodeTo a a.modifiers.count true
)
on goZ pressed do
(
RZ = VdezZ.value / VactZ
ffd.control_point_2 = [0,0,RZ]
ffd.control_point_4 = [0,1,RZ]
ffd.control_point_6 = [1,0,RZ]
ffd.control_point_8 = [1,1,RZ]
maxops.CollapseNodeTo a a.modifiers.count true
)
)
createDialog rlslice 160 75
)
--------

titane357's picture

nobody ? I'd be very

nobody ? I'd be very usefull.... :-(

Comment viewing options

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