Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

hwReflectionMap([backTextureName=string], [bottomTextureName=string], [cubeMap=boolean], [decalMode=boolean], [enable=boolean], [frontTextureName=string], [leftTextureName=string], [rightTextureName=string], [sphereMapTextureName=string], [topTextureName=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

hwReflectionMap is undoable, queryable, and editable.

This command creates a hwReflectionMap node for having reflection on textured surfaces that currently have their boolean attribute displayHWEnvironment set to true.

Return value

string(name of the created hwReflectionMap node)

In query mode, return type is based on queried flag.

Flags

backTextureName, bottomTextureName, cubeMap, decalMode, enable, frontTextureName, leftTextureName, rightTextureName, sphereMapTextureName, topTextureName
Long name (short name) Argument types Properties
backTextureName(bkn) string query
This flag specifies the file texture name for the back side of the cube.
Default is none
When queried, this flag returns a string.
bottomTextureName(bmn) string query
This flag specifies the file texture name for the bottom side of the cube.
Default is none
When queried, this flag returns a string.
cubeMap(cm) boolean query
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) boolean query
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) boolean query
If on, enable the corresponding hwReflectionMap node.
Default is false.
When queried, this flag returns a boolean.
frontTextureName(ftn) string query
This flag specifies the file texture name for the front side of the cube.
Default is none
When queried, this flag returns a string.
leftTextureName(ltn) string query
This flag specifies the file texture name for the left side of the cube.
Default is none
When queried, this flag returns a string.
rightTextureName(rtn) string query
This flag specifies the file texture name for the right side of the cube.
Default is none
When queried, this flag returns a string.
sphereMapTextureName(smn) string query
This flag specifies the file texture name for the sphere mapping option.
Default is none
When queried, this flag returns a string.
topTextureName(tpn) string query
This flag specifies the file texture name for the top side of the cube.
Default is none
When queried, this flag returns a string.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.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' )