[Ad...] Posted February 3, 2023 Share Posted February 3, 2023 (edited) 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? Edited February 3, 2023 Link to comment Share on other sites More sharing options...
[Na...] Posted February 3, 2023 Share Posted February 3, 2023 Hello Adam, there is an existing script for this: Curve_from_Points.py Link to comment Share on other sites More sharing options...
[Ad...] Posted February 3, 2023 Author Share Posted February 3, 2023 Thank you, Nanno! I will give this a try... Link to comment Share on other sites More sharing options...
[Ad...] Posted February 8, 2023 Author Share Posted February 8, 2023 I finally had a chance to try this script out and it worked great! Thanks! Link to comment Share on other sites More sharing options...
[Ad...] Posted February 8, 2023 Author Share Posted February 8, 2023 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? Link to comment Share on other sites More sharing options...
[Ad...] Posted February 9, 2023 Author Share Posted February 9, 2023 I defined my original alignment as the initial alignment and the issue went away. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in