## CycleUVW

### Description

Cycles the UVWs around polygons.

### Scripting Syntax

    oReturn = CycleUVW( TextureProjection, SubComp, [Offset] );

### Return Value

Returns the modified object.

### Parameters

Parameter | Type | Description
--- | --- | ---
TextureProjection | String | The texture projection which polygons we want to cycle.
SubComp | String | Cluster of polygons or tagged polygons to cycle
Offset | Long | Number of steps and direction to cycle the polygon UVWs Default Value: 1

### Examples

#### VBScript Example

    ' This example demonstrates how to Cycle UVs for an object.
    NewScene , false
    SetDisplayMode "Camera", "textured"
    ' create the object, create a default planar XY projection for it and apply an image on it.
    CreatePrim "Cube", "MeshSurface"
    ' generate unique UVs for the sphere
    GenerateUniqueUVs "cube", "Texture_Projection"
    SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Material.Phong.diffuse"
    msgbox "Click OK to run counter clock wise CycleUVW  "
    ' cycle the UVs of the object
    CycleUVW "cube.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", "cube.poly[LAST]", -1
    msgbox "Click OK to run clock wise CycleUVW  "
    CycleUVW "cube.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", "cube.poly[LAST]", 1