Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Nobody?
Not even a clue?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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).
Find more inspiration, events, and resources on the new Adobe Community
Explore Now