Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 1.37 KB

File metadata and controls

63 lines (51 loc) · 1.37 KB

GetTexMapIntN

Description

Get map info for specific part of object. partID is texture part, overall is 3. Selector should be 1, to return the texture map type integer.

FUNCTION GetTexMapIntN(
				obj        : HANDLE;
				texPartID  : LONGINT;
				texLayerID : LONGINT;
				selector   : INTEGER): INTEGER;
def vs.GetTexMapIntN(obj, texPartID, texLayerID, selector):
    return INTEGER

Parameters

Name Type Description
obj HANDLE
texPartID LONGINT
texLayerID LONGINT 0 for base, >0 for decals
selector INTEGER

Remarks

(_c_, 2017 Dec. 29) Texture Mapping Types:

  • Plane 0
  • Sphere 1
  • Cylinder 2
  • Perimeter 3

If it's set on Auto-align GetTexMapIntN returns the appropriate flag depending on the object

Examples

{ _c_: returns the mapping type (plane, sphere, cylinder, perimeter) of the overall texture }
GetTexMapIntN(obj, 3, 0, 1);
resultN := GetTexMapIntN(obj, 1, 2, 3);
import vs

# Get map info for specific part of object.
obj = vs.FSActLayer()  # handle to the first selected object on the active layer
texPartID = 1
texLayerID = 2
selector = 3

resultN = vs.GetTexMapIntN(obj, texPartID, texLayerID, selector)
vs.Message('GetTexMapIntN returned: ' + str(resultN))

Version

Availability: from Vectorworks 2010

Category