.............................................................................................................................................................. version 1.2

Whit this tool you can easely control subdivision value according to Relection or Reflaction glossiness values.
Idea by John O’Connell
Script
VRayMat Resampler
By barigazy · Credited author: Branko Živković · 2014-03-04
- Version
- 1.2
- Version requirement
- 2010+
- Other software required
- VRay2+
- Date updated
- 2014-03-04
- Votes
- 3
Description
Additional Info
Support materials which are considered in resampling process:
* VRay2SidedMtl
* Shellac
* VrayMtlWrapper
* VRayBlendMtl
* VrayOverrideMtl
* VrayCarPaintMtl
* VrayFastSSS2
* VrayFlakesMtl
* Multimaterial
* CompositeMaterial
* Blend
* TopBottom
* Shell_Material
Resampling can be done on Scene Materials, Selected Objects Materials
or Material Editor Materials separately.
...Update v1.1
- user can now choose which material property want to be considered in
resampling process. (requested by ice-boy)
...Update v1.2
- fixed some minor bugsAttachments
- bga_vraymatresampler_v1.2.ms — bga_vraymatresampler_v1.2.ms5.7 KB
- bga_vraymatresampler_v1.2.mcr — bga_vraymatresampler_v1.2.mcr5.9 KB
Tags: VRay, subdivision calculator, vraymtl, Slossiness
Comments (24)
Getting an error
trixian · 2014-06-25
This is under W7, 3ds max Design 2014 (latest updates), VRay 2.40.04.
Running the script directly (.ms) or via my menu (.mcr) throws this error:
--Unknown property: "flake_subdivs" in Material #83:VRayFlakesMtl
So obviously the script is not handling the VrayFlakesMtl properly.
barigazy · 2014-06-26
@trixian
Send me test scene. I use same version of max and VRay
barigazy · 2014-11-18
fixed code for "VrayFlakesMtl"
artursamenezes · 2014-12-18
great!
Save settings as default option?
3dwannab · 2014-06-05
Hi, Just what I was looking for, thank you so much. Just wondering if you could incorporate save default settings in the script.
EDIT: It's okay, I just modified the line to:
local minSmpl = 8, difference = 64, defVals = clalcVals minSmpl difference
EDIT: Is it possible to affect materials in the slate material editor window or even better yet a .mat file? I'm just going round checking all my material libraries. Thanks.
Tested 1.2
Custom · 2014-04-14
Hello again. It's my report caused 1.2 release :)
Today I tried "crazy multiplying" when counters hits 1000 and beyond. Max hangs for two minutes in good case, but much more often it hangs for forever, leaving me no other choice but to kill the process. CPU load during this is 40-50% on i7 2700k. No other tasks on the machine at this time except browser and skype. I've tested reflection & refraction only and scene materials only.
Yes, there is limit of 1000subdivs in settings, but user can multiply to thousands by mistake. Maybe there should be a limiter of 1000 directly in script...
(All described is about .ms version)
vray 2.4 , max 2012 x64, win 7
How?
locb · 2014-04-11
How we can use this when glossy controled by texture? Just type it by hande?
barigazy · 2014-04-11
Quality of texture and contrast value affect also on quality of glossines.
But this tool can't predict different pixel color value of texture assigned in map slot. I was planned to add feature which will find average pixel color value and based on that define other parameters. But this will be very long ei. slow calculation. Maxscript is not good for that chalange.
List of fixed bugs in 1.2 ?
Tommy_LedZep · 2014-04-11
Hi Barigazy,
Where can a list of fixed bugs in 1.2 version can be found please ?
Thank you
barigazy · 2014-04-11
It's very small fix of Override material nothing more. One of the user sended me PM
to fix variable problem.
Thx
Tommy_LedZep · 2014-04-12
Thank you
How to remove old v1.0 ?
Tommy_LedZep · 2014-03-12
Hi,
I first installed v1.0 on 3dsmax 2013. Then I installed v1.1. And now I have 2 toolbars for your script each time I start 3dsmax (both run the v1.1 script).
I went to Customize user Interface and I deleted both the 2 toolbars but they always come back each time I start 3dsmax !
Is there a way to do a clean uninstall of the script so I can do a new install and have only one toolbar instead of two ?
Thank you in advance,
barigazy · 2014-03-12
Read this post
Tommy_LedZep · 2014-03-12
Thank you it worked :)
I had the .mcr in this folder:
C:\Users\Nom\AppData\Local\Autodesk\3dsMaxDesign\2013 - 64bit\ENU\usermacros
...update 1.1
barigazy · 2014-03-09
@ice-boy
I hope this is what you require on CGTalk
Unable to convert-undefined to type: material
gutobocchi · 2014-03-07
Hello. Does anyone know what is this? I get this error when I try to convert the subdivisions on Vray. I'd be really glad if I can get this script to work. Cheers.
barigazy · 2014-03-07
First of all:
#1_Which version of VRay do U use? If U use version below 2.0 ignore 2nd and 3rd question because script not supports old versions of VRay.
#2_Send me in email screenshot of listener to see whole error message.
#3_Explain whay U tried to cause this error>
JokerMartini · 2014-03-05
You misspelled the title in your artwork image.
Shouldn't it be ReSampler not Resamler, matching the tool's dialog title
:)
barigazy · 2014-03-05
I've been sleepy :)
Toolbar ?
Tommy_LedZep · 2014-03-05
Thank you for this wonderful script, you did a great job: it works very fine as expected and it's going to save me a huge load of time !!
Just one thing though: it would be nice to be able to assign the script to a toolbar.
Otherwise, perfect !
barigazy · 2014-03-05
You mean macro script. Sure
Download *.mcr version
Thank you
Tommy_LedZep · 2014-03-05
Sorry, I didn't see there was an .mcr version ... I'm confused
Thank you again !
barigazy · 2014-03-05
Don't be. I just added it after your request.
Cheers!
Tommy_LedZep · 2014-03-05
Ok !! :)
Cheers