ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
polyContourProjection [-caching boolean] [-constructionHistory boolean] [-createNewMap boolean] [-flipRails boolean] [-insertBeforeDeformers boolean] [-method int] [-name string] [-nodeState int] [-offset0 linear] [-offset1 linear] [-offset2 linear] [-offset3 linear] [-reduceShear float] [-smoothness0 float] [-smoothness1 float] [-smoothness2 float] [-smoothness3 float] [-userDefinedCorners boolean] [-uvSetName string] [-worldSpace boolean]
polyContourProjection は、取り消し可能、照会可能、および編集可能です。
オブジェクトに輪郭ストレッチ UV 投影を実行します。| string | ノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Common poly modifier operation flags | ||||||||||||
-caching(-cch)
|
boolean
|
|
||||||||||
|
||||||||||||
-constructionHistory(-ch)
|
boolean
|
|
||||||||||
|
||||||||||||
-createNewMap(-cm)
|
boolean
|
|
||||||||||
|
||||||||||||
-flipRails(-fr)
|
boolean
|
|
||||||||||
|
||||||||||||
-insertBeforeDeformers(-ibd)
|
boolean
|
|
||||||||||
|
||||||||||||
-method(-m)
|
int
|
|
||||||||||
|
||||||||||||
-name(-n)
|
string
|
|
||||||||||
|
||||||||||||
-nodeState(-nds)
|
int
|
|
||||||||||
|
||||||||||||
-offset0(-o0)
|
linear
|
|
||||||||||
|
||||||||||||
-offset1(-o1)
|
linear
|
|
||||||||||
|
||||||||||||
-offset2(-o2)
|
linear
|
|
||||||||||
|
||||||||||||
-offset3(-o3)
|
linear
|
|
||||||||||
|
||||||||||||
-reduceShear(-rs)
|
float
|
|
||||||||||
|
||||||||||||
-smoothness0(-s0)
|
float
|
|
||||||||||
|
||||||||||||
-smoothness1(-s1)
|
float
|
|
||||||||||
|
||||||||||||
-smoothness2(-s2)
|
float
|
|
||||||||||
|
||||||||||||
-smoothness3(-s3)
|
float
|
|
||||||||||
|
||||||||||||
-userDefinedCorners(-udc)
|
boolean
|
|
||||||||||
|
||||||||||||
-uvSetName(-uvs)
|
string
|
|
||||||||||
|
||||||||||||
-worldSpace(-ws)
|
boolean
|
|
||||||||||
|
||||||||||||
// Create a plane.
polyPlane -sx 10 -sy 10 -n plane;
// Deform the plane and planar project UVs onto it.
softMod -falloffRadius 1 plane;
move -r -os -wd 0 0 -0.5 ;
select -r plane;
delete -ch plane;
polyProjection -ch 1 -type Planar -ibd off -md y plane.f[0:99];
// Create a lambert node.
shadingNode -asShader lambert -n myLambert;
sets -renderable true -noSurfaceShader true -empty -name myLambertSG;
connectAttr -f myLambert.outColor myLambertSG.surfaceShader;
// Create a texture checker.
shadingNode -asTexture checker;
shadingNode -asUtility place2dTexture;
connectAttr place2dTexture1.outUV checker1.uv;
setAttr place2dTexture1.repeatU 4;
setAttr place2dTexture1.repeatV 4;
// Assign the texture the the lambert node.
connectAttr -f checker1.outColor myLambert.color;
// Set the textured display mode.
if ( `getPanel -to ( eval( "getPanel -withFocus" ) )` ) {
string $currentPanel = `getPanel -withFocus`;
modelEditor -edit -da "smoothShaded" -displayTextures on -dl "default" $currentPanel;
}
// Assign the lambert shader to the plane.
sets -e -forceElement myLambertSG plane;
// Use the contour stretch projection to assign 'rectangular' UVs to a strip of faces
polyContourProjection -ch 1 -m 0 plane.f[30:69];