Search found 3 matches

by syco
Wed Feb 25, 2009 9:48 am
Forum: Python
Topic: python "joystick" script
Replies: 3
Views: 4459

thanks,
I made a script that runs only once and saves the glove object in a variable GameLogic.myglove, so I can initialize it once and use it in any other script.
by syco
Mon Feb 23, 2009 12:56 pm
Forum: Python
Topic: python "joystick" script
Replies: 3
Views: 4459

python "joystick" script

hi, I have a 5DT glove, I found the libraries to interact with python and I wrote a simple script to use with blender. the problem is that the script is initialized each time and the first data from the glove should be discarded since they serve as a test, then I would need the script to be initiali...
by syco
Mon Feb 16, 2009 6:45 am
Forum: Python
Topic: AttributeError: 'NoneType' object has no attribute 'bones'
Replies: 1
Views: 5460

AttributeError: 'NoneType' object has no attribute 'bones'

hi, i'm not new to blender but I can not really understand why this error in a code copied from the api. the code is: from Blender import * def test_arm(): scn = Scene.GetCurrent() arm_ob = scn.objects.active if not arm_ob or arm_ob.type != "Armature": Draw.PupMenu('not an armature object') return #...