Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Maxscript Blur Value
show user profile  donvella
I have spent years of my life manually adjusting the blur values on bitmaps in vray multi-sub objects - I am going to try to script this damn thing as none of the ones on scriptspot work for me. Can someone help me?

I got this far... lol

meditMaterials[1].materialList[4].texmap_diffuse.coords.blur = 1

Can I have some guidance?






read 589 times
7/15/2015 9:23:34 AM (last edit: 7/15/2015 9:23:34 AM)
show user profile  3joez
Something like that?



for obj in geometry do (

if classOf obj.material == Vraymtl then(
obj.material.texmap_diffuse.coords.blur = 1
)

else(
for i=1 to obj.material.numsubs do(
obj.material.materialList[i].texmap_diffuse.coords.blur = 1
)
)
)

read 582 times
7/15/2015 10:51:46 AM (last edit: 7/15/2015 10:51:58 AM)
show user profile  FX
Script Ninja......ha so!

http://www.scriptspot.com/3ds-max/scripts/update-shader-utilities-for-3dsmax2015

read 566 times
7/15/2015 2:12:55 PM (last edit: 7/15/2015 2:12:55 PM)
show user profile  donvella
Thanks for the quick reply guys!

Joey I received this error:
-- Syntax error: at ), expected
-- In line: )

FX
Thanks mate! life saver



read 544 times
7/16/2015 1:40:28 AM (last edit: 7/16/2015 1:40:28 AM)
show user profile  3joez
Donvella, looks like you didn't paste a ")"

Just copy the snippet in the listener, highlight all the lines and press enter(the little enter, near the numbers).
It works just with vray materials.
read 537 times
7/16/2015 9:01:44 AM (last edit: 7/16/2015 9:01:44 AM)
show user profile  donvella
I think im useless at this. lol. I tried what you said no go




read 534 times
7/16/2015 10:03:16 AM (last edit: 7/16/2015 10:03:16 AM)
show user profile  3joez
Try this, should work on standard materials, too. Select your objects, first.

try destroyDialog mat catch()
Rollout mat "Blur"
(
button goButton "go"
on goButton pressed do (
for obj in selection do (
if classOf obj.material != standard then (

if classOf obj.material == Vraymtl then(
obj.material.texmap_diffuse.coords.blur = 1
)

else(
for i=1 to obj.material.numsubs do(
obj.material.materialList[i].texmap_diffuse.coords.blur = 1
)
)
)
else( obj.material.diffuseMap.coords.blur = 1)
)
)
)
createDialog mat
read 527 times
7/16/2015 12:59:37 PM (last edit: 7/16/2015 12:59:37 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org