Search found 7 matches

by strattonbrazil
Mon Jul 30, 2012 5:50 am
Forum: Python
Topic: "location unknown" error creating a blender runtim
Replies: 1
Views: 1894

"location unknown" error creating a blender runtim

I get a "location unknown" error when I try to export my current blender file into a runtime file for playing. It seems to create an executable, but what I see running the runtime is completely different from what I see in blender. From inside blender http://www.pasteall.org/pic/35699 From the creat...
by strattonbrazil
Fri Jul 27, 2012 6:01 am
Forum: Python
Topic: Controlling a camera with python scripting
Replies: 0
Views: 1020

Controlling a camera with python scripting

If I'm in a controller for a non-camera object, is there an equivalent gluLookAt type function I could use to orient the active camera in the scene? Right now I've ignored the camera so when my game starts, it uses the same camera as the blender viewport. However, if I try to set the position, the s...
by strattonbrazil
Fri Jul 27, 2012 2:37 am
Forum: Python
Topic: import class from python text block into another in BGE
Replies: 2
Views: 1005

Alright. I may just keep things in a dictionary in a global list just to keep everything inside blender. Thanks.
by strattonbrazil
Thu Jul 26, 2012 6:21 am
Forum: Python
Topic: import class from python text block into another in BGE
Replies: 2
Views: 1005

import class from python text block into another in BGE

I have a text data block called "startup" that is called when the blender game engine starts. In the code, I print "starting...", which I see in the console and declare a class called Foo. I have another block of code called "keyboard_left" that is called when the left arrow key is pressed. In this ...
by strattonbrazil
Thu Jul 26, 2012 5:02 am
Forum: Python
Topic: Command to append an mesh object from another file
Replies: 1
Views: 1558

Command to append an mesh object from another file

I'm new to blender python and was going to use the info panel to grab command output to put in my scripts. I went through the manual workflow of selecting "Append", selecitng the blender file, selecting the object, and appending it, but I didn't see any output in the info panel. Is it possible to ap...
by strattonbrazil
Wed Sep 06, 2006 4:59 pm
Forum: Coding Blender
Topic: Python.h not found for compile (but I can relink it)
Replies: 3
Views: 2644

running Ubuntu and using Make

I am using make. I'm running it on Ubuntu. I don't know how to use SCONS, but if it's easier, I'm willing to try it. Thanks.
by strattonbrazil
Wed Sep 06, 2006 4:47 pm
Forum: Coding Blender
Topic: Python.h not found for compile (but I can relink it)
Replies: 3
Views: 2644

Python.h not found for compile (but I can relink it)

I am trying build Blender 2.42a, and when I start my compile, I always get an error specifying Python.h is not found. After going into the file, I find that it is included using: #include <Python.h> I can fix the problem by changing the file to say: #include <python2.4/Python.h> but there are litera...