Function EditTextureSpace edits the mapping of a specified texture space for the referenced object. Calling this function opens the Edit Mapping dialog for textures.
FUNCTION EditTextureSpace(
obj : HANDLE;
partID : INTEGER): BOOLEAN;def vs.EditTextureSpace(obj, partID):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| obj | HANDLE | Handle to object. |
| partID | INTEGER | Part ID (pass 1 for non-supporting objects). |
Brings up the Edit Mapping dialog for the space attached to the object. Returns true if the texture space was changed by the dialog.
resultOK := EditTextureSpace(obj, 1);import vs
# Function EditTextureSpace edits the mapping of a specified texture space
# for the referenced object.
obj = vs.FSActLayer() # handle to the first selected object on the active layer
partID = 1
ok = vs.EditTextureSpace(obj, partID)
if ok:
vs.Message('EditTextureSpace succeeded')
else:
vs.Message('EditTextureSpace failed')Availability: from VectorWorks8.0