So as you can see each layer is evaluating the function separately to achieve different results-but they’re all using the same function. Similarly the random number is different on each one because the seed is foo.index, which evaluates differently on each layer. Any function that uses properties of a layer needs to be explicitly told what layer it’s referring to. This is necessary because if we just used index as demonstrated by the next line, it returns the index of the layer where the function is defined. In the text layer the variable foo is assigned the value thisLayer which is a reference to the text layer itself. The parameter foo is expecting a reference to a layer (I should have named it better, I know) and returns a string with: the index of the layer referred to by foo (specified by foo.index), the index of the layer where the function is defined (just index), and a random number. ", random: " + Math.round( Math.random(index* 100)) So on the solid layer we have this expression: Here’s an example: the source text of the text layer is controlled by a variable on the solid layer. And since it’s Javascript we can just hot-glue properties and methods on to it whenever we like. So what is $ actually good for? Think Globallyīecause $ is a global object, it’s available to all expressions. In the scripting world, for example $._ADBE_LIBS_CORE.getCurrentUser gives you all sorts of data about the current user’s Creative Cloud account. I’ve been researching the $ object and its members, but apart from accidentally discovering that there’s a blink() function for strings (hilariously it works, but not in the way that anyone who ever had a geocites account thinks), I haven’t found too much to get excited about. But it also appears to be available for use in expressions. $ is a mysterious “Helper Object” that is available to extendscript and used to do things like find the current version of the application, or what the user’s name is. And it turns out that $ can bring you happiness… We are all here to help and learn together.Īnd, if you really want to get into music visualization.One of the undocumented expression language feature in After Effects is the global object, also known as $. Don't be shocked if you post your masterpiece and people have a few useful suggestions for you. As such, we encourage an atmosphere of helpful critique. This community is meant to be a place of helpfulness. If you are here for a critique of your work Screenshots and/or videos of the thing you want to create It includes things such as:Įxact version of AE you use - not just "CS6" or "CC" or even "CC 2019", but the actual version number (for example, 11.0.4 or 12.2.1 or 13.2.0 or 13.7.2 or 13.8.1 or 17.0.2) However, for useful help, please provide as much info as possible. Once you've gone through that, here are some other helpful resources: A foundation in the basics now will prevent much frustration later. If you'd like to join us on Discord, you can do it here! Are you looking for critiques for your piece or are you showing off someone else's work that you've found that is inspirationally excellent? If you post a video, please explain in the title of your post why you're posting it. We are not here to be sold to or spammed, so no posting of your AE templates, please. We're here to help with your After Effects problems, critique your pieces, and sometimes provide a spot of inspiration. Don't downvote a relevant submission you simply don't like kindly explain in a comment how it could be improved - anonymous downvotes don't help anybody.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |