I have a model with many submaterials.
Are there any scripts for turning all (or only selected models) VrayBitmaps to display full resolution?
Thanks.
I have a model with many submaterials.
Are there any scripts for turning all (or only selected models) VrayBitmaps to display full resolution?
Thanks.
You can use Modifier Modifier Zorb for that. This script is able to expose all parameters from anything and do mass changes (or randomly).
What Ashley said: that’s the best way about mass-editing in Max, bar none.
If you’d rather not install the script, for whatever reason, running the code below will do the trick.
If something is selected, then only the maps belonging to the selected nodes will be processed (nodes should be safe, no matter their class. select as you please, without second thoughts as to filtering it), but if there is no selection (as in, nothing at all selected), then it’ll process the whole scene.
Notice that this may lead to crashes if you force the full-size display of many bitmaps and exceed the graphic card’s memory limits.
(
theSel = selection as array
if theSel.count == 0 then --no selection, process the scene
(
for m in getclassinstances vraybitmap do m.viewport_useFullResolution=true
)
else --we have a selection, process that instead
(
theMaps=#()
for o in theSel do
(
join theMaps (getclassinstances vraybitmap target:o )
)
for m in theMaps do m.viewport_useFullResolution=true
)
)