I want to turn all nodes like 1 into 2 in the scene

Can the following operations be achieved

This is my test maxscript

vmats = getClassInstances VRaymtl
for v in vmats do(v.texmap_reflection = copy v.texmap_diffuse)

Comments

Comment viewing options

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

Check This

(
	local vmats = getClassInstances VRaymtl
	for v in vmats where classof v.texmap_diffuse == VRayNormalMap and v.texmap_diffuse.normal_map != undefined do (
		v.texmap_reflection = copy v.texmap_diffuse.normal_map
	)
)

Comment viewing options

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