AEI script
Test - Printable Version

+- AEI script (http://www.aei.pub)
+-- Forum: Official || 官方讨论区 (http://www.aei.pub/forumdisplay.php?fid=1)
+--- Forum: AEI ToolBar (http://www.aei.pub/forumdisplay.php?fid=2)
+--- Thread: Test (/showthread.php?tid=1)



Test - AEI - 12-04-2017

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&quality=80&size=b9999_10000&sec=1514974513&di=35f5dc096df2598eb8d380d5e786a5fc&imgtype=jpg&er=1&src=http%3A%2F%2Fcdn.scratch.mit.edu%2Fstatic%2Fsite%2Fprojects%2Fthumbnails%2F96%2F3598.png