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.
Search found 3 matches
Search found 3 matches • Page 1 of 1
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...
- Mon Feb 16, 2009 6:45 am
- Forum: Python
- Topic: AttributeError: 'NoneType' object has no attribute 'bones'
- Replies: 1
- Views: 5252
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 #...