Scripting: layers.addSolid keeps the requested pixel aspect (#543)
LayerCollection.addSolid dropped its fifth argument, so layer.newSolid fell back to the composition's pixel aspect. The wrapper now passes pixelAspect through; layer.newSolid already validates it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1228,6 +1228,7 @@ LayerCollection.prototype = {
|
||||
if (name !== undefined) p.name = String(name);
|
||||
if (width !== undefined) p.width = Math.round(__num(width, "width"));
|
||||
if (height !== undefined) p.height = Math.round(__num(height, "height"));
|
||||
if (pixelAspect !== undefined) p.pixelAspect = __num(pixelAspect, "pixelAspect");
|
||||
return this.__dur(this.__new(__call("layer.newSolid", p)), duration);
|
||||
},
|
||||
addNull: function (duration) { return this.__dur(this.__new(__call("layer.newNull", { comp: this.__comp })), duration); },
|
||||
|
||||
Reference in New Issue
Block a user