ジャンプ先: 概要. 戻り値. フラグ. Python 例.
polyLayoutUV([caching=boolean], [constructionHistory=boolean], [flipReversed=boolean], [layout=int], [layoutMethod=int], [name=string], [nodeState=int], [percentageSpace=float], [rotateForBestFit=int], [scale=int], [separate=int], [uvSetName=string], [worldSpace=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyLayoutUV は、取り消し可能、照会可能、および編集可能です。
テクスチャ プレーンで UV を移動し、オーバーラップを避けます。string | ノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Common poly modifier operation flags | ||||||||||||
caching(cch)
|
boolean
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
constructionHistory(ch)
|
boolean
|
![]() ![]() |
||||||||||
|
||||||||||||
flipReversed(fr)
|
boolean
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
layout(l)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
layoutMethod(lm)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
name(n)
|
string
|
![]() |
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
percentageSpace(ps)
|
float
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
rotateForBestFit(rbf)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
scale(sc)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
separate(se)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
uvSetName(uvs)
|
string
|
![]() |
||||||||||
|
||||||||||||
worldSpace(ws)
|
boolean
|
![]() ![]() ![]() |
||||||||||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # Create a sphere. cmds.polySphere( n='sph' ) # Use a plane projection on half the faces cmds.select( 'sph.f[0:200]' ) cmds.polyProjection( type='Planar' ) # Layout all UVs in the texture plane. cmds.polyLayoutUV( 'sph.f[*]', l=2, fr=True, se=2, sc=1 )