Looping - Spline Control Points
Add this script to a "Batch Script" editor (F10) and execute it with Script > Run.
Get the number of control points from "Spline01"Â and the points' positions. Print the positions to the "Messages" panel:
# Get "Spline01" and its number of control points spline = scene.getSpline("Spline01") controlPoints = spline.getNumberOfControlPoints() # Loop through the control points and print out their positions for i in range(0, controlPoints): pointPosition = spline.getControlPointPosition(i) scene.message(str(pointPosition))