Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

May 11, 2009

blender and python and game

blenderis a free 3d open source code.in blender you can run a python code and access to object and rotate and scaled and transform
them .you can first make figure in poser and then import it on blender or 3ds max.for import any poser figure it is better to select unimesh demo in python script box and make a sample demo from figure and then import it to 3ds max or blender.then you can create a code like this

# Windows version
import Blender
import sys

obj=Blender.Object.Get()
print str(obj)
sys.stdout.flush()

and run it on blender.you can custumize code with loop and others and make a game with it
Read more »

April 29, 2009

python and animation

python is great scripting language for animation specially use in blender and poser.
with a python script you can control tools of this software and moving of object in this.when you want to make game with java you can run a script sample in blender or poser for test of your game in real 3d scene and then make a java code for it.you can download python ide from here
this is a picture of python shell ide

and this is a part of code for rendering frame of 1 until 10 and save their images
PoserFile.append("E:\\dawood\\movie\\movie1.pz3")
TargetDirectory.append("E:\\dawood\\movie\\run\\")
FramePrefix.append("Run")
StartFrame.append(0)
EndFrame.append(10)
this codes help you also making animation easier and faster and control animation scenes.
Read more »