Jump to content

Script to create curve from points


---
 Share

Recommended Posts

I'm currently trying to write a script that can create a curve from a bunch of centroid points. I already have a list of centroid points, but I'm struggling utilize them in the gom.script.curve.create_curve function.

I wrote some code that will build a string that should look exactly like the text expected by the curve_parts parameter, but I get an error when running the code - probably because the value I provided is a string. What data type does the value need to be in for the curve_parts parameter?

image.thumb.png.aba61f577067b221ed24c98148b2409d.png

Edited
Link to comment
Share on other sites

Well...it did create a curve, but the created curve has an error on it that I've never seen before. And I think the error is causing issues later on in my script. Any ideas?

image.thumb.png.ca87023a9a2df3afa3c10107882d614f.png

Link to comment
Share on other sites

 Share

×
×
  • Create New...