Knowledge Base

Find your solution by searching our articles or browsing by category below.

New TVGs' default alignment is Centre First Page instead of Centre Fit

Issue
The default alignment for newly created TVGs is set to Centre First Page instead of Centre Fit

Solution
Select the drawing elements then run the following script to set their alignment to Centre Fit:

  • function ChangeReadCentreFit() {
    • scene.beginUndoRedoAccum(" ChangeReadCentreFit ");
    • var numNodes = selection.numberOfNodesSelected();
    • for (var i=0; i<= numNodes; i++) {
      • var selNode = selection.selectedNode(i);
      • node.setTextAttr(selNode, " ALIGNMENT_RULE ", 0, " CENTER_FIT ");
    • }
    • scene.endUndoRedoAccum();
  • }
  • Operating system:

    • Windows (all)

    • Mac OS X (all)

  • Software:

    • Animate (all)