slice plane position problem

hi firends
i am making slice plane position script
but some is problem

if i select vertex , slice plane did not move correctly in pta postion
what problem ?

setSnapMode name:"Vertex" state:on
setSnapMode name:"Edge/Segment" state:off
in coordsys local pta = pickpoint snap:#3d

o.modifiers[1].Slice_Type = 3

o.modifiers[1].slice_plane.rotation = eulerAngles 0 90 0

o.modifiers[1].slice_plane.position = pta

Comments

Comment viewing options

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

.

(
-- 	setSnapMode name:"Vertex" state:on
-- 	setSnapMode name:"Edge/Segment" state:off
	in coordsys local pta = pickpoint snap:#3d
 
	$.modifiers[1].Slice_Type = 3
 
	$.modifiers[1].slice_plane.rotation = eulerAngles 0 90 0
 
	objTM = $.objectTransform
    modTM = getModContextTM $ $.modifiers[1]
 
	$.modifiers[1].slice_plane.position = pta * modTM * (inverse objTM)
)
dussla's picture

wow~ really thank you

perpect work ~
really thank you

Comment viewing options

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