question

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

Comment viewing options

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

Screenshot

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

Cheesy Animation

miauu's picture

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"
)
dom123432's picture

yes exacly, thanks a lot,

yes exacly, thanks a lot, your a time savior

barigazy's picture

Can you post some

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

barigazy

Comment viewing options

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