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

How to change distanceUnit to something besides points?

Participant ,
May 08, 2023 May 08, 2023

Copy link to clipboard

Copied

Sorry if this has been asked before. I don't find my answer in (BatchPlay) format.

I want to pass a variable in PIXELS, for instance,  instead of 1417 POINTS in this batchPlay script.

How do I specify the distanceUnit? (pixels, inches, centimeters, etc)

 

            {
              "_obj": "canvasSize",
              "width": {
                 "_unit": "distanceUnit",  //How to specify pixels or centimeters or inches??
                 "_value": 1417 //<<< POINTS
              },
              "height": {
                 "_unit": "distanceUnit",
                 "_value": 5817   //<<< POINTS
              },
              "horizontal": {
                 "_enum": "horizontalLocation",
                 "_value": "center"
              },
              "vertical": {
                 "_enum": "verticalLocation",
                 "_value": "center"
              },
              "_isCommand": true
           },         

 TIA

 

 

 

TOPICS
Actions and scripting , macOS

Views

169

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