Hey everyone,
I've looked high and low for the answer to this, but can't find it anywhere, so I hope someone here can help!
Basically what I'm doing is turning a normal layer into a precomp, and then upscaling the layer and composition so they are both 2x the size of the original layer. But, then I'd like to downscale the new precomp layer's scale so that it matches the size of the original layer. So the precomp will be 2x the size of the original layer, but it's scale will be 50% so that it seems like the size does not change. In the scripting reference, they talk about how the CompItem is a AVItem and it has a Transform property with the scale, but nothing that I do seems to take effect.
Below is a sample of the code and my issue:
var resizeAmnt = 2; //Precomp the layer var pixComp = thisComp.layers.precompose([thisLayer.index], "PixComp - " + thisLayer.name, false); //Resize the Composition Dimensions (same as going into composition settings and changing comp size) pixComp.width = pixComp.width * resizeAmnt; pixComp.height = pixComp.height * resizeAmnt; //Now I'd like to resize the comp LAYER pixComp.scale?? = ??
Thanks for any help!