Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 point's positions. Print the positions to the "Messages" panel:

Code Block
languagepy
spline = scene.getSpline("Spline01")
controlPoints = spline.getNumberOfControlPoints()
 
for i in range(0, controlPoints):
	pointPosition = spline.getControlPointPosition(i)
	scene.message(str(pointPosition))