Possible to show map on selected object?

Hi,

Is it possible to display the diffuse texture or bump texture on the selected object(s)? if possible, how?

All answers are welcome :)

Comments

Comment viewing options

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

Thank you barigazy. i will

Thank you barigazy.
i will look into it when i have some spare time. ;)

Raymond H.Ingebretsen - http://www.homme3d.com

barigazy's picture

this function will help you

this function will help you to toggle "showMaps" on or off in viewport

	fn showInViewportOnOff =
	(
		local mtlTypeArr = #(Multimaterial, Standardmaterial, Arch___Design__mi, VRayMtl) --fR_Advanced and fR_Architectural not have this property
		local state = if selection.count != 0 then selection else objects
		for o in state where o.material != null do
		(
			mat = o.material, idx = (finditem mtlTypeArr (classOf mat))
			case of (
				(idx > 1): (mat.showInViewport = not mat.showInViewport)
				(idx == 1): (for m in mat.materialList where ((finditem mtlTypeArr (classOf m)) > 1) do (m.showInViewport = not m.showInViewport))
			)
		)
	)

also see this thread
http://forums.cgsociety.org/showthread.php?f=98&t=298391&highlight=showi...

barigazy

Comment viewing options

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