I am building a 2.5d "interior set" for an AE camera to fly thru. I've made it out of placeholder solids which have been scaled, mostly non-proportionally, to fit the dimensions of the space.
I'd like to replace the placeholder solids (walls, ceiling, etc) with Photoshop texture files of appropriate pixel dimensions, and I need to figure out what those dimensions are so that I can avoid squashing or stretching the textures -- ie, bring them in at 100% proportional scale.
Is there a way I can retrieve the "effective" X & Y dimensions of each solid, based on its original dimensions & applied scale, without calculating them all by hand?
2 posts • Page 1 of 1
courtesy of Dan Ebberts:
put that in the Source Text of a text layer, then put the source layer directly above the layer you want to measure.
Code: Select all
L = thisComp.layer(index + 1); r = L.sourceRectAtTime(time,false); sX = L.scale / 100; sY = L.scale / 100; text.sourceText = [ r.width * sX , r.height * sY ]