manipulation
Scales texture projection elements
ScaleUVW( InputObjs, TextureProjection, [X], [Y], [Z], [Delta], [AxesFilter], [Pivot], [PivotU], [PivotV], [PivotW] ); |
Parameter | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputObjs | String | List of objects or
components to translate.
Default Value: Selected elements |
||||||||||||||||
TextureProjection | String | Texture projection to modify. | ||||||||||||||||
X | Double | U scaling
Default Value: 1.0 |
||||||||||||||||
Y | Double | V scaling
Default Value: 1.0 |
||||||||||||||||
Z | Double | W scaling
Default Value: 1.0 |
||||||||||||||||
Delta | siDeltaMode | Whether to scale the object a relative to its current size or
the geometry
Default Value: siRelative
|
||||||||||||||||
AxesFilter | siUVWAxesFilter | Determines which of the u,v,w arguments are valid
Default Value: siUVW
|
||||||||||||||||
Pivot | Boolean | If true the specified pivot point is used for the scaling,
otherwise the center of geometry of the sample points is used.
Default Value: False |
||||||||||||||||
PivotU | Double | The U coordinate of the pivot relative to which the scaling
will be made.
Default Value: 0.0 |
||||||||||||||||
PivotV | Double | The V coordinate of the pivot relative to which the scaling
will be made.
Default Value: 0.0 |
||||||||||||||||
PivotW | Double | The W coordinate of the pivot relative to which the scaling
will be made.
Default Value: 0.0 |
' This example creates grid and applies a texture on it. It then modifies a subset of its uvw coordinates ' by scaling them by a factor of one half in u and v. NewScene CreatePrim "Grid", "MeshSurface" SetDisplayMode "Views.ViewA.TopCamera", "textured" CreateProjection "grid", siTxtPlanarXZ, siTxtDefaultPlanarXZ, , "Texture_Projection" SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Scene_Material.Phong.diffuse" ScaleUVW "grid.sample[108-115,140-147]", "grid.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", 0.5, 0.5, 0, siRelative , siUVW |