Copy link to clipboard
Copied
I'd like to run the equivalent of "Make Comp Size", an option you find on Solid layers under Layer>Solid Settings, either using executecommand ids (unfortunately, I can't find one for this) or Extendscript. Unfortunately, AVLayer.width and height are read only, and I can only access the layer's scale. Is there any way to do this?
Nevermind. I just realized what Make Comp Size really does and the answer's very simple. It just changes the layer's SOURCE'S width and height. Ignore me
Copy link to clipboard
Copied
Copy link to clipboard
Copied
yeah, I've seen that. I didn't see a command for Make Comp Size. The closest I'm finding is Fit to Comp, which does nothing to position info. so the layer's position, anchor point, and any effects with position / center point info on it are left out of position. It also just scales the layer to fit the comp. So if the layer is larger than the comp with its scale is 100%, and I run Fit to Comp, the scale will be set to less than 100%. Meanwhile, if I perform Make Comp Size on the same layer, anchor point / effects positions are all updated to maintain the proper position, and while the layer is smaller, the scale is still 100%. Is that making sense?
Copy link to clipboard
Copied
Nevermind. I just realized what Make Comp Size really does and the answer's very simple. It just changes the layer's SOURCE'S width and height. Ignore me