Falloff map

i have a question and answers will be appreciated i need to replace all (Falloff map) in scene materials with (falloff.map1 if != undefined)
How can i do that i can get all falloff maps but i can't replace it unless i wrote it like (i.material.... = i.material....)
THANKS IN ADVANCED.

Comments

Comment viewing options

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

solved

replaceInstances b c

obaida's picture

i dont know whay

if i have object with VRay material applied to it then
$.material.texmap_diffuse = falloff ()
a = $.material.texmap_diffuse
b = a.map
c = b.map1
b = c --------(nothing will happen)
a.map = b.map1 --(changeing done)
so if i want to make this change i need to not only know what (a) is, but i need also to write it !!
in case of array how can i write (a)
ANY HELP , thanks in advanced.

Comment viewing options

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