I need to know how to translate the size of a text layer to get the coordinate of his corners. My need is to be able , in an automatic way, to give a solid the size of a text. For exemple if i write a longer text, the solid increases his size.
I tried this expression but AE (10.0.1) notified me that the Source's function is not defined.
var r = thisComp.layer("Layer").sourceRectAtTime(0, false);
alert(r.top + " " + r.left + " " + r.width + " " + r.height);
Yes, it's only available in scripts, not expressions. There is no way for expressions to simply grab the rasterized pixels of a text or shape layers and use them as dimensions. Check AEnhancers, there's some old code floating around that involves sampleImage() to test for extents of such layers.
Thank you for the response.
I was actually thincking of this sort of solution, reading back the always excellent site od Dan Ebbert's, about Collision detection, based on the sampleImage().
I'll write here the solution i'll found.
Europe, Middle East and Africa