CopyUVW

Categories

texture

Description

Copies the UVs of the selected sampled points onto the clipboard.

Scripting Syntax

CopyUVW( TextureProjection, [SubComp] );

Parameters

Parameter Type Description
TextureProjection String The texture projection to copy.
SubComp String Cluster of sampled points or tagged sampled points to copy

Default Value: All sampled points

Examples

VBScript Example

' This example demonstrates how to copy the UVs from,
' one object to an other.
NewScene , false
' create a sphere and generate a texture projection for it
' using the GenerateUniqueUVs command.
CreatePrim "Sphere", "MeshSurface", "Sphere1"
GenerateUniqueUVs "Sphere1", "Texture_Projection"
MakeLocal "Sphere1.Scene_Material", siDefaultPropagation
BlendInTextureLayersInsp , , 2, True, siReplaceAndNoBlendInTextureLayers
Translate , 9.0, 0.0, 0.0, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0
' create a second sphere and generate a default cubic projection
' for it
CreatePrim "Sphere", "MeshSurface", "Sphere2"
CreateProjection "Sphere2", siTxtUV, siTxtDefaultCubic, "Texture_Support", "Texture_Projection", True, siRelDefault
MakeLocal "Sphere2.Scene_Material", siDefaultPropagation
BlendInTextureLayersInsp , , 2, True, siReplaceAndNoBlendInTextureLayers
' now, copy the UVs from the Sphere1 to the Sphere2
CopyUVW "Sphere1.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection"
PasteUVW "Sphere2.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection"