quickMask from selection - update 01/04/2014

coronaQuickMask
Render super fast mask from selection.

GitHub Repository

How to run
Download coronaQuickmask.mcr and copy to usermacros folder (c:\Users\username\AppData\Local\Autodesk\3dsMax\2014 - 64bit\ENU\usermacros)
Drag and drop to viewport should work too.
In Customize - Customize User Interface select Quads - category corona and drag “Render quick mask from selection” to the right window. You should have Render quick mask from selection on right-click quad menu.

How it works
It uses Render only elements function from corona (Actions rollout) nad CMasking_mask element. Adds Element - store objects GBuf IDs - renders - shows output - reverts GBuf IDs changes. Output is antialiased with 3 corona passes (other settings untouched).

Updates
01/04/2014 render dialog closing during render (setting no. of passes correctly)
01/04/2014 itoo forest pack support

Thanks Pavel , I’ll sure give it a try :smiley:

really nice, I just tried it.

HI Pavel

could it be that it is not working with the selectoin of Forest Pack objects?

it’s possible and:
FIXED

Just tried this out, works pretty good. Thanks!

Ok…now its not working, unless I’m doing something wrong. Keeps giving me the error: Error creating file output. Total brainfart here.

I tried and can’t get it to work on 3ds Max 2012. It won’t load at all.

Any suggestions ?

Can you add render with bacburner please.
Thanks for your script

I just tried the script in max 2015, I’m getting --Runtime error: attempt to access deleted when I select an object and hit quickMask

Hello,

I tried on Max 2014 and didn’t work, it suppose to work in which version?

I fixed his script and now it works in new Corona versions.

corona-quickMask.rar (1.79 KB)

Is there a new version of this? I tried editing it myself, but “renderElements” has been removed and I don’t know how to check “render only masks” via maxscript.

I did it again. Fixed it for Corona 1.6
Script isn’t my, so I just made it work despite the beauty of the code :smiley:

Unfortunately maxscript can’t disable autosave render elements output files, so your mask will be always saved…somewhere

Rar is in message attachment
corona-quickMask-corona1.6.rar (1.98 KB)

Thank you!

Just a quick question: I see that you added “corona.shading_onlyElements = true”, which is exactly what I was looking for yesterday. Where did you find that info? It’s not listed in https://corona-renderer.com/wiki/maxscript and I searched everywhere I could think of.

I don’t read Corona Wiki for this.
show (or showproperties) comand let you see all properties of any “object”.
renderers.current is…current render :smiley: Corona.

So, in listener paste show renderers.current and press enter. You will see a-a-all properties of Corona Renderer

P.S. Use this method to find any available properties of objects, materials, lights etc.

Ah. I script in Modo/python, but maxscript is completely new to me. Thank you!

The script worked fine, but for some reason Corona applied denoising when finished (even though the element doesn’t need it), so I edited the script to temporarily disable denoising. Attached the script.
corona-quickMask-corona1.6.mcr.zip (1.96 KB)

Any ideau why it bugs ?

Thanks ! :smiley: