• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

Creating Object Styles using Script

New Here ,
Sep 04, 2018 Sep 04, 2018

Copy link to clipboard

Copied

Hi,

I tried to create Object Styles with Size and position properties in InDesign CC 2018.But I couldn't find references for Size and Position properties(Object Style propeties) in  InDesign ExtendScript API(13.0).Is it possible to create Object Styles with Size and position properties using Script ?Please do guide me on this..

Thanks and Regards,

Revathi V

TOPICS
Scripting

Views

956

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 08, 2018 Sep 08, 2018

Copy link to clipboard

Copied

That's bizarre, I can't find them either. I can find the following properties from here: https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ObjectStyle.html

enableTransformAttributes (will activate/deactivate this portion of the object style)

setDimensionAttributeState (activates the width, height or both)

setPositionAttributeState (activates the X, Y or both coordinates)

but I can't find where you would get the width, height, x or y offsets or their distance from page edge/margin. I suspect the documentation is simply missing.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2018 Sep 09, 2018

Copy link to clipboard

Copied

LATEST

Size and position are set using the transformAttributeOptions property:

myObjectStyle.transformAttributeOptions.transformAttrHeight = 24

etc.

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines