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

Defining a Plane in RhinoScript

$
0
0

@mgags wrote:

Very new to using Rhino script. I cannot get the following code to run.

Dim arrPlane(3)
arrPlane(0) = Array(0.0, 0.0, 0.0) ' origin point
arrPlane(1) = Array(1.0, 0.0, 0.0) ' x-axis vector
arrPlane(2) = Array(0.0, 1.0, 0.0) ' y-axis vector
arrPlane(3) = Array(0.0, 0.0, 1.0) ' z-axis vector

I keep getting the error "SyntaxError: unexpected token 'arrPlane'". This code is literally copied from the Rhino IronPython help. Any thoughts would be appreciated.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5786

Trending Articles