I’m looking to find a way how i can automatically import a 3DS-File in Blender. There already is an import function in blender, but is there a way to call this via a Python script?
I want to start a process, where a given 3DS-File will be imported and rendered at different camera positions by LuxRender. I want to start this process in a batch file, where i call blender.exe with the described python script as an argument. All of this should run in background, without users action.
I’m at the very beginning of my project and pleased to get any response whatsoever. If someone even could give me a python script example, it would be deluxe.
generally just import it (the script/class), call it and look in blender’s object graph like you would any object in blender via python bpy.data…ect… I think. You’ll have to alter the script a bit (overload methods pertaining to the file source input and it’s naming in blender’s object graph) It would help if you could alter it’s name in the 3ds script before it gets appended into blender for more dynamic usage (so you could say set up a way to refer to the same object with the same index/string that you called it by. There are other ways to do this, but this seems more seem-less.
then import a 3ds file. The operator call gets printed to the system console (help menu > toggle system console). You can then use this call in your script after editing the filename etc to suit. Debug mode spits out a lot of stuff including mouse events. Even looking instantly you may need to scroll back.