THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/08/2012 at 17:10, xxxxxxxx wrote:
Could anyone help me work out this simple problem I have. I'm obviously not getting something right?
import c4d
#Welcome to the world of Python
def main() :
ob = op.GetObject() #Polygon Child
spline = ob.GetUp() #Spline Parent
for i in xrange(spline.GetPointCount()) :
polypoints = ob.GetPoint(i)
point = c4d.Vector(polypoints.x, polypoints.y, polypoints.z)
spline.SetPoint(i, point)
ob.Message(c4d.MSG_UPDATE)
c4d.EventAdd()