Peter Vandewalle Posted April 13, 2018 Share Posted April 13, 2018 Is there a way to get a handle to the lowest Story in a file? For layers there is vs.GetFLayer(), But I can't find a similar way to get the lowest Story... Quote Link to comment
Pat Stanford Posted April 13, 2018 Share Posted April 13, 2018 I have not used them, but look at: GetStoryLayerTemplateName This will get you the name of the first story in the template. Combined with GetObject might get you a handle to the first story in the file. If that does not do what you want then perhaps GetStory of Layer might get you something your can work with. Then there is GetStoryAbove and GetStoryBelow to move through the list. Quote Link to comment
Peter Vandewalle Posted April 13, 2018 Author Share Posted April 13, 2018 (edited) Thanks for the reply, Pat. GetStoryLayerTemplateName returns the name to the first layer in the story template. That's not a handle to the story :-( Edited April 13, 2018 by Peter Vandewalle Quote Link to comment
Peter Vandewalle Posted April 13, 2018 Author Share Posted April 13, 2018 (edited) This does the trick: import vs hLayer = vs.FLayer() hStory = vs.GetStoryOfLayer(hLayer) while (hStory == ""): hLayer = vs.NextLayer(hLayer) hStory = vs.GetStoryOfLayer(hLayer) sStory = vs.GetName(hStory) Thanks for the help! Edited April 13, 2018 by Peter Vandewalle Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.