Skip to content

Latest commit

 

History

History
67 lines (55 loc) · 1.88 KB

File metadata and controls

67 lines (55 loc) · 1.88 KB

SetObjectVariableBoolean

Description

Sets the ON-OFF status of a VectorWorks object property.

For specific object selector index values, see the Script Appendix.

PROCEDURE SetObjectVariableBoolean(
				h      : HANDLE;
				index  : INTEGER;
				status : BOOLEAN);
def vs.SetObjectVariableBoolean(h, index, status):
    return None

Parameters

Name Type Description
h HANDLE Handle to object.
index INTEGER Object property index.
status BOOLEAN New status for property.

Examples

VectorScript

SetObjectVariableBoolean(obj, 17, FALSE);

Python

SetObjectVariableBoolean(parmHand, 800, TRUE);
PushAttrs;

ELSE BEGIN
	shaftH := WholeRRect(-gShaftWidth/2, gShaftDepth/2, gShaftWidth/2, -gShaftDepth/2, gShaftRadius);
	parmClassName := GetClass(gPluginH);
	Locus(0, 0);
 			SetObjectVariableBoolean(LNewObj, kOvMasterSnapPoint, TRUE);
 			SetObjectVariableBoolean(LNewObj, kOvShowMasterSnapOutsideSnapbox, FALSE);
 			SetClass(LNewObj, parmClassName);
	Locus(gShaftWidth/2, gShaftWidth/2);
 			SetObjectVariableBoolean(LNewObj, kOvMasterSnapPoint, TRUE);

	NewField(kHidRecName, kDatabaseUUID, '', 4, 0);
	NewField(kHidRecName, kNoteDescrip,  '', 4, 0);
	NewField(kHidRecName, kNoteUUID,     '', 4, 0);
	NewField(kHidRecName, kText,         '', 4, 0);
	SetObjectVariableBoolean(GetObject(kHidRecName), 900, kRNDebugMode);
END;
vs.SetObjectVariableBoolean( gObjHandle, 800, True )

See also in tutorials: 03. Build a Curved Path with Mixed Vertex Types, Plug-in with widgets, basic example (Python)

Version

Availability: from VectorWorks 9.0

Category