ScriptSpot

Forum topic · Freelancers

question

By dom123432 · 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)

Screenshot

Patels77 · 2015-03-19

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

Is this is what you want?

miauu · 2012-10-12


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

dom123432 · 2012-10-13

yes exacly, thanks a lot, your a time savior

barigazy · 2012-10-12

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