Your Ad Here

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

Synopsis

polyCopyUV( [listOfFaces] , [constructionHistory=boolean], [createNewMap=boolean], [name=string], [uvSetName=string], [uvSetNameInput=string])

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

polyCopyUV is undoable, queryable, and editable.

Copy some UVs from a UV set into another.

Flags

constructionHistory, createNewMap, name, uvSetName, uvSetNameInput
Long name (short name) [argument types] Properties
uvSetNameInput(uvi) string createqueryedit
Specifies name of the input uv set to read the UV description from. Default is the current UV set.

In query mode, this flag needs a value.

createNewMap(cm) boolean createqueryedit
This flag when set true will create a new map with a the name passed in, if the map does not already exist.

In query mode, this flag needs a value.

uvSetName(uvs) string createqueryedit
Specifies name of the output uv set to modify. Default is the current UV set.

In query mode, this flag needs a value.

name(n) string create
Name the resulting object.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.


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.

Return value


string The node name.

Related

polyCylindricalProjection, polyPlanarProjection, polyProjection, polySphericalProjection, polyUVSet

Python examples

import maya.cmds as cmds

# Create a poly sphere, with default UVset.
cmds.polySphere()

# Create a second UV set
cmds.select( 'pSphere1.f[0:399]', r=True )
cmds.polyProjection( type='Planar', ra=0, isu=1, isv=1, cm=True, uvSetName='newUVs' )

# Copy the UVs of the fisrt 200 faces from the new set to the default one
cmds.polyCopyUV( 'pSphere1.f[0:199]', uvi='newUVs', uvs='map1' )

  

Return to Autodesk Index


Your Ad Here