Search found 6 matches

by KoRn
Sat Sep 20, 2008 10:55 am
Forum: Python
Topic: Rendering in background mode
Replies: 1
Views: 4252

Rendering in background mode

Hi guys, I have some Problems with Blender's background mode. I created a script that generates a 3D scene and an animation. Now I want to render this scene in two ways: 1) just some "random" frames as png 2) the whole animation It's working great when I use a normal command like blender -P myScript...
by KoRn
Mon Jun 18, 2007 10:37 am
Forum: Python
Topic: Adding Shape Keys to a Curve
Replies: 0
Views: 1950

Adding Shape Keys to a Curve

Hi guys, I'm trying to add some shape keys to a curve using a python script. But I can't find the right way to do this. Is this possible in Blender 2.44? I think there is no function like insertKey() which I can use to add a key and the following does not work: curve.key = Key.New(); # or curve.key ...
by KoRn
Wed May 30, 2007 7:48 pm
Forum: Python
Topic: How to make import scripts
Replies: 2
Views: 2369

To create an import srcipt you must add this header to your .py file:

Code: Select all

#!BPY

"""
Name: 'scriptName'
Blender: 243
Group: 'Import'
Tooltip: 'scriptTooltip'
"""
After this you can add your own code e.g. a file reader class which interprets an given xml file.
by KoRn
Wed May 30, 2007 12:47 pm
Forum: Python
Topic: Some Questions about Blender API
Replies: 1
Views: 2651

Some Questions about Blender API

Hi guys, I,m currently working on a script to show graphs in Blender and I have got some questions about Blender API and it's functions. I hope sombody can help me. It'll be great. Here are my questions: 1) How can I create materials for Text3d objects? I don't find something like myText.materials t...
by KoRn
Thu May 17, 2007 2:48 pm
Forum: Python
Topic: Problem with updating .py files in Blender
Replies: 2
Views: 2396

reD_Fox wrote:Hello,

This might be of some use to you:
http://docs.python.org/lib/built-in-funcs.html#l2h-61

Levi
Thanks.
This works great.
But I have to start the script twice before I can see some change.
Is this a normal thing???
by KoRn
Thu May 17, 2007 12:17 pm
Forum: Python
Topic: Problem with updating .py files in Blender
Replies: 2
Views: 2396

Problem with updating .py files in Blender

Hallo. I have a problem with updatin .py files in Blender's text editor. If I load some .py files in Blender and stat this script via main.py it works great. But if I change one of these files except the main.py this change does not work in main.py. Here is an example: main.py -------------- from te...