![]() ![]() # sizes are in power of 2 so 11 is $randomseed is substance designer internal gets passed as a string so get's interpreted as float or int # $outputsize is substance designer internal variable # pass any files first note it's set entry not set "image_example.png"))) Render_path = os.path.normpath(R"C:\Program Files\Adobe\Adobe Substance 3D Designer\sbsrender.exe")Īrgs.append(os.path.join(script_dir, "batch_example.sbsar")) Script_dir = os.path.dirname(script_path) I've just put a few examples with comments you should be able to derive the rest from these.įor color the easiest way to do it is create a float 4 input and hook that up to a standard color node then you can just pass the float values to that and use the color node line normal in the graph Here's basic python example, I like to build the command line like this so it's easy to read, this is assuming you have the archive and associated files in the same directory as your python script. I try and keep as much logic and calculations in the python script as I can and pass the results and avoid doing complicated function graphs where I can so it's easier to manage and more visible whats going on. Once the graphs get more complicated you quickly get lost trying to find the imports so I break all mine out. ![]() ![]() Unless things have changes you have to be careful to force image inputs to be of the size you want and most importantly the bit depth especially for height and position maps I set it to absolute 16bit in my graph. Main issues are the formatting of the string you pass the command line is not that obvious. There are lots of "gotchas" to get going but once you have those sorted it's easy. Hard to do succinctly here :-), will try. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |