Find Bitmaptexture class in diffuse slot

Hi,
I want changing properties of bitmaptexture for example tiling or offset values.
and I just want do it if classof material is vray and is in diffuse channel.
Since the problem starts when:
I have color_correction and bitmaptexture is in color correction map.

Is there any way to find or search if in diffuse slot there is any bitmaptexture change tile or offset?

Very neccessary.
Needs your help.
Thank's

Comments

Comment viewing options

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

`

hi,

Try this one:

bmpArr = #()
 
for m in getclassinstances VrayMtl where m.texmap_diffuse != undefined do
	if classof m.texmap_diffuse == BitmapTexture then 
		appendifunique bmpArr m.texmap_diffuse
	else 
		for b in getclassinstances BitmapTexture target:m.texmap_diffuse do 
			appendifunique bmpArr b
 
for b in bmpArr do (
	print b
	-- your code here
)

Best,
Pixamoon

Comment viewing options

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