A frustrating issue.

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Justonius
Posts: 4
Joined: Tue Jun 12, 2012 2:46 am

A frustrating issue.

Postby Justonius » Sun Nov 25, 2012 3:27 am

Hi, I'm new to both blender and python, but I've been sifting through page after page of forums here and across the internet and I can't get this solved. I'm using blender 2.64 - 32bit on windows 7.

All I'm trying to do is this:

Code: Select all

import rasterizer as r
r.showmouse(1)


I add a sensor (always) and a controller (my python script). I hit P in game engine and it runs... but no mouse cursor. The console error reads "import error: no module named rasterizer".

Why? Where the hell is it? lol

At startup, blender console says it's using a "bundled" python? I've tried using python 3.3 and python 2.6 using environment variable paths, but I got a runtime error every time so I just deleted the paths and I'm back at square one. I'm sure it's just some stupid thing that I'm missing, but I'm not seeing it. Please help!! Dx

Justonius
Posts: 4
Joined: Tue Jun 12, 2012 2:46 am

Nevermind.

Postby Justonius » Sun Nov 25, 2012 3:52 am

Nevermind, I found the correct documentation lol. I guess writing out the problem gave me some perspective. :P

Code: Select all

import bge
bge.render.showMouse(1)

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Sun Nov 25, 2012 5:07 pm

I guess writing out the problem gave me some perspective.


Not the first time that explaining a problem made it obvious. Funny how that works.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest