Returns the suffix of the indicated Story.
FUNCTION GetStorySuffix(story : HANDLE): STRING;def vs.GetStorySuffix(story):
return STRING| Name | Type | Description |
|---|---|---|
| story | HANDLE | The Story whose suffix is desired. |
{ Find the story we are currently working on }
hStory := GetStoryBelow( NIL );
storySuffix := GetStorySuffix( hStory );
WHILE (( storySuffix <> TmpLayerSuffix ) AND ( hStory <> NIL ) ) DO BEGIN
hStory := GetStoryAbove( hStory );
if ( hStory <> NIL ) THEN BEGIN
storySuffix := GetStorySuffix( hStory );
3: BEGIN
story := GetStoryBelow(NIL);
WHILE story <> NIL DO BEGIN
AddChoice(dialogID, 10, GetStorySuffix(story), 0);
story := GetStoryAbove(story);
END;import vs
# Returns the suffix of the indicated Story.
story = vs.FSActLayer() # handle to the first selected object on the active layer
text = vs.GetStorySuffix(story)
vs.Message('GetStorySuffix returned: ' + str(text))VS Functions: GetStoryElevation | SetStorySuffix
Availability: from Vectorworks 2012