Skip to content

Latest commit

 

History

History
70 lines (60 loc) · 2.03 KB

File metadata and controls

70 lines (60 loc) · 2.03 KB

SetObjectVariablePoint

Description

Sets the value of a Vectorworks object property. Used with properties requiring a 2D or 3D point value.

For specific object selector index values, see the Appendix.

FUNCTION SetObjectVariablePoint(
				h     : HANDLE;
				index : INTEGER;
				p     : REAL): BOOLEAN;
def vs.SetObjectVariablePoint(h, index, p):
    return BOOLEAN

Parameters

Name Type Description
h HANDLE Handle to object.
index INTEGER Object property index.
p REAL The object variable data point.

Examples

		HCenter( GetVPCropObject( pioParentVPHand ), VPCropCenterPt.x, VPCropCenterPt.y );
	END;
END;
{ shifts the render background to the pioCMObjSavedLocPt (also the camera taget point) }
boo := SetObjectVariablePoint( pioParentVPHand, 1300, pioCMObjSavedLocPt.x, pioCMObjSavedLocPt.y, 0 );
import vs

# Sets the value of a Vectorworks object property.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
index = 1
p = 1.0

ok = vs.SetObjectVariablePoint(h, index, p)
if ok:
    vs.Message('SetObjectVariablePoint succeeded')
else:
    vs.Message('SetObjectVariablePoint failed')

See Also

VS Functions: GetObjectVariablePoint | GetObjectVariableBoolean | SetObjectVariableBoolean | GetObjectVariableHandle | SetObjectVariableHandle | GetObjectVariableInt | SetObjectVariableInt | GetObjectVariableLongInt | SetObjectVariableLongInt | GetObjectVariableReal | SetObjectVariableReal | GetObjectVariableString | SetObjectVariableString

Version

Availability: from Vectorworks 2011

Category