Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Corona Goodies - User Contributions => Topic started by: pavelVojacek on 2014-03-31, 17:22:35

Title: quickMask from selection - update 01/04/2014
Post by: pavelVojacek on 2014-03-31, 17:22:35
coronaQuickMask
Render super fast mask from selection.

GitHub Repository (https://github.com/pavel-mxsf/coronaQuickMask)

How to run
Download (https://raw.githubusercontent.com/pavel-mxsf/coronaQuickMask/master/coronaQuickMask.mcr) 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
Title: Re: quickMask from selection
Post by: Adi on 2014-04-01, 01:07:42
Thanks Pavel , I'll sure give it a try :)
Title: Re: quickMask from selection
Post by: johan belmans on 2014-04-01, 10:13:28
really nice, I just tried it.
Title: Re: quickMask from selection - update 01/04/2014
Post by: johan belmans on 2014-04-01, 15:16:05
HI Pavel

could it be that it is not working with the selectoin of Forest Pack objects?
Title: Re: quickMask from selection - update 01/04/2014
Post by: pavelVojacek on 2014-04-01, 19:56:08
HI Pavel

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

it's possible and:
FIXED
Title: Re: quickMask from selection - update 01/04/2014
Post by: steyin on 2014-04-10, 16:11:03
Just tried this out, works pretty good. Thanks!
Title: Re: quickMask from selection - update 01/04/2014
Post by: steyin on 2014-04-15, 22:40:44
Ok.....now its not working, unless I'm doing something wrong. Keeps giving me the error: Error creating file output. Total brainfart here.
Title: Re: quickMask from selection - update 01/04/2014
Post by: Adi on 2014-06-14, 21:10:33
I tried and can't get it to work on 3ds Max 2012. It won't load at all.

Any suggestions ?
Title: Re: quickMask from selection - update 01/04/2014
Post by: kahein on 2014-07-29, 07:35:45
Can you add render with bacburner please.
Thanks for your script
Title: Re: quickMask from selection - update 01/04/2014
Post by: form on 2014-10-29, 16:03:15
I just tried the script in max 2015, I'm getting --Runtime error: attempt to access deleted <MixinInterface> when I select an object and hit quickMask
Title: Re: quickMask from selection - update 01/04/2014
Post by: finalimage on 2015-03-18, 12:59:08
Hello,

I tried on Max 2014 and didn't work, it suppose to work in which version?
Title: Re: quickMask from selection - update 01/04/2014
Post by: Nik on 2015-10-16, 18:18:12
I fixed his script and now it works in new Corona versions.
Title: Re: quickMask from selection - update 01/04/2014
Post by: Monkeybrother on 2017-01-13, 18:52:07
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.
Title: Re: quickMask from selection - update 01/04/2014
Post by: Nik on 2017-01-13, 19:33:41
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 :)

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

Rar is in message attachment
Title: Re: quickMask from selection - update 01/04/2014
Post by: Monkeybrother on 2017-01-14, 08:25:48
Thank you!
Title: Re: quickMask from selection - update 01/04/2014
Post by: Monkeybrother on 2017-01-14, 09:08:20
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 (https://corona-renderer.com/wiki/maxscript) and I searched everywhere I could think of.
Title: Re: quickMask from selection - update 01/04/2014
Post by: Nik on 2017-01-14, 09:42:49
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 :) 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.
Title: Re: quickMask from selection - update 01/04/2014
Post by: Monkeybrother on 2017-01-14, 09:46:44
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 :) 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!
Title: Re: quickMask from selection - update 01/04/2014
Post by: Monkeybrother on 2017-01-14, 10:18:02
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.
Title: Re: quickMask from selection - update 01/04/2014
Post by: zules on 2017-06-03, 16:10:06
Any ideau why it bugs ?

Thanks ! :)
Title: Re: quickMask from selection - update 01/04/2014
Post by: 3dboomerang on 2020-05-15, 18:19:38
Is there a way to increase the number of passes used for rendering the mask?

grts