Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.12 KB

File metadata and controls

45 lines (35 loc) · 1.12 KB

DeleteTextureSpace

Description

Function DeleteTextureSpace deletes the texture space attached to the referenced object or object part.

PROCEDURE DeleteTextureSpace(
				obj    : HANDLE;
				partID : INTEGER);
def vs.DeleteTextureSpace(obj, partID):
    return None

Parameters

Name Type Description
obj HANDLE Handle to object.
partID INTEGER Part ID (pass 1 for non-supporting objects).

Remarks

Removes the texture space from this object. To render textures correctly, an object must have both a non-zero texture ref and a texture space attached. The reverse of this means that the texture ref for the object should be set to zero when this function is called.

Examples

DeleteTextureSpace(obj, 1);
import vs

# Function DeleteTextureSpace deletes the texture space attached to the
# referenced object or object part.
obj = vs.FSActLayer()  # handle to the first selected object on the active layer
partID = 1

vs.DeleteTextureSpace(obj, partID)

Version

Availability: from VectorWorks8.0

Category