Clear paragraph style override
hello all
i trying clear override of paragraph style reapplying para style on same paragraph
but not clearing override
my code:
oobj.appliedparagraphstyle = oobj.appliedparagraphstyle
where going wrong?
please suggest
thank you
hi
you may choose either clear overrides text object:
void clearoverrides ([overridestoclear: overridetype=overridetype.all])
clears specified types of override.
parameter | type | description |
---|---|---|
overridestoclear | overridetype: overridetype.all overridetype.character_only overridetype.paragraph_only | the types of override clear. (optional) (default: overridetype.all) |
or
use:
void applyparagraphstyle (using: paragraphstyle[, clearingoverrides: bool=true])
apply paragraph style.
parameter | type | description |
---|---|---|
using | paragraphstyle | the paragraph style apply. |
clearingoverrides | bool | if true, clear text attributes before applying style. (optional) (default: true) |
fwiw
loic
More discussions in InDesign Scripting
adobe
Comments
Post a Comment