Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 876 Bytes

File metadata and controls

48 lines (38 loc) · 876 Bytes

SetTextureSize

Description

Sets the texture size in real-world inches.

PROCEDURE SetTextureSize(
				texture : HANDLE;
				newSize : REAL);
def vs.SetTextureSize(texture, newSize):
    return None

Parameters

Name Type Description
texture HANDLE
newSize REAL

Examples

BEGIN
SetName(TextureHand,TextureName);
SetTextureSize(TextureHand, 2");
SetTextureAttributes := TRUE;
END;

If ValidNumStr(Concat(2/GetPrefReal(152),'"'),Size) THEN BEGIN END;
SetTextureSize (BrdrBlckTxtrHnd,Size);
import vs

# Sets the texture size in real-world inches.
texture = vs.FSActLayer()  # handle to the first selected object on the active layer
newSize = 1.0

vs.SetTextureSize(texture, newSize)

Version

Availability: from VectorWorks10.1

Category