Tue, Apr 23, 9:14 AM CDT

Welcome to the Blender Forum

Forum Moderators: Lobo3433 Forum Coordinators: LuxXeon

Blender F.A.Q (Last Updated: 2024 Apr 21 9:14 pm)

Welcome to the Blender Forum!


   Your place to learn about Blender, ask questions,
   exchange ideas, and interact with the other Blender users!


   Gallery | Freestuff | Tutorials

 

Visit the Renderosity MarketPlace. Your source for digital art content!

 





Subject: Gingerbread Man tutorial wanted, in blenderpython script.


benwhe ( ) posted Fri, 20 March 2015 at 6:13 PM · edited Sat, 30 March 2024 at 4:42 AM

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
Forum Coordinator

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


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.