Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4177

Temporary Split with CutPlane

$
0
0

Hello All,

I m trying to create an enchanced split command by using temporary cutplanes

import rhinoscriptsyntax as rs

objs = rs.GetObjects("Select objects for cut plane")
if objs:
    point0 = rs.GetPoint("Start of cut plane")
    if point0:
        point1 = rs.GetPoint("End of cut plane", point0)
        if point1: cutplane = rs.AddCutPlane( objs, point0, point1 )


rs.Command("_Split")

rs.DeleteObjects(cutplane)

Can you please tell me how i can pass the obj and cutplane arguments to the split command so that i dont have to reselect them?

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4177

Latest Images

Trending Articles



Latest Images