ScriptSpot

Forum topic · General Scripting

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

By xueleihan · 2021-10-31

Description

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 (1)

Check This

obaida · 2021-11-20


(
	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
	)
)