Then do that for all objects in a scene. If anyone has an example of a system similar to this working, hell it could be structured:
Object: Cube
Loc(0,0,0)
Rot(0,0,0)
Scale(1,1,1)
Dim(2,2,2)
Whatever, doesn’t matter to me, I would just like to see an example I can play with and bastardize if someone can help, it would be much appreciated. I need to also get all light/camera info as well.
So, the background of my scene is just one mesh, but I need a script to give me camera/light locations as well. Obviously the location won’t translate perfectly to Panda, however, if they are all relative to eachother, I can parse and build the .py to use in panda appropriately. I just need that relative location, and an automated way of doing it.
I hope that helps, it’s kind of hard to explain how I’m building it without writing an essay
Do you want all objects in a scene or only those selected? Im just looking at the api, and it has everything you want… So I may be able to get everything you want printed in the terminal but I have no idea about how to get it in a txt file in python, but it would just mean copy and paste for you… is that ok?
I’d like to get everything in the scene, that way I can just omit objects that I don’t need, instead of reloading the scene to find things I missed. Also, I’m not actually sure how to view the terminal for blender on mac, do I just have to launch it from the terminal (never had a need to). But that copy/paste would be fine if you could explain how to do it.
Thanks so much mandoragon! That works awesome! I know enough python to be able to get this out to a text file, I think, but the console window will be great for debugging my mistakes as I figure out blender’s functions.
Works great! I used the terminal window for debugging a few of syntax errors I made, but now I can just open blender normally and run this without forcing a resolution.