Oscar Nyquist
Forum Replies Created
-
Oscar Nyquist
February 11, 2022 at 2:29 pm in reply to: Is there a way to know the width and height of a layer similar to sourceRectAtTime?Accidentally double posted.
-
Oscar Nyquist
February 11, 2022 at 2:08 pm in reply to: Is there a way to know the width and height of a layer similar to sourceRectAtTime?Thanks a lot for your amazing work on this! I’m also in need of a similar solution.
I need to store the data as a value in a slider. However, using your method, I’m having some issues. It all works fine as long as it’s stored as a text string, but trying to parse it into a value seems to break the expression and just gives me a faulty value.
I tried fiddling around with it a lot, even bypassing the JSON string and putting the expression directly on a slider. I finally figured out the issue seems to be with the posterizeTime expression. When I set it to 1 or something higher than 0, it gives me the correct value. However, then the expression also becomes way too heavy for my usage, so it’s not really an option for me. Any ideas here?
Cheers!
-
Cool, thank you very much!
-
Thank you for the quick reply!
That’s a good workaround. Do you have any idea about whether what I asked about initially is simply impossible within the limitations of JS?
That is, if there’s any way to parse a non-numerical string into a boolean value? Would be good to know for future reference.
-
Oscar Nyquist
September 3, 2021 at 1:09 pm in reply to: Automatically replace font on certain characters in text layerThanks for your reply. Ideally, I need to figure out a way to get around that limitation. I have a setup which feeds data into AE from a google sheet, and sometimes that data will mix different languages in the same sentence, like Japanese and English. The easiest solution would of course be to use a font that supports multiple languages, but I’m using a custom font which unfortunately does not have that capability.
Do you know if there’s a way to use JS to at least detect when there are glyphs which can’t be read using the current font?
-
Yep, the solution was of course too simple for me to figure out on my own. Thanks a lot!
-
I’ve tried adding a function to the script, but this is a bit above my level so I just wanted to ask for a little more help.
I would like the script to check for precomps with a specific name and then resize that comp to the same size as the main comp. So, let’s say, if the main comp contains a precomp named “one” and/or “two”, resize them. If they don’t exist, then do nothing.
I understand this might be a little complicated, so any pointers in the right direction are appreciated. Thanks!
-
Oscar Nyquist
October 15, 2020 at 12:37 pm in reply to: Use script to retrieve value from expressionApologies for the late reply.
This solution was much more elegant than the one I came up with at first, and seems to be working perfectly together with my positioning expressions. Thank you too!
-
Wow, this was exactly what I was looking for, and I thought it would be much more complicated. Thank you so much!
While I have you, another possibly more difficult obstacle: would it be possible to create a solution for scaling font size with say comp width?