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

Add points in python

$
0
0

@brobes05 wrote:

Hello,
I am failing to add points. I know i need to match the data somehow or deconstruct the points, but I'm drawing a blank.
I am using GH Python.

import rhinoscriptsyntax as rs

a = []
pt = x

print pt
print pt2

def recursiveCircle(pt, r, num):

        circle = rs.AddCircle(pt, r)
        a.append(circle)
        ptA = rs.PointCoordinates(pt)
        print ptA
        
        if (num > 1):
            num = num -1
            
            recursiveCircle(pt + [0,0,2] , r * fact, num)  #i know this list is the wrong data type
        

recursiveCircle(pt, r, num)

recrusion fail.gh (9.7 KB)

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5791

Trending Articles