Search found 6 matches

by CliveP
Fri Dec 28, 2012 6:59 pm
Forum: Python
Topic: Shape Keys Import and Export
Replies: 5
Views: 2302

Hi Regg I suggest you look at scripts\addons\io_scene_obj which is the Wavefront OBJ importer (which is where I started) A key bit of code is: file = open(filepath, 'rb') for line in file: # read each line from the file line_split = line.split() # break the line into a list of separate strings if no...
by CliveP
Thu Dec 27, 2012 6:21 pm
Forum: Python
Topic: Shape Keys Import and Export
Replies: 5
Views: 2302

Hi Regg How you set up the two data structures rather depends on where you're getting the data from - I'm reading it from a file I'm importing in a custom format - so probably not much help to you. What may help is if I show you a simple example of what they should contain, given the set of vertices...
by CliveP
Tue Dec 18, 2012 7:42 pm
Forum: Python
Topic: Blender keeps crashing
Replies: 11
Views: 4650

I've started getting crashes as well - always when I'm middle mouse button click and dragging to change the view in the 3D window. I'm using an ATI 5670 - with drivers I updated yesterday With simple models in the view it seems OK, the problem happens when I've imported a character mesh with my own ...
by CliveP
Mon Dec 17, 2012 8:00 pm
Forum: Python
Topic: Shape Keys Import and Export
Replies: 5
Views: 2302

Hi Regg I've just started scripting, and am doing the same thing. Here's my import code (I'm not trying to win prizes for good Python style!): # three global variables # curMorph is a count of the number of morphs (or shapes) to be made -1 # morphNames is a list of curMorph+1 names (as byte arrays) ...
by CliveP
Sat Dec 08, 2012 7:03 pm
Forum: Python
Topic: Where's the script error console! (possible newbie error)
Replies: 2
Views: 1589

Thanks - easy when you know how!
by CliveP
Fri Dec 07, 2012 9:25 pm
Forum: Python
Topic: Where's the script error console! (possible newbie error)
Replies: 2
Views: 1589

Where's the script error console! (possible newbie error)

I'm trying to run an example from Thomas Larsson "Code snippets. Introduction to Python scripting for Blender 2.5x" by copying the contents of the .py file (armature.py) to a Text window in Blender and hitting Run Script. I'm getting a 'Python script fail, look in the console for now', but I also ha...