FORUMS: list search recent posts

Layer control and expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Leopoldo Perizzolo
Layer control and expressions
on Oct 13, 2016 at 7:19:09 pm

Hi folks,
I'm working on a preset that uses corner pin data and elaborates it with a series of cursor, angle and point control effects.
I ran into an issue: in the preset that I've created, every time I apply it onto a layer it disables every control effect because the first layer control is set on the wrong layer and it can't find the layer with the corner pin data; so every time I have to open EVERY SINGLE control effect to re-enable them after I've set the correct source layer of corner pin.
Is there a way to do it automatically as soon as I select the correct layer from which it should look for the data? I've tried with the try-catch statement, but it wouldn't enable the effects after the correct layer was set.
I include a couple of images showing the issue.
Don't struggle on the language, I don't know how to write expressions internationally.
Thanks!

IMG 1:
IMG 2:


Return to posts index

Dan Ebberts
Re: Layer control and expressions
on Oct 13, 2016 at 7:27:56 pm

try/catch should work. What does your try/catch expression look like?

Dan



Return to posts index

Leopoldo Perizzolo
Re: Layer control and expressions
on Oct 13, 2016 at 8:06:45 pm

well, I don't really remember ? I think I just wrote something like:
try{ *and the whole expression* }
catch(e){ *and nothing here* }

Could you tell me how I should set it up so that it can actually work?


Return to posts index


Dan Ebberts
Re: Layer control and expressions
on Oct 13, 2016 at 8:46:06 pm

Like this, I guess:

try{ *and the whole expression* }
catch(e){value}


Dan



Return to posts index

Leopoldo Perizzolo
Re: Layer control and expressions
on Oct 13, 2016 at 9:01:51 pm

Oh my god you're amazing!!!! ???
Thank you!
By the way, do you know how I could hide or integrate the effects so that, when I apply the preset, only the effects that I want to see actually show up while the others used to process the data in between the steps are not visible, yet still working? I.E., say I just want to see the layer control effect and the final point control, while other effects are hidden underneath the preset.
I don't know if it's possible, but it would be very handy ;)


Return to posts index

Dan Ebberts
Re: Layer control and expressions
on Oct 13, 2016 at 9:09:20 pm

I don't know of any way to do that unless you apply a second preset (with the hidden controls) to a hidden layer. It would be easy to do if you're using a script, but it doesn't sound like you're doing that.

Dan



Return to posts index


Leopoldo Perizzolo
Re: Layer control and expressions
on Oct 13, 2016 at 9:36:47 pm

Oh, I see.
Ok then, let's keep it that way! ?
Thank you so much for your help!
Bye bye!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]