Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

scriptSOP - bezier feature

Still a little green? Ask your beginner's questions here

scriptSOP - bezier feature

Postby django » Mon Jun 11, 2018 12:43 pm

Hi there,

I want to use the new bezier feature in the scriptSOP, but I cannot figure out how I can attach a bezier to a polygon.

In the manual it says:

addPoints - (Keyword, Optional) If True, a new point will be attached to each vertex, otherwise the vertex point references will need to be manually set afterwards. Use this option when creating polygons with shared vertices.

But my script always throws an error ("Invalid Prim object") as soon as I do this:
scriptOp.appendBezier(4, addPoints=False)


Cheers, David
django
 
Posts: 105
Joined: Fri Aug 30, 2013 3:26 am

Re: scriptSOP - bezier feature

Postby rob » Wed Jun 13, 2018 3:27 pm

Hi David.

There's a typo in the addPoints description.
It should actually read: Use this option when creating Beziers with shared vertices.

That is, Bezier and Polygon primitives will always be unique primitives within any SOP.
In your example, if you don't addPoints, you'll need to set them before manipulating them.

I see this isn't producing a valid Primitive, so we'll fix that next.

Can I ask what type of Bezier you're trying to build?
User avatar
rob
Staff
 
Posts: 1490
Joined: Tue Nov 13, 2007 1:14 am

Re: scriptSOP - bezier feature

Postby django » Thu Jun 14, 2018 5:10 am

Thank you Rob, this clears it up for me.

I was trying to create something like in the screenshot, but I was successful now, knowing that I cannot attach a bezier to a polygon.

Cheers!
Attachments
bezier.PNG
bezier.PNG (148.34 KiB) Viewed 310 times
django
 
Posts: 105
Joined: Fri Aug 30, 2013 3:26 am


Return to Beginners

Who is online

Users browsing this forum: No registered users and 6 guests