' Set up a sphere with a texture and an XY projection.
CreatePrim "Sphere", "MeshSurface"
CreateProjection "sphere", , siTxtDefaultPlanarXY, , "Texture_Projection"
BlendInTextureLayers , , 1, True, siReplaceAndNoBlendInTextureLayers
SetDisplayMode "Camera", "texturedecal"
' After applying the UV property, modify the sphere.
SelectGeometryComponents "sphere.pnt[27]"
Translate , 3.66557060971011, 4.9427099682274, -0.49427099682274, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0
' In the explorer, the tooltip for TextureOp says "reading just above geometry"
MsgBox "The projection is being evaluated before the MoveComponent operator. Click OK to apply the ReprojectUVW command."
ReprojectUVW "sphere"
' In the explorer, the tooltip for TextureOp now says "reading just above MoveComponent"
MsgBox "The projection is now evaluated after the MoveComponent operator." |