Blender (software): Difference between revisions

Line 25: Line 25:
Blender supports scripting as an alternative means of interaction.
Blender supports scripting as an alternative means of interaction.
Most things are available in the <code>bpy</code> module.
Most things are available in the <code>bpy</code> module.
See one of the following resources to get started:
* [https://www.youtube.com/watch?v=XqX5wh4YeRw Python Crash Course for Blender! by Curtis Holt]


===Saving scripts outside===
===Saving scripts outside===
Line 36: Line 39:
exec(compile(open(filepath).read(), filename, 'exec'))
exec(compile(open(filepath).read(), filename, 'exec'))
</syntaxhighlight>
</syntaxhighlight>
===Resources===
* [https://www.youtube.com/watch?v=XqX5wh4YeRw Python Crash Course for Blender! by Curtis Holt]


==Resources==
==Resources==