This command creates a hwReflectionMap node for having reflection on textured surfaces that currently have their boolean attribute displayHWEnvironment set to true.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
backTextureName (bkn) | unicode | ||
|
|||
bottomTextureName (bmn) | unicode | ||
|
|||
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 | ||
|
|||
frontTextureName (ftn) | unicode | ||
|
|||
leftTextureName (ltn) | unicode | ||
|
|||
rightTextureName (rtn) | unicode | ||
|
|||
sphereMapTextureName (smn) | unicode | ||
This flag specifies the file texture name for the sphere mapping option.Default is noneWhen queried, this flag returns a string.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
topTextureName (tpn) | unicode | ||
|
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')] #