Reddog9 opened this issue on Mar 05, 2008 · 32 posts
Reddog9 posted Tue, 11 March 2008 at 1:05 PM
Update:
After creating a .CR2 with default values, I realized I was going to need an easier way to edit some of them.
That means, you guessed it, I would have to be able to 'read' a CR2 file into blender. I started a script yesterday. It opens the CR2, strips out all the text into labels, coords, parent names, angles, spherical matrices, etc. I haven't written it to save all the data, although, I may have to in the end, just so I can put it back into a new edited file.
I ended up with a list of lists like this:
The above 2 print statements would give you (If I remeber correctly):
x = the bone # (Actor #)
703 - actor ([2] for the channel list, [x] actor / bone # 5, [1] for the list of Joints, [1] all the data for joint #1)
704 - actor ([2] for the channel list, [x] actor / bone # 5, [1] for the list of Joints, [1] the data for joint #1, [6] joint #1's center location)
The data structure looks similar to this:
This also meant I would have to have a GUI with multiple screens you could jump back and forth between.
Select a bone to edit GUI:
Select Joint to edit menu:
Joint Editor GUI:
So, we'll see how it goes. I'm still interested in it so I'm still working on it.
Scott
Reddog9
Tutorials, Samples and Models
www.blender3dclub.com