ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
polySphericalProjection [-caching boolean] [-constructionHistory boolean] [-createNewMap boolean] [-imageCenter float float] [-imageCenterX float] [-imageCenterY float] [-imageScale float float] [-imageScaleU float] [-imageScaleV float] [-insertBeforeDeformers boolean] [-keepImageRatio boolean] [-mapDirection string] [-name string] [-nodeState int] [-perInstance boolean] [-projectionCenter linear linear linear] [-projectionCenterX linear] [-projectionCenterY linear] [-projectionCenterZ linear] [-projectionHorizontalSweep linear] [-projectionScale linear linear] [-projectionScaleU linear] [-projectionScaleV linear] [-radius linear] [-rotate angle angle angle] [-rotateX angle] [-rotateY angle] [-rotateZ angle] [-rotationAngle angle] [-seamCorrect boolean] [-smartFit boolean] [-worldSpace boolean]
polySphericalProjection は、取り消し可能、照会可能、および編集可能です。
TpolyProjCmdBase は、選択したポリゴン フェースにマッピングを作成するコマンドの基本クラスです。 球マップをオブジェクトに投影します。| string | ノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Common poly modifier operation flags | ||||||||||||
-caching(-cch)
|
boolean
|
|
||||||||||
|
||||||||||||
-constructionHistory(-ch)
|
boolean
|
|
||||||||||
|
||||||||||||
-createNewMap(-cm)
|
boolean
|
|
||||||||||
|
||||||||||||
-insertBeforeDeformers(-ibd)
|
boolean
|
|
||||||||||
|
||||||||||||
-keepImageRatio(-kir)
|
boolean
|
|
||||||||||
|
||||||||||||
-mapDirection(-md)
|
string
|
|
||||||||||
|
||||||||||||
-name(-n)
|
string
|
|
||||||||||
|
||||||||||||
-nodeState(-nds)
|
int
|
|
||||||||||
|
||||||||||||
-perInstance(-pi)
|
boolean
|
|
||||||||||
|
||||||||||||
-smartFit(-sf)
|
boolean
|
|
||||||||||
|
||||||||||||
-worldSpace(-ws)
|
boolean
|
|
||||||||||
|
||||||||||||
| Flags from nodes | ||||||||||||
-imageCenter(-ic)
|
float float
|
|
||||||||||
|
||||||||||||
-imageCenterX(-icx)
|
float
|
|
||||||||||
|
||||||||||||
-imageCenterY(-icy)
|
float
|
|
||||||||||
|
||||||||||||
-imageScale(-is)
|
float float
|
|
||||||||||
|
||||||||||||
-imageScaleU(-isu)
|
float
|
|
||||||||||
|
||||||||||||
-imageScaleV(-isv)
|
float
|
|
||||||||||
|
||||||||||||
-projectionCenter(-pc)
|
linear linear linear
|
|
||||||||||
|
||||||||||||
-projectionCenterX(-pcx)
|
linear
|
|
||||||||||
|
||||||||||||
-projectionCenterY(-pcy)
|
linear
|
|
||||||||||
|
||||||||||||
-projectionCenterZ(-pcz)
|
linear
|
|
||||||||||
|
||||||||||||
-projectionHorizontalSweep(-phs)
|
linear
|
|
||||||||||
|
||||||||||||
-projectionScale(-ps)
|
linear linear
|
|
||||||||||
|
||||||||||||
-projectionScaleU(-psu)
|
linear
|
|
||||||||||
|
||||||||||||
-projectionScaleV(-psv)
|
linear
|
|
||||||||||
|
||||||||||||
-radius(-r)
|
linear
|
|
||||||||||
|
||||||||||||
-rotate(-ro)
|
angle angle angle
|
|
||||||||||
|
||||||||||||
-rotateX(-rx)
|
angle
|
|
||||||||||
|
||||||||||||
-rotateY(-ry)
|
angle
|
|
||||||||||
|
||||||||||||
-rotateZ(-rz)
|
angle
|
|
||||||||||
|
||||||||||||
-rotationAngle(-ra)
|
angle
|
|
||||||||||
|
||||||||||||
-seamCorrect(-sc)
|
boolean
|
|
||||||||||
|
||||||||||||
// Create a sphere with default UVs.
polySphere -n sphere -r 10;
// 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;
// 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 all faces of the sphere.
sets -e -forceElement myLambertSG sphere.f[0:399];
// Replace default UVs on the top of the sphere :
// Rotates the map of 45 degrees and reduces its aperture to 20 degrees in both directions
polySphericalProjection -ra 45.0 -pc 0 0 0 -ps 20 20 sphere.f[180:359] sphere.f[380:399];
// Set the wireframe display mode.
if ( `getPanel -to ( eval( "getPanel -withFocus" ) )` ) {
string $currentPanel = `getPanel -withFocus`;
modelEditor -edit -da "wireframe" $currentPanel;
}