1 Reply Latest reply on Jul 24, 2008 3:47 AM by (Dave_Saunders)

    How to use Reset To Base?

    subhaoviya
      hi,

      I need to use ResetToBase in ParagraphStyle Options in indesign CS2 Script.

      Regards
      Subha
        • 1. Re: How to use Reset To Base?
          Level 1
          Reset to Base means taking all the properties of the basedOn style and applying them to the style. This:

          myStyle.properties = myStyle.basedOn.properties;

          will get you a long way, but there are some properties that will require special attention (nested styles comes to mind).

          Thinks: you need to avoid having the basedOn property itself change, so do this:

          myProps = myStyle.basedOn.properties;
          delete myProps.basedOn;
          myStyle.properties = myProps;

          Dave