Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 862 Bytes

File metadata and controls

41 lines (32 loc) · 862 Bytes

EditShaderRecord

Description

Brings up the edit shader dialog for this shader. Returns true if the user pressed the OK button to dismiss the dialog.

FUNCTION EditShaderRecord(shaderRecord : HANDLE): BOOLEAN;
def vs.EditShaderRecord(shaderRecord):
    return BOOLEAN

Parameters

Name Type Description
shaderRecord HANDLE The shader record to edit.

Examples

resultOK := EditShaderRecord(shaderRecord);
import vs

# Brings up the edit shader dialog for this shader.
shaderRecord = vs.GetObject('MyRecord')  # handle to a record format

ok = vs.EditShaderRecord(shaderRecord)
if ok:
    vs.Message('EditShaderRecord succeeded')
else:
    vs.Message('EditShaderRecord failed')

Version

Availability: from VectorWorks10.1

Category