Show Menu
TOPICS×

s7vampy.open_vignette(filename, writable=False)

Opens an existing vignette and allows a script to inspect or update vignettes.
Parameters:
  • filename(str)
    Name of the vignette file that is loaded into memory.
  • writable(bool)
    True, if the vignette is saved back to disk.
Returns:
Vignette instance
**Open an existing vignette, and show the objects: **
>>> from s7vampy import *
>>> v = open_vignette("my-vignette.vnt")
>>> for o in v.objects:
... print o.path
group1
group1/object1
group2
group2/object1