Creating batches of slides quickly becomes tedious.
Here is a tested @button script that creates all missing slides in a
given range::
QQQQQ
'''Create @slide nodes under p, an @slideshow node.'''
n = 23 # Number of last slide to be created.
existing = [z.copy().h for z in p.children()
if g.match_word(z.h,0,'@slide')]
if g.match_word(p.h,0,'@slideshow'):
for n in range(1,n+1):
h = '@slide %03d' % n
if h not in existing:
child = p.insertAsLastChild()
child.h = h
g.note('created %s' % h)
c.redraw()
else:
g.error('not an @slideshow node',p.h)
QQQQQ
A similar script will copy an @screenshot tree from one place to a
list of @slide node. Ditto for @select nodes.
Such scripts will be simplify using the screenshot plugin without
complicating the plugin itself.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.