raymairlot / batch-render-tools Goto Github PK
View Code? Open in Web Editor NEWA series of tools to help with doing batch renders in Blender.
A series of tools to help with doing batch renders in Blender.
I am trying to open a new terminal window, run Blender and be able to pass it some arguments so that I can commence background rendering and be able to see the progress of this render in the newly created terminal.
I'm currently using os.system
to open a Command Prompt, which is the Windows specific part. The advantage of opening a command prompt over using something like subprocess.call
is that it is a) Non-blocking, b) Shows feedback from Blender on the progress of the render, c) Allows the render to be cancelled by simply closing the Command Prompt window and d) Doesn't require Blender to be open during rendering (aside from starting the render).
I have this working on Windows and I know how to get it to work on Linux (though I haven't yet updated the add-on) with:
command = 'xterm -e ' + bpy.app.binary_path + ' -b ' + PathToBlend + ' -a'
os.system(command)
But, what I can't seem to do is work out how to get it to work on Mac OSX. This works:
command = 'open -a /Applications/Utilities/Terminal.app ' + bpy.app.binary_path'
os.system(command)
It opens a Terminal and runs Blender, but I don't know how to pass additional arguments to Blender. If anyone knows how to do that, please let me know.
An untested 'Linux and OSX Support' branch now exists thanks to the contributions from antoniochiurla. I still intend to make my own attempt at OSX and Linux support in the main branch at some point.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.