This script is useful when you want to update, for exampe, a text area that serves as a masthead across all tabs. The first time the visualization will be placed randomly, but once you adjust the size and position on every page, that's all you need to do
#vis is a script parameter indicating the visual to copy (or replace) across all pages for p in Document.Pages: if not p.Visuals.Contains(vis): v2 = p.Visuals.AddDuplicate(vis) v2.Title = vis.Title+"!" for v in p.Visuals: if v.Title == vis.Title: p.Visuals.Remove(v) v2.Title = vis.Title
No comments:
Post a Comment