Previous Thread  Next Thread

chat icon Animation in Blender using Script and Math

n0talentGEEK

Posted: Mon May 21, 2012 11:39 am
Joined: 21 May 2012
Posts: 7
Hello, I am new to Blender. But at least I understand the basic of this software.

I have an assignment from university, I have to make animation using mathematical function.

Is that possible to do that in Blender?
Do you have any good source or tutorial about making animation using script?

Thank you and I am sorry for asking newbie question like this. Smile
Reply with quote


CoDEmanX

Posted: Mon May 21, 2012 4:25 pm
Joined: 05 Apr 2009
Posts: 696
yes it's possible, here's an introduction to python-scripted animation:

http://www.blender.org/documentation/blender_python_api_2_63_5/info_quickstart.html#animation
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


n0talentGEEK

Posted: Mon May 21, 2012 8:05 pm
Joined: 21 May 2012
Posts: 7
CoDEmanX wrote:
yes it's possible, here's an introduction to python-scripted animation:

http://www.blender.org/documentation/blender_python_api_2_63_5/info_quickstart.html#animation


Awesome thanks...
Can it also morph the model?

I will read carefully your link. Smile
Reply with quote


CoDEmanX

Posted: Mon May 21, 2012 10:10 pm
Joined: 05 Apr 2009
Posts: 696
i guess you could use an Armature, Lattice etc. and animate this to deform meshes. But you could also use couple other ways, like Shape Keys (vertex count has to be identical):

http://www.youtube.com/watch?v=e6d6bgrdnMQ

Code snippets for 2.5x but still useful:
http://www.blendernation.com/2010/08/08/blender-2-5-python-code-snippets/
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


n0talentGEEK

Posted: Tue May 29, 2012 2:15 pm
Joined: 21 May 2012
Posts: 7
CoDEmanX wrote:
i guess you could use an Armature, Lattice etc. and animate this to deform meshes. But you could also use couple other ways, like Shape Keys (vertex count has to be identical):

http://www.youtube.com/watch?v=e6d6bgrdnMQ

Code snippets for 2.5x but still useful:
http://www.blendernation.com/2010/08/08/blender-2-5-python-code-snippets/


Yeah I thank you... that snippet help me. Very Happy Very Happy
And last thing... do you know how to convert the available model to code. For example I made a model and I want to see the code behind my model.

Is that possible??? Thank you and I am sorry for late reply Very Happy
Reply with quote


stiv

Posted: Tue May 29, 2012 5:32 pm
Joined: 05 Aug 2003
Posts: 3493
Quote:
how to convert the available model to code.


Models are not code, they are data. You can export your models in a number of common formats.
Reply with quote


n0talentGEEK

Posted: Tue May 29, 2012 6:08 pm
Joined: 21 May 2012
Posts: 7
stiv wrote:
Quote:
how to convert the available model to code.


Models are not code, they are data. You can export your models in a number of common formats.


So I can make a mesh out of python code but not the the other way around (python code generate from mesh availabe)??
Reply with quote


CoDEmanX

Posted: Tue May 29, 2012 6:48 pm
Joined: 05 Apr 2009
Posts: 696
you can, but i don't think there's an export script (yet)

have a look at this addon, especially teapot:

https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/add_mesh_extra_objects/
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


n0talentGEEK

Posted: Tue May 29, 2012 7:04 pm
Joined: 21 May 2012
Posts: 7
[quote="CoDEmanX"]you can, but i don't think there's an export script (yet)

have a look at this addon, especially teapot:

https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/add_mesh_extra_objects/[/quote

The teapot is just missing primitives if I am not wrong is not it?

Okay so come back to my first question. If I want to make a animation based on Mathematics so I must make it fully with script?
Reply with quote


ldo

Posted: Sat Jun 02, 2012 10:56 am
Joined: 07 Nov 2010
Posts: 544
Mathematics need not be code, it can also be data.
Reply with quote


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