Forum: Blender


Subject: Gingerbread Man tutorial wanted, in blenderpython script.

benwhe opened this issue on Mar 20, 2015 · 4 posts


benwhe posted Fri, 20 March 2015 at 6:13 PM

Blender pdf manual has this tutorial.

Your First Animation in 30 plus 30 Minutes Part I. This chapter will guide you through the animation of a small "Gingerbread Man" character.

I try to convert it to blenderpython, by using keyboard and mouse as instructed, then extract script from info window, which only shows lines starting with bpy. Therefore, I need to manually type in the first command, import bpy. Second command works, third command gives error.

I would like complete blenderpython script, that makes and animates a simple object, that requires no gui.


Lobo3433 posted Sat, 21 March 2015 at 9:37 AM Forum Moderator

Can you post the error you are getting? It would help in determining what might be the issue 

Thanks 

Lobo3433

Blender Maya & 3D Forum Moderator 

Renderosity Store

My Free Stuff

Facebook

Twitter

Renderosity Blender 3D Facebook Page



benwhe posted Sat, 21 March 2015 at 2:26 PM

Sorry I was not clear. I use blender 7.23, on debian 6. I am looking for examples, projects, tutorials on poserpython script.

I could not find this in blender store. where can I get it? Here is the external file I made, to be run as bpy script. Comments are instructions from tutorial. bpy lines are from info window. This is for my education. Can the tutorial be converted to script?

manually type in the first command.

import bpy

Select the Camera with RMB. Then add the Lamp to the selection with Shift RMB. Press M. Click the rightmost button on the top row.

bpy.ops.object.move_to_layer(layers=(False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False))

With Num lock activated, change to the front view with 1 NumPad and to orthogonal view with 5 NumPad.

bpy.data.window_managers["WinMan"].(null)[9] = True

SyntaxError: invalid syntax


LuxXeon posted Sat, 21 March 2015 at 2:46 PM

Have you looked at this blog?  Lots of information on Blender Python.

http://blenderscripting.blogspot.com/

Goodl luck.

______________________________________

My Store
My Free Models
My Video Tutorials
My CG Animations
Instagram: @luxxeon3d
Facebook: https://www.facebook.com/luxxeon