[Closed] wrong slice pivot position after attach operation
hello everyone.
in short: after attach operation with MS, the new polyobejct has the correct pivot position.
but is i add a slicemod with MS, the sliceMod uses the pivot of the FIRST object that was selected before the attach operation. any idea?
in detail:
i have a script that attaches some polyobjects to one single piece.
this is based on whats flying around on the forum, so usual stuff.
then to be sure. i centered the pivot to the object with
CenterPivot $objectname
after that i apply a slice modifier and here the problem comes up.
the slice modifiere uses the pivot position from the first unattached polyobject.
i tried this with two boxes 101010
box01.pos = [-10 0 0]
box02.pos = [10 0 0]
(no ms , just to show positions)
both converted to poly, than selected box01 and started to attach box02
the pivot of the new mesh was as expected, centered correctly
then added a sliceMod by script, guess what, the center of the sliceMod / Plane was at the pos [-10 0 0] which is the pivot of the box01
no idea why this happends, xform or such stuff doesnt work.
any ideas? thank you!
in this case i have to apply the modifier xForm? or is there an other method to reset it?
select $interior
CenterPivot $interior
resetxform selection
sliceAction = sliceModifier() – Assign a slice modifier to a variable
addModifier $interior sliceAction – Add the slice modifier to the box
this helped, thank you!