checkbox render pass script

checkbox render pass script

danny.austin
Advocate Advocate
1,293 Views
4 Replies
Message 1 of 5

checkbox render pass script

danny.austin
Advocate
Advocate

Hi All,

 

I am designing a script to automate the submission of a number of defined render passes.

I have written all the individual elements of code for the passes.

These include: x1 Overide white shader

                    x8 Reflection passes of certain objects

                    x1 Render pass of certain objects...

 

I'm not sure how to combine all this into a single script. The intended functionality is:

on render pressed do where checkbox = checked

send individual render passes.

 

Could someone point me in the right direction on how to structure the different elements together?

 

I have the UI and will upload asap.

0 Likes
Accepted solutions (1)
1,294 Views
4 Replies
Replies (4)
Message 2 of 5

danny.austin
Advocate
Advocate

Here's the UI...

 

What would be a good method to submit these checked passes sequentially once render is pressed?

 

The reflect passes set some objects to be invisible and assigns a predefined reflect material to the rest.

The light pass is simply a predefined override shader

The render pass sets some objects to be invisible and renders the rest. 

 

 layersscript.jpg

0 Likes
Message 3 of 5

kevinvandecar
Community Manager
Community Manager
Accepted solution

 

Hi, if I understand correctly, this sounds like mainly you will have to explore using the MAXScript logic syntax. You will have to create logic that groups the options together with if and/or case statements. Is that what you are asking? I would suggest to look at the docs and samples to find examples of how to piece it together in your context.

 

Another option would be to search the web and find something similar to start with. I found this one pretty quickly. It says it does similar to what you are asking. Note it clearly says not complete, but it might give you a jump start. http://www.scriptspot.com/3ds-max/scripts/render-pass Note I had to make a few minor changes for it to run, but it loaded and looks similar to what you are asking.

 

hope it helps,

kevin

 


Kevin Vandecar
Developer Technical Services
Autodesk Developer Network



Message 4 of 5

danny.austin
Advocate
Advocate

Hi Kevin,

 

Thanks for your reply. I really appreciate it.

I've just had a scan through the script you linked to. It contains all the pointers I need to complete mine.

Regarding the file location and naming; I'm planning on setting a master output location and a prefix based on the individual job. 

I'll then add that string as a prefix for fixed layer names.

 

Thanks for the assistance Kevin. Once I know I'm heading in the right direction things become a lot clearer.

 

 

Danny 

0 Likes
Message 5 of 5

kevinvandecar
Community Manager
Community Manager

Hi Danny,

 

Thanks for the confirmation that it helped. I will "accept as solution" and if you have further trouble, please make a new post with more specifics of where you are stuck.

 

Thanks!

Kevin

 


Kevin Vandecar
Developer Technical Services
Autodesk Developer Network



0 Likes