Am I just being blind? I cant see "Glossy Fresnel" on/off option in the channel box or attribute spreadsheet.
Announcement
Collapse
No announcement yet.
Glossy fresnel in the channel box
Collapse
X
-
Cheers, but that's the attribute editor...Im looking to turn glossy fresnel on for a group selection. (Im useless at scripting, so I was wondering why its not a viewable attribute like all the others in the spreadsheet, or channel box).Last edited by seandunderdale; 23-08-2018, 03:49 AM.
Comment
-
In case anyone is wondering why this is an issue, its come from picking up a CAD automotive asset that was prepped with older Vray shaders, or using a library of shaders which is out of date. To bring it up to date, I need to disable gamma nodes, turn on GGX etc etc. One of the things that always needs doing in this situation is turning on Glossy Fresnel on loads of shaders.
I know this is probably a simple script to write but retaining any scripting knowledge has always been near impossible for me.
Comment
-
Just as a hotfix if you're still dealing with having to change all those shaders, you can use this little python script:
Code:import pymel.core as pm for obj in pm.selected(): obj.glossyFresnel.set(1)
Just select all your materials in hypershade and run that.
It's a handy snippet to keep around, just change the attribute and value. If you're unsure what an attribute is called, tweak it and check the script editor, it'll log the name there. If you get a "...has no attribute..." error, you might have selected a transform node when the value you want to tweak is on the shape node.
Hope that helps. I didn't get into scripting until I started having uses for it like this, same problem with retention. I just have a big document filled with tiny snippets of scripts like these that I can botch together to make something useful.Last edited by dgruwier; 24-08-2018, 01:41 AM.
Comment
-
I'll make a note to look into this, it doesn't seem right.
Comment
-
No, it's not fixed yet. We'll look into it soon, it's really weird why it wouldn't show up in the channel box.
On the other hand, if I select a bunch of vrayMtl nodes and go to the attribute spreadsheet > all > search for glossy fresnel - I can tweak it for multiple materials at the same time pretty easily - see if that will work for you.
Comment
-
Hey, just a note that this is now fixed and it will be included in the next major update.
Comment
Comment