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

Rhino.Command/ variables input?

$
0
0

@Cyver wrote:

HI all,

Can we use variables in Rhino.command ?

I tried with the code below ( not sure about my syntax) the ID is returned as unknow command.

How can i do ? possible ?

Thanks.


Call Split()
Sub Split()

arrObject = Rhino.GetObjects("Select object")

If IsArray(arrObject) Then
	For Each strObject In arrobject
		strCutter = Rhino.GetObject("Select cutter")
		Rhino.Command "_Split " & strObject & "_Enter " & strCutter & "_Enter "

		'			Rhino.Print "strObject ID :" & strObject
		'			Rhino.Print "strCutter ID :" & strCutter
		
	Next
	
End If
End Sub

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5749

Trending Articles