Chaos Corona Forum
General Category => General CG Discussion => Topic started by: Charlie Nicols on 2017-04-05, 17:48:20
-
Use a script for MAX to set up all my object ID's and someone developed it to also add the Vray elements. Would anyone be able to make a corona version? Would be amazing.
http://tepavicharov.com/?p=49
-
It works for any renderer because it changes 3dsmax native property "gbuffer object id". I use this script with Corona and had no problems
-
The tool work yes, but not in its entirety.
There is a button at the bottom of the script that automatically creates the VRAY render elements to correspond with the ID's.Having this for corona would be great.
-
So how it should work? There is no object ID render element in Corona. We have only Cmasking_mask where we can get 3 object IDs maximum.
-
Well basically say you use the tool to make 13 object ID's it then creates multiple Vray elements with ID'd from 1-13. For corona it would do the same just using the corona mask element.
-
Okay I can do that. Later.
I will post it here
-
Great! Thanks.
-
It seems I did what you want.
I added one more button that creates mask CMasking_Mask elements. One element for one Object ID.
And for example if element "Object ID 7" is already created then id 7 will be skipped and won't create duplicate.
Macro is attached.
-
Humm when I try to create the Corona Masks it gives me the error "Use Corona Render"
Currently it is - Corona 1.5(HF 2)
Max 2016
-
Sorry, name pattern was changed after 1.5 :) Fixed and updated. Same attachment in previous post
-
Nik that's great! Thanks a lot, Works a charm. Hope it gets posted somewhere so others can enjoy.
-
It seems I did what you want.
I added one more button that creates mask CMasking_Mask elements. One element for one Object ID.
And for example if element "Object ID 7" is already created then id 7 will be skipped and won't create duplicate.
Macro is attached.
Hello Nik, is it possible to have a button that create several CMasking_Mask elements in RGB mode instead of Monochromatic?
In this way will be easier to select masks and there will be less masking elements if we set a lot of different IDs.
Thanks for your help!
-
maskelement1: R-id1, G-id2, B-id3
maskelement2: R-id4, G-id5, B-id6
etc
Like this?
-
Exactly. It would be perfect this way!
-
Try this. In attachment.
I've made two buttons for Mono and RGB.
If some IDs are already used in RGB or Mono Masks then these IDs will be skipped.
And element naming is changed a little.
Author would make such features different or even better, but I guess he's not interested in updates now. Maybe not.
Anyway, I don't mind to update this script from time to time and I enabled notification in this topic.
-
Nik, it works perfectly!
Thank you for your time. It will be usefull for a lot of people here!
-
Great tool, tnx a lot :) :)
-
Just ran across, this. Super helpful. Thanks Nik!
-
this script is very very helpful. thanks man!
-
Amazing!
Do you think is it possible to add the id and render elements for all the scene materials?
I think it would be just perfect with this feature
Thank you very much for your work!
Man