Search found 26 matches

by khughes
Thu Dec 08, 2005 5:14 am
Forum: Python
Topic: python errors (AttributeError)
Replies: 7
Views: 3282

Wow; those are pretty old....
by khughes
Thu Dec 08, 2005 5:12 am
Forum: Python
Topic: Transforming with Python
Replies: 4
Views: 2898

You can control an object's size, rotation and location using the size, rot and loc attributes: import Blender for obj in Blender.Object.GetSelected(): print 'name is ',obj.name print ' location = ',obj.loc print ' rotation = ',obj.rot print ' size = ',obj.size print The rotation gives the Euler ang...
by khughes
Wed Dec 07, 2005 4:01 pm
Forum: Python
Topic: python errors (AttributeError)
Replies: 7
Views: 3282

That's correct, since there is no attribute "getDisplaySettings()" in the Blender module. What are you trying to do exactly?
by khughes
Tue Dec 06, 2005 11:14 pm
Forum: Python
Topic: Beginner question: modifing a 3D text string
Replies: 2
Views: 1664

This should get you started. Select your text object, then run this script using Alt-P: import Blender Blender.Window.EditMode(0) text = Blender.Object.GetSelected()[0].getData() if type(text) == Blender.Types.Text3dType: text.setText('Hello\nWorld') Blender.Window.EditMode(1) Blender.Window.EditMod...
by khughes
Tue Dec 06, 2005 10:58 pm
Forum: Python
Topic: New Mesh module -> setting face UV
Replies: 5
Views: 2890

Ok, that makes sense. The BPy faceUV code basically does the same thing as the blender UI code, which calls a function make_tfaces(). This function returns immediately if there are no faces.
by khughes
Fri Dec 02, 2005 5:33 am
Forum: Python
Topic: Cheking if keys are pressed
Replies: 1
Views: 1675

Check for Draw.LEFTSHIFTKEY, Draw.RIGHTCTRLKEY, etc. However, it doesn't seem to send an event for a key release.
by khughes
Fri Dec 02, 2005 5:20 am
Forum: Python
Topic: Blender.Armature - broken?
Replies: 4
Views: 2625

The Armature API code has changed a lot due to the Blender armature redesign. Certainly you shouldn't get crashes. I'd suggest posting a sample script or blend in the bug tracker so someone can look at it.
by khughes
Fri Dec 02, 2005 5:16 am
Forum: Python
Topic: select mode
Replies: 1
Views: 1401

Sorry, not currently.
by khughes
Fri Dec 02, 2005 5:10 am
Forum: Python
Topic: how to set a Curve as cyclic from python?
Replies: 3
Views: 1805

Cyclic is controlled by bit 0 of nurb.flagU:

curve = Blender.Curve.Get('curve')
nurb=curve[0]
nurb.flagU |= 1

Also works for nurb.setFlagU()
by khughes
Mon Nov 28, 2005 7:08 pm
Forum: Testing Builds
Topic: bf-blender / Linux AMD64 2.40RC1 (2005/11/28) RC BUILD
Replies: 9
Views: 11283

bf-blender / Linux AMD64 2.40RC1 (2005/11/28) RC BUILD

Note: These builds have been removed. Use the final 2.40 release builds from this post. These are EXPERIMENTAL builds for Linux AMD64 for Blender 2.40RC1. Please test these builds and report any issues with them. For Systems with Python 2.4: Hardware Accelerated (Dynamic) - Software GL (Static) For ...
by khughes
Mon Nov 28, 2005 4:07 am
Forum: Python
Topic: New Mesh module -> setting face UV
Replies: 5
Views: 2890

Sorry, you're doing the right thing (and it works here). If you've got a sample blend file, upload it to the bug tracker and I'll take a look.