Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1005 Bytes

File metadata and controls

45 lines (36 loc) · 1005 Bytes

RemoveSubMtrlFromMtl

Description

Removes a Simple material from a Compound material.

FUNCTION RemoveSubMtrlFromMtl(
				hMaterial   : HANDLE;
				subMtrlName : STRING): Boolean;
def vs.RemoveSubMtrlFromMtl(hMaterial, subMtrlName):
    return Boolean

Parameters

Name Type Description
hMaterial HANDLE Handle of a Compound material
subMtrlName STRING Name of a Simple material to be deleted

Examples

resultOK := RemoveSubMtrlFromMtl(hMaterial, 'Example');
import vs

# Removes a Simple material from a Compound material.
hMaterial = vs.FSActLayer()  # handle to the first selected object on the active layer
subMtrlName = 'Example'

ok = vs.RemoveSubMtrlFromMtl(hMaterial, subMtrlName)
if ok:
    vs.Message('RemoveSubMtrlFromMtl succeeded')
else:
    vs.Message('RemoveSubMtrlFromMtl failed')

Version

Availability: from Vectorworks 2021

Category