Skip to main content
Known Participant
May 6, 2024
Question

Is there a way to select multiple shapes and turn them into Bezier paths at once?

  • May 6, 2024
  • 2 replies
  • 409 views

I am using after effect ver24.3.
I often convert multiple rectangular shapes to Bezier paths to create cartoon-like emphasized lines.
However, it is not possible to select multiple path items of multiple shapes, right-click, and convert them to Bezier paths all at once.
Is there a way to select multiple shapes and turn them into Bezier paths at once?

This topic has been closed for replies.

2 replies

Legend
May 6, 2024

You can try this script:

- select your shape paths and run the script

convertToBezierPath.jsx

function convertToBezierPath(i) {
// DeselectAll
	app.executeCommand(2004);
    selectedProperties[i].selected = true;
// ConvertToBezierPath 
    app.executeCommand(4162);
    i++;
    if (i < selectedProperties.length) {
        $.sleep(500);
        convertToBezierPath(i);
    }
}
var proj = app.project;
var thisComp = proj.activeItem;
var selectedProperties = thisComp.selectedProperties;
var i = 0;

convertToBezierPath(i);

 

 

if the $.sleep() value is too low, you may have problems, in my case, if I set the value to 100, it returns this:

 

Community Expert
May 6, 2024

If you create the shape by clicking and dragging, look at the toolbar and choose the Bezier Path option. Then, no conversion is required. If you need precise dimensions, the only option would be to convert the Paths to Bezier Shapes one at a time or try writing or looking for a script.

 

Another option would be to create you simple shapes (no gradients or brushes) in Illustrator, import the AI file as a composition, then convert the vector layers to shape layers.