Search DLab 1.0

Showing posts with label Blender. Show all posts
Showing posts with label Blender. Show all posts

Sunday, August 29, 2010

Python scripting for Blender

Belle has also succeeded in trying out a python script that can align any objects that are placed randomly.This could be helpful in learning the scripting language.

The objects on the screen are randomly placed


But once the script has been executed, it aligns all the objects/ or chosen objects.

import Blender


Here is our script:

import Blender
myObject = Blender.Object.Get(‘Cube’)

selectionList = Blender.Object.GetSelected()

for i in selectionList:

i.LocY = myObject.LocY

Blender.Redraw()

Blender Update SUN.29 August

These are our attempts for the past day or two krub. Basically we have a simple interactive simulation in mind that we want to do. However, we are searching for tutorials which would teach us how to complete our game as well. So its more of an ongoing process of switching back and forth between tutorial and game-making for now.

Set-up and python scripting for dual screen display (possible for multiple users on one platform)


Fluid simulation - we are looking into having water/fluid be a physical actor in our game, i.e. increases the weight of a bucket etc.


Toggle light on/off + Toggle between colors - still trying to figure this out, however it might be possible to toggle between any property of an object.


Our rough game set-up - we are exploring interactions between different objects, springs, gears/cogs, buttons. Will keep the blog posted on what the final game will look like.


A computer model in Blender setting up the game


Dual camera/ multiple camera in one screen. Here the ball slides down a track.


Saturday, August 28, 2010

Blender Python Scripting / movement explorations

Ajarn Moe ka, this is the tutorial that I have been working on for a long time now, its rather useful because it talks about linking the movement of one object to another using a tool called driver. Basically, you can add the driver to an object and the driving force is another object. Here is the video.



Below are a series of python scripting tutorial in Blenders that me and Tony are working on also, and will probably be working on tomorrow as well.