Page 1 of 1

Baking out all my textures

Posted: Sun Aug 28, 2016 8:10 pm
by Raymundo302
I apologize if this has been posted somewhere before but I can't seem to find an answer. I do texture environments for VR and I want to render out all my different UV groups without having to baby sit my scene. As in I usually select the bake group, wait for it to render, save the image, select the next baking group, wait for it to render out, save the image, and rinse and repeat for my 20 other baking groups. Is their any way to just tell modo/octane, I want all my baking groups rendered out individually and saved in this folder with this many samples? It would be awesome if I could just let it run over night. It's really becoming a time sink for my more complex scenes.

Re: Baking out all my textures

Posted: Mon Aug 29, 2016 12:37 am
by face_off
This is not something I have automated yet, and you are actually the first user to ask for this. I suspect users will have different requirements for rendering of baked textures, so the best option at the moment is to script it. The relevant command are:

Select the current camera with -> select.subItem camera003
Then set the baking group to group 2 (as an example) with -> item.channel oc_BC_bakingGroupId 2
Start the render with -> octane.resume
Check to see if the render has finished -> octane.renderStatus ?
(Or you could just have python wait for a predetermined amount of time while Octane renders)
Save the render to disk -> octane.save png8 "C:\MyFolder\BakingGroup2.png"

Paul

Re: Baking out all my textures

Posted: Mon Aug 29, 2016 5:35 pm
by Raymundo302
I see, luckily I have a bit of history writing python scripts. Thank you Paul

I will try to write the script this week and post it here for those who come up with the same problem.

Re: Baking out all my textures

Posted: Wed Aug 31, 2016 4:02 am
by face_off
You can find the python script to do this in Rhino at viewtopic.php?f=41&t=56027.

Paul