AEI script

Full Version: Test
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if $selection.count == 1 and classof $ == Editable_Poly and ($.EditablePoly.getSelection #Vertex as array ).count == 3 do
(
    vertsel = $.EditablePoly.getSelection #Vertex as array
    vertsel[1] = polyop.getvert $ vertsel[1]
    vertsel[2] = polyop.getvert $ vertsel[2]
    vertsel[3] = polyop.getvert $ vertsel[3]
    vertsel[2] = vertsel[1] - vertsel[2]
    vertsel[3] = vertsel[1] - vertsel[3]
    if not polyop.inSlicePlaneMode $ do $.toggleCommandMode #SlicePlane
    polyop.setsliceplane $ (ray vertsel[1] (cross vertsel[2] vertsel[3])) 10
)
[Image: timg?image&quality=80&size=b9999_10000&s...2F3598.png]
https://timgsa.baidu.com/timg?image&qual...2F3598.png