From Vectorworks Developer
Revision as of 09:35, 18 September 2014 by

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Note: you must use a variable, initialized to the segment index, to pass as a parameter. After the data has been set, this variable will contain the index of the segment, which may have changed because of the spot position specified.
PROCEDURE SetGradientSlider(
dialogID  :LONGINT;
componentID  :LONGINT;
VAR segmentIndex  :INTEGER;
spotPosition  :REAL;
midpointPosition  :REAL;
red  :LONGINT;
green  :LONGINT;
blue  :LONGINT;
opacity  :INTEGER);
def vs.SetGradientSlider(dialogID, componentID, segmentIndex, spotPosition, midpointPosition, red, green, blue, opacity):
    return segmentIndex


dialogID LONGINT Index to the dialog layout that contains the gradient slider component.
componentID LONGINT Index to a specific gradient slider component.
segmentIndex INTEGER Segment for which to set the data.
spotPosition REAL Position of the segment's color marker relative to left-most point of the slider.
midpointPosition REAL Position of the segment's midpoint marker relative to color marker immediately to left.
red LONGINT Red component of the color spot's color.
green LONGINT Green component of the color spot's color.
blue LONGINT Blue component of the color spot's color.
opacity INTEGER Opacity for the color at the spot position.


segmentIndex := 4;
SetGradientSlider(dialogID, componentID, segmentIndex, 0.9, 0.5, 255, 255, 255,100);


Availability: from Vectorworks 2015

See Also

VS Functions:

VS:GetGradientSlider | VS:InsertGradientSliSeg

VS Functions:


| [[VS:InsertGradientSliSeg]]
Personal tools

Advanced Search
See Also