[Closed] maxscript transforamtions on modifier
Hello,
I am trying to apply a position transformation to a slice modifier, but it is getting on the wrong position. Can some help? I already tried to use in coordsys world and local, but not nothing.
This is the code:
“this works good on objects”
“—-rotation—-”
S1a = $S1a.transform.rotation –plane S1a rotation coords
$S1b.rotation = inverse S1a –apply plane S1a rotation to plane S1b
“—-position—-”
S1a = $S1a.transform.position –plane S1a positon coords
$S1b.position = s1a – apply plane S1a position to S1b
“however when applying a transformation to the slice modifier it goes to a different place”
slice_mod = slicemodifier()
Slice_1 = slice_mod.slice_plane
S1a = $S1a.transform.position –get position of object where the slice has to be positioned
addmodifier $Box002 slice_mod
SL1.position = S1a