pymel.core.rendering.hwReflectionMap

static rendering.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 ../../../_images/query.gif
 
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 ../../../_images/query.gif
 
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 ../../../_images/query.gif
 

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 ../../../_images/query.gif
 

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 ../../../_images/query.gif
 
If on, enable the corresponding hwReflectionMap node.Default is false.When queried, this flag returns a boolean.
frontTextureName (ftn) unicode ../../../_images/query.gif
 
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 ../../../_images/query.gif
 
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 ../../../_images/query.gif
 
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 ../../../_images/query.gif
 

This flag specifies the file texture name for the sphere mapping option.Default is noneWhen queried, this flag returns a string. Flag can have multiple arguments, passed either as a tuple or a list.

topTextureName (tpn) unicode ../../../_images/query.gif
 
This flag specifies the file texture name for the top side of the cube.Default is noneWhen queried, this flag returns a string.

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')] #

Previous topic

pymel.core.rendering.glRenderEditor

Next topic

pymel.core.rendering.hwRender

Core

Core Modules

Other Modules

This Page