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

Rhinoscript: how to pass results array to function expecting string object name

$
0
0

@jimabshire wrote:

Newbie to Rhinoscript - please be nice

Rhinoscript code patch:
strLine1 = Rhino.AddLine(arrStart, arrArcStart)
strLine2 = Rhino.AddLine(arrStart, arrArcEnd)
strLine3 = Rhino.AddLine(arrArcStart, arrArcEnd)

arrTri = Rhino.JoinCurves(array(strLine1, strLine2, strLine3))
strStartingTaper = Rhino.AddRevSrf(strTri, array(arrArcStart, arrArcEnd))

AddRevoledSurface wants the profile curve specified as a string (Id of Object???)
I can look at the views in Rhino and see my perfectly formed, closed triangle(after the join), so I would think it would be an object. How can I get this object id to pass to AddRevSrf as a string? So, how can refer to the joined triangle, or how might I create a suitable object whose id I can pass??

Thanks,
Jim

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles