ScriptSpot home

Forum topic · Freelancers

question

By dominique · 2012-10-12

Description

hi

does anyone know how to script the procedure of moving the diffuse map into bump and displace map slot, and also enabling displace and setting the value to 3 ?

that would be awesome!

thanks for any help

Comments (4)
Patels77

Screenshot

hello,
put screenshots there then can be solution.
thanks,
The Cheesy Animation - 3D architectural Rendering

miauu

Is this is what you want?


(
	_3edgesFaceMatID = 1
	_4edgesFaceMatID = 2
	curObj = selection[1]
	if classof curObj == Editable_Poly then
	(
		subobjectlevel = 4
		faceCount = polyop.getNumFaces curObj
		for f = 1 to faceCount do
		(
			edges = (polyop.getEdgesUsingFace curObj f).numberSet
			if edges == 3 do (polyop.setFaceMatID curObj f _3edgesFaceMatID)
			if edges == 4 do (polyop.setFaceMatID curObj f _4edgesFaceMatID)
		)		
	)
	else
		messagebox "Select Editable Poly object" title:"Invalid Selection"
)
Branko Živković

Can you post some screenshoots to see what exactly you want to achieve.