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| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
| index | INTEGER | Object property index. |
| p | REAL | The object variable data point. |
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')VS Functions: GetObjectVariablePoint | GetObjectVariableBoolean | SetObjectVariableBoolean | GetObjectVariableHandle | SetObjectVariableHandle | GetObjectVariableInt | SetObjectVariableInt | GetObjectVariableLongInt | SetObjectVariableLongInt | GetObjectVariableReal | SetObjectVariableReal | GetObjectVariableString | SetObjectVariableString
Availability: from Vectorworks 2011