Preventing ParaStyle "Based On" from Updating
Hi. I'm trying to stop InDesign from updating styles that are based on other styles while a Javascript is running, but I have no idea how (or even if it can be done).
I need to increase the point size of a couple hundred paragraph styles in one document and have written a Javascript that successfully does so. However, the problem I'm running into is that when Style A is updated, it's point size is changed to the same point size of Style B, the paragraph style on which Style A is based. When the Javascript goes on to update Style B, that change populates down to Style A because they no longer differ. Here's a specific case to clarify.
Style TX is 10 point.
Style BI is based on style TX but is point 9 point instead of 10.
Javascript changes BI to 10 point, thus effacing the 9-point/10-point discrepancy.
Javascript changes TX to 11 point.
Because BI is based on TX and because their point sizes no longer differ, InDesign changes BI to 11 also.
I need to prevent that last step. Does anyone know if it's possible to prevent InDesign from populating changes in a style to other styles that are based upon it?
Thanks for any help.
