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

Scripting blend curve from a list of curves

$
0
0

@velopl wrote:

Hi

I’m trying to script in python rg.Curve.CreateBlendCurve from a list of curves.
The concept is
-as a input, have a list of curves
-want to blend first one with the second one, second one with a third one and so on

At the moment really messing around and not sure how to set it up in the loop as
for x in lst:
for y in lst:
blend=rg.Curve.CreateBlendCurve(x,y,rg.BlendContinuity.Curvature)
blends.append(tuple(blend))

my first list is
lst = [crvs[0],len(crvs)]

my second list is empty
blends =

All I get is
Runtime error (TypeErrorException): NurbsCurve is not iterable

Any help? Pretty please

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5842

Latest Images

Trending Articles


Telangana Ration Card Online Status Ahara Bhadratha Card Online Status


Students hit streets to save Agriculture College land in city


Waves Complete v2019.02.14 Incl Emulator-R2R


CalCen


[RELEASE THREAD]--_A-Team_--Cricket_Dream_5G


New! K-12 Display Bulletin Boards for Grade 5 (1st Quarter)


HI-FI SET - PASADENA PARK


Police blotter for Jan. 12


WordPress: Reverse Shell


Artbeats - Nature: Grow! (HD + SD)



Latest Images