Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.24 KB

File metadata and controls

54 lines (43 loc) · 1.24 KB

SetDefaultTexMap

Description

Set the object to have default texture mapping info. Texture resource being used is set with SetTextureRef. Similar to SetDefaultTextureSpace except that routine has been superseded in version 2009.

PROCEDURE SetDefaultTexMap(h : HANDLE);
def vs.SetDefaultTexMap(h):
    return None

Parameters

Name Type Description
h HANDLE

Examples

BEGIN
    SetDefaultTexMap (slab_h);
	if openDoor then
		SetTexMapReal (slab_h,3,4, angOpened )
	else
		SetTexMapReal (slab_h,3,4, angClosed);

Begin
	SetDefaultTexMap (H);
	SetAttrsByClass(H);
	TextSpaceHand := GetTextureSpace(H,0);
	IF TextSpaceHand <> NIL THEN
	BEGIN

TexObjHan := GetObject (MyTexName);
SelImageIndx := Name2Index(MyTexName);
ImageTextureSpaceHnd := GetTextureSpace(DummyWholeHandle,kTexturePartID);
IF ImageTextureSpaceHnd = NIL THEN SetDefaultTexMap (DummyWholeHandle);
import vs

# Set the object to have default texture mapping info.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

vs.SetDefaultTexMap(h)

Version

Availability: from Vectorworks14.0

Category