/usr/share/bkchem/plugins/animate_undo.py is in bkchem 0.13.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import os.path
crop_svg = App.paper.get_paper_property( 'crop_svg')
App.paper.set_paper_properties( crop_svg=0)
name = App.paper.file_name['name']
name, ext = os.path.splitext( name)
n = App.paper.um.get_number_of_records()
for i in range( n):
App.paper.undo()
for i in range( n):
App.save_CDML( name="%s-%02d%s" % (name, i, ext))
App.paper.redo()
App.paper.set_paper_properties( crop_svg=crop_svg)
|