Description
Scales texture projection elements
Scripting Syntax
ScaleUVW( InputObjs, TextureProjection, [X], [Y], [Z], [Delta], [AxesFilter], [Pivot], [PivotU], [PivotV], [PivotW] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects or components to translate. Default Value: Selected elements |
|
|
TextureProjection |
Texture projection to modify. |
|
|
X |
U scaling Default Value: 1.0 |
|
|
Y |
V scaling Default Value: 1.0 |
|
|
Z |
W scaling Default Value: 1.0 |
|
|
Delta |
Whether to scale the object a relative to its current size or the geometry Default Value: siRelative Possible Values: • siRelative: Scale is relative to exiting scale • siAbsolute: Scale replaces existing scale |
|
|
AxesFilter |
Determines which of the u,v,w arguments are valid Default Value: siUVW Possible Values: • siU: Filter in U • siV: Filter in V • siUV: Filter in U & V • siW: Filter in W • siUW: Filter in U & W • siVW: Filter in V & W • siUVW: Filter in U & V & W |
|
|
Pivot |
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 |
The U coordinate of the pivot relative to which the scaling will be made. Default Value: 0.0 |
|
|
PivotV |
The V coordinate of the pivot relative to which the scaling will be made. Default Value: 0.0 |
|
|
PivotW |
The W coordinate of the pivot relative to which the scaling will be made. Default Value: 0.0 |
Examples
VBScript Example
' 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
See Also
SOFTIMAGE|XSI v6.01