Category Archives: All

All posts

Blender and Python – First steps.

On console, you use command ./blender or blender.exe (if you use windows OS).

This is need to see the output of script.

Split your window on two . Click right on bar and select Split Area like on next image.

3D

As we see in the image below, you need to create a new file .

3D

You can use COPY and PASTE to copy some python scripts. You can create NEW scripts, SAVE or EXECUTE SCRIPT.

3D  3D

I create a simple script :

import Blender

import sys

obj = Blender.Object.Get()

print str(obj)

sys.stdout.flush()

Use keys “ALT+P” to run this script .The result should be this :

3D

This output is from my scene ,because has Camera and Lamp objects.

You can use python script with “Controllers” . You must activate the “Enable Script Links”

3D   3D

This is just a simple tutorial how to use python script with Blender 3D.

You can create more complex scripts.

For example to process topographic data or features of Blender 3D.

Posted in Blender 3D. Tagged with .

Loki – render farm

What is Loki software ?

If you  having several computers work together can greatly decrease the total time needed.

Loki Render is a cross-platform job queue manager for rendering 3D frames.

Loki Render distributes the rendering of Blender 3D images named frames across several computer.

How to install the software ?

You can download this software from : sourceforge.net/projects/loki-render .

Extract the zip file.

  • Windows: double-click “lokiRender_062.exe”.
  • Linux/Mac/Solaris: browse to the extracted directory and run “launchLoki.sh“.
  • Or, on all platforms, just run something like “java -jar lokiRender_062.jar“.

How to set Loki software ?

I try this software with a blend file created with blender 2.49.

I use two computers .First  is server on Fedora 12 and second is on XP .

On File -> Preferences ( Ctr+P ) you can set the role of rendering . I set “Master and Grunt” on Fedora 12

and “Grunt” on XP. You can set the limit of memory space .

On second tab “local grunt”  you need to set the PATH of blender ( on Fedora is /usr/bin/blender.bin) .

The same settings must be set in Windows XP. The other settings are for advanced users.

render farm

How to add job on Loki software ?

First click on “Jobs”  – >  “New”  ( Ctr + N keys) . This will be open a new window.

render farm

Press “Browser” button to add your blend file. The result will be on “Output Directory”.

You can set “First Frame” and “Last Frame”. The result will be set of images from first on last frame.

This is a screenshot of Loki software running:

render farm

The official site : loki-render.berlios.de/index.php/download

Posted in 3D, Linux, Windows XP. Tagged with , , , .

Geany and regular expressions – tutorial number two

As we told in another tutorial about Geany editor, we can use regular expresions to change

text or source code.

In this example Geany uses regular expressions ( keys Ctr + h) to remove

the rows with numbers. I use this [0-9\. ]*$ sintax.

Please see in the image below:

tutorial regular expression
Posted in Programming. Tagged with .

How to set up an external webrowser on Eclipse IDE

This tutorial is made for version 3.3.2 of the Eclipse IDE.
I will show how to set up an external webrowser.
First start Eclipse program. Go to the main menu to Windows. See the image below:

tutorial Eclipse image

Click on the General to display options.
See next image:

tutorial Eclipse image

You will find below Web Browser. It is set to Default system Web browser. See picture below:

tutorial Eclipse image

Click New to add a new web browser. A window will appear as shown below:

tutorial Eclipse image

In the next picture you can see the path and name of my Web browser.

tutorial Eclipse image

In the next picture you can see the path and name of my Web browser.
Put all necessary data to your Web browser and press the OK button.
We see as my web browser added.

tutorial Eclipse image

Go back to the Windows menu. Then go on to Web Browser and click on your external web browser.
Here you can set your web browser working.
See picture below:

tutorial Eclipse image

That is all.

Posted in Linux, Programming. Tagged with , , .