vray material converter corona material i need help

hi,i need help,i use Corona Converter scripts ,converter some vray material to corona material,but corona glossiness channel material which joined the output of fuzzy control, I want to close “enable color map” and modify “rgb level = 0.6”, I need a batch script, because I have too much material you need to modify the,sorry my bad english

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pixamoon's picture

`

hi,

to change RGB Level its easy, just use:

your_map = ....
your_map.output.rgb_level = 0.6

but to change "Enable color map" it's bit more tricky, take a look on this:
http://forums.cgsociety.org/archive/index.php?t-993502.html

basically what script needs to do is load each map to MatEditor slot than use UIAccessor to press/enable checkbox:

MatEditor.mode #basic
mateditor.open()
medit.SetActiveMtlSlot 1 on
 
-- put your_map in slot 1
meditMaterials[1] = your_map
 
c = windows.getchildhwnd (windows.getchildhwnd 0 ("Material Editor - " + your_map.name))[1] "Enable Color Map"
 
BM_SETCHECKED = 0x00F1
UIAccessor.SendMessage c[1] BM_SETCHECKED 1 0
UIAccessor.PressButton c[1]

hope this helps

Cheers,
Pixamoon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.