Slice plane rotation


#1

HI …
is there a way to rotate the slice modifier plane via maxscript ?
Ty


#2

set the modifier’s slice_plane.transform
beside, you need local transform not world transform


#3

Thanks AEI … I tryed this and seems to work:

modgizmo= $.slice.sliceplane
modgizmo.rotation = modgizmo.rotation + (((eulerangles 0 90 0) as quat) * (inverse ($.objecttransform)))


#4

I’m only a copy/paster … sorry


#5

in fact this is enough … lol

modgizmo= $.slice.sliceplane
modgizmo.rotation = modgizmo.rotation + ((eulerangles 0 90 0) as quat))

thanks for answering