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

How to "Convert To bezier Path" vía scripting

New Here ,
Oct 01, 2018 Oct 01, 2018

Hi everyone!

I´m looking for the way to convert a parametric shape (like Rect or Ellipse) into a bezier path.

I have tried it via

app.executeCommand('Convert To Bezier Path');

but since "Convert To Bezier Path" has not comand ID (if I ask with app.indMenuCommandId('Convert To Bezier Path'), returns 0), It doesn´t work.

Also it could be helpful to know the Bezier path of the parametric shape, even this is not converted to bezier path, but I don´t know how to do this either.

I have been looking for a long time, but I have no a clue!!

Could anybody help me?

TOPICS
Scripting
1.4K
Translate
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
New Here ,
Oct 06, 2018 Oct 06, 2018

Nobody?

Not even a clue?

Translate
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
Contributor ,
Oct 19, 2018 Oct 19, 2018

I'm not sure whether you can convert it directly, however! You can iterate through shape layer properties until you see an Ellipse or Rect, and then using the size/position/roundness/etc properties rebuild a new path matching those parameters. Much more work, but you can probably get there in the end.

Alternatively, there's an existing solution for this here: Convert Shapes

Translate
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
New Here ,
Nov 18, 2018 Nov 18, 2018
LATEST

Not sure if you prefer scripting, but found this:

You can convert a parametric path to a Bezier path after the parametric path has already been created by context-clicking (right-clicking or Control-clicking on Mac OS) the property group for the parametric path (e.g., Rectangle Path 1) and choosing the Convert To Bezier Path command from the context menu.

You have to click on the path (eg, Path 1, Path 2 etc).

Translate
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