pymel.core.rendering.hwReflectionMap¶
- hwReflectionMap(*args, **kwargs)¶
This command creates a hwReflectionMap node for having reflection on textured surfaces that currently have their boolean attribute displayHWEnvironment set to true.
Flags:
Long Name / Short Name Argument Types Properties backTextureName / bkn unicode This flag specifies the file texture name for the back side of the cube.Default is noneWhen queried, this flag returns a string. bottomTextureName / bmn unicode This flag specifies the file texture name for the bottom side of the cube.Default is noneWhen queried, this flag returns a string. cubeMap / cm bool If on, the reflection of the textures is done using the cube mapping.Default is false. The reflection is done using sphere mapping.When queried, this flag returns a boolean. decalMode / dm bool If on, the reflection color replaces the surface shading.Default is false. The reflection is multiplied to the surface shading.When queried, this flag returns a boolean. enable / en bool If on, enable the corresponding hwReflectionMap node.Default is false.When queried, this flag returns a boolean. frontTextureName / ftn unicode This flag specifies the file texture name for the front side of the cube.Default is noneWhen queried, this flag returns a string. leftTextureName / ltn unicode This flag specifies the file texture name for the left side of the cube.Default is noneWhen queried, this flag returns a string. rightTextureName / rtn unicode This flag specifies the file texture name for the right side of the cube.Default is noneWhen queried, this flag returns a string. sphereMapTextureName / smn unicode This flag specifies the file texture name for the sphere mapping option.Default is noneWhen queried, this flag returns a string. topTextureName / tpn unicode This flag specifies the file texture name for the top side of the cube.Default is noneWhen queried, this flag returns a string. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.hwReflectionMap
Example:
import pymel.core as pm pm.hwReflectionMap( cm=1, en=1, ftn='D:\\Textures\\room.front.jpg', bkn='D:\\Textures\\room.back.jpg', tpn='D:\\Textures\\room.top.jpg', bmn='D:\\Textures\\room.bottom.jpg', ltn='D:\\Textures\\room.left.jpg', rtn='D:\\Textures\\room.right.jpg', smn='D:\\Textures\\room.front.jpg' ) # Result: [nt.HwReflectionMap(u'hwReflectionMap1')] #