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

Synopsis

subdAutoProjection( selectionList , [constructionHistory=boolean], [layout=int], [name=string], [optimize=int], [percentageSpace=float], [planes=int], [scale=int], [skipIntersect=boolean], [worldSpace=boolean])

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

subdAutoProjection is undoable, queryable, and editable.

Projects a texture map onto an object, using several orthogonal projections simultaneously.

The argument is a face selection list.

Return value

stringThe node name.

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

Flags

constructionHistory, layout, name, optimize, percentageSpace, planes, scale, skipIntersect, worldSpace
Long name (short name) Argument types Properties
layout(l) int createqueryedit
What layout algorithm should be used:
0 UV pieces are aligned along the U axis.
1 UV pieces are moved in a square shape.
optimize(o) int createqueryedit
Use two different flavors for the cut generation.
0 Every face is assigned to the best plane. This optimizes the map distortion.
1 Small UV pieces are incorporated into larger ones, when the extra distortion introduced is reasonable. This tends to produce fewer UV pieces.
percentageSpace(ps) float createqueryedit
When layout is set to square, this value is a percentage of the texture area which is added around each UV piece. It can be used to ensure each UV piece uses different pixels in the texture.
Maximum value is 5 percent.
planes(p) int createqueryedit
Number of intermediate projections used. Valid numbers are 4, 5, 6, 8, and 12.
C: Default is 6.
scale(sc) int createqueryedit
How to scale the pieces, after projections:
0 No scale is applied.
1 Uniform scale to fit in unit square.
2 Non proportional scale to fit in unit square.
skipIntersect(si) boolean createqueryedit
When on, self intersection of UV pieces are not tested. This makes the projection faster and produces fewer pieces, but may lead to overlaps in UV space.
worldSpace(ws) boolean createqueryedit
This flag specifies which reference to use. If "on" : all geometrical values are taken in world reference. If "off" : all geometrical values are taken in object reference.
C: Default is "off".
Common flags
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable).
name(n) string create
Name the resulting object.

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

# Create a subd sphere with default UVs.
mel.eval( "createSubdSphereProc" )

# Automatic projections with 6 planes.
cmds.subdAutoProjection( 'subdivSphere1.smf[*][*]' )