Search found 42 matches

by reD_Fox
Sat Apr 28, 2007 3:23 pm
Forum: Python
Topic: bounding box problems
Replies: 2
Views: 2092

I don't know why this would be, but redrawing the 3D windows with Blender.Redraw() before accessing the bounding box will give you the correct results. So... scene = Scene.GetCurrent() me = Cylinder(32, 0.4, 1) obj = scene.objects.new(me, "name") Blender.Redraw() print obj.getBoundBox() ...should wo...
by reD_Fox
Fri Apr 27, 2007 3:41 pm
Forum: Python
Topic: pb while saving a .X3D file
Replies: 1
Views: 2320

Dave, are you up to some text-file editing? If so, here's how to fix the problem: 1. Locate your scripts directory - if you don't know where this is, run the Help->System->"System information" script and look for the "default scripts dir" in the text file it generates. 2. Open the "x3d_export.py" fi...
by reD_Fox
Tue Apr 24, 2007 5:12 pm
Forum: Python
Topic: matrix math for World to Camera coordinates
Replies: 3
Views: 3768

Hello, I don't have a working solution for you, but maybe I can help a bit. 1. Unless you haven't already, you might try posting questions and scripts over at BlenderArtists.org: http://blenderartists.org/forum/forumdisplay.php?f=11 That forum is a bit more active, and you might get more and better ...
by reD_Fox
Sun Apr 15, 2007 8:59 pm
Forum: Python
Topic: Exporting Blender Scenes
Replies: 1
Views: 1683

Hello, exporting a Blender scene can be either complicated or simple, depending on your needs. I would recommend you learn the basics of Blender-python first. There are quite a few exporters/importers already written, and studying their code will help you more than I can. If you have any specific qu...
by reD_Fox
Sun Apr 15, 2007 2:02 am
Forum: Python
Topic: which python 2.4.4 installer?
Replies: 2
Views: 1818

I'm not real sure, but I think you go with the "x86 processors" one. I was under the impression that the itanium was for high-end server-type processors.

Or, pick one, and if it doesn't work, get the other. :)

Levi
by reD_Fox
Sat Apr 14, 2007 6:44 pm
Forum: Python
Topic: Moving Meshes by a Bone in Python
Replies: 8
Views: 4205

Grr, it was right under our noses the whole time:
http://www.blender.org/documentation/24 ... odule.html

It's listed under the Object module on the main page.

Maybe that will help a little more?

Levi
by reD_Fox
Fri Apr 13, 2007 5:05 pm
Forum: Python
Topic: Moving Meshes by a Bone in Python
Replies: 8
Views: 4205

Yeah, I know. Right now the only way I can find to "deform" armatures without editing their base data is either to use NLA/Actions/IPOs, or by using external parenting and tracking stuff (like making an armature track to an empty, and then moving the empty with python). My suggestion would be, if yo...
by reD_Fox
Fri Apr 13, 2007 4:39 pm
Forum: Python
Topic: Moving Meshes by a Bone in Python
Replies: 8
Views: 4205

OK, I think I know what your problem is, but since I haven't worked with armatures in python, I don't know how to tell you to fix it. arm.makeEditable() puts you in armature edit mode , not pose mode. But I can't figure out how to move an armature in pose mode with python. I'll let you know if I fig...
by reD_Fox
Fri Apr 13, 2007 3:59 pm
Forum: Python
Topic: Moving Meshes by a Bone in Python
Replies: 8
Views: 4205

Hey, I have never used armatures in python, so I won't be much help in that area. However, I have a couple of tips that might be useful. 1. Post questions about python in the BlenderArtists.org forum: http://blenderartists.org/forum/forumdisplay.php?f=11 There's nothing wrong, really, with posting t...
by reD_Fox
Tue Apr 10, 2007 4:13 pm
Forum: Python
Topic: Submitting scripts for community scrutiny?
Replies: 2
Views: 1650

Hello, I suppose this could be a place, but I would submit it to the blenderartists python forum personally: http://blenderartists.org/forum/forumdisplay.php?f=11 It's a bit more frequented (a chance for more and better feedback). But, I say, Sure! Submit your script and state that you are intereste...
by reD_Fox
Thu Mar 29, 2007 4:26 pm
Forum: Python
Topic: Optimizing python scripts
Replies: 4
Views: 2779

I played around with the profilers a bit, and had better luck with hotshot. Look that up in the documentation and try it using .start() and .stop(). But, it doesn't really work well with a python script that has a GUI (you're using Draw.Register). For that, you'll have to put .start() and .stop() wi...
by reD_Fox
Tue Mar 27, 2007 5:37 pm
Forum: Python
Topic: Optimizing python scripts
Replies: 4
Views: 2779

Generally, it's called "data structures and algorithms." I don't know of any specific tools, but if you're ambitious enough, you can incorporate primitive profiling by storing time snapshots around particular locations in the code to determine which areas are taking the longest. Otherwise, my bigges...
by reD_Fox
Tue Mar 27, 2007 5:11 pm
Forum: Python
Topic: Vertex normal import
Replies: 2
Views: 4497

This isn't really a limitation on the Bpy side, but rather on the "whole Blender" side. Blender doesn't work well with preserving custom normals, although I would have thought that the altered normals would have been visible in the viewport.

Levi
by reD_Fox
Tue Mar 27, 2007 4:58 pm
Forum: Python
Topic: Why does my script crash Blender? I can't figure it out.
Replies: 6
Views: 2825

Hello, I'm getting a crash as well. It seems to be the fault of "my_mesh.quadToTriangle(0)". Works fine in 2.42.

I'll post this to the tracker for you.

Levi
by reD_Fox
Thu Mar 22, 2007 10:33 pm
Forum: Python
Topic: getpass in blender GUI
Replies: 1
Views: 1798

Not simply and directly, no. There are ways of capturing keyboard input invisibly using the Blender-python graphical interface, but I wouldn't recommend it.

Just direct the user to switch over to the consol to type in their password. I think that would be the easiest.

Levi