• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Custom Shapes Proportion

Explorer ,
Jan 14, 2019 Jan 14, 2019

Copy link to clipboard

Copied

Hi,

there is an option with the dialog "Create Custom Shape" to place the shape in the center and keep the proportions.

dialog.jpg

Does anyone know If there is a script already or is it possible to get proportions or measurements from "custom shape"?

I get the Names with this function:

function getCustomShapeNames (){

        var ref = new ActionReference();

        ref.putProperty(sTID("property"), sTID("presetManager"));

        ref.putEnumerated(cTID("capp"), cTID("Ordn"), cTID("Trgt"));

        var appDesc = executeActionGet(ref);

        var List = appDesc.getList(sTID("presetManager"));

        var customShapeNames = [];

        var list = List.getObjectValue(6).getList(cTID("Nm  "));

        for (var i = 0; i < list.count; i++) {

            var name = list.getString(i);

            customShapeNames.push(name);

        }

        return customShapeNames;

  }

Thanks in advance for the help

Jo

TOPICS
Actions and scripting

Views

265

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
no replies

Have something to add?

Join the conversation
Adobe