Previous Thread  Next Thread

chat icon Moving the end of a path

LordCaptain

Posted: Tue Jul 10, 2012 10:04 pm
Joined: 10 Jul 2012
Posts: 2
Hey,

I'm planning on using a Curve (specifically the Path primitive) in combination with the Curve Guide field to guide a particle stream from one object to another. I can create and position the Path, but have been unable to move the endpoint to where I want it to go.

In Blender itself this is easy - right-click on the end vertex and drag it to wherever I want it. But how would I 'get' that vertex in Python, if I wanted to? Or is there a better way to move the endpoint of my path? Or even a better way to guide the particle stream?

Thanks to anyone who can help.
Reply with quote


LordCaptain

Posted: Mon Jul 16, 2012 8:32 pm
Joined: 10 Jul 2012
Posts: 2
No one so far? I'd be happy to add any more information if my post was unclear.
Reply with quote


CoDEmanX

Posted: Tue Jul 17, 2012 9:00 pm
Joined: 05 Apr 2009
Posts: 680
like

bpy.context.object.data.splines[0].points[-1].co = (-1,2,3,0)

?
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group