ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

encrypted expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam levine
encrypted expressions
on Mar 12, 2015 at 6:09:58 pm

How can we write a encrypted expressions in AE?


Return to posts index

Dan Ebberts
Re: encrypted expressions
on Mar 12, 2015 at 7:07:21 pm

You can use the ExtendScript Toolkit to export your expression as a .jsxbin file. You can take the contents of that file, wrap it in double quotes and stick it in an eval() function like this:

eval("@JSXBIN.....");

My experience though is that doing this can incur a significant performance penalty.


Dan



Return to posts index

Adam levine
Re: encrypted expressions
on Mar 12, 2015 at 8:34:23 pm

thanks Dan.. But it didn't work....


Return to posts index


Dan Ebberts
Re: encrypted expressions
on Mar 12, 2015 at 8:49:24 pm

It's hard to say what's going on without seeing the original expression, the .jsxbin code and the error message (if any). Is it a long expression? You may be running into and issue with carriage returns.

As a simple test, start with this:

wiggle(1,100);

Running it through the binary exporter gives this:

@JSXBIN@ES@2.0@MyBbyBn0ABJAnAEjzGjXjJjHjHjMjFBfRCFdBFdjEff0DzACByB

and this expression does in fact produce a wiggle:

eval("@JSXBIN@ES@2.0@MyBbyBn0ABJAnAEjzGjXjJjHjHjMjFBfRCFdBFdjEff0DzACByB");


Dan



Return to posts index

Adam levine
Re: encrypted expressions
on Mar 12, 2015 at 9:10:25 pm

thank you so much Dan.. Now I got it.. :D


Return to posts index

Arun Chaudhary
Re: encrypted expressions
on Jan 26, 2017 at 9:52:43 am

Hi Dan Ebberts This method do not work when expressions control by slider kindly help


Return to posts index


Dan Ebberts
Re: encrypted expressions
on Jan 26, 2017 at 2:15:35 pm

>This method do not work

What are the symptoms? Are you sure it's the slider causing the problem? Any error message?

Dan



Return to posts index

Arun Chaudhary
Re: encrypted expressions
on Jan 26, 2017 at 5:04:47 pm

like this

http://i.imgur.com/O30OzZe.png


Return to posts index

Dan Ebberts
Re: encrypted expressions
on Jan 26, 2017 at 5:08:24 pm

What does the actual expression look like?

Dan



Return to posts index


Arun Chaudhary
Re: encrypted expressions
on Jan 27, 2017 at 5:10:58 am

Before
wiggle(effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"));

After

eval("@JSXBIN@ES@2.0@MyBbyBn0ABJAnAEjzGjXjJjHjHjMjFBfRCEEjzGjFjGjGjFjDjUCfRBFeOiTjMjJj
EjFjShAiDjPjOjUjSjPjMffRBFeGiTjMjJjEjFjSffEEjCfRBFeQiTjMjJjEjFjShAiDjPjOjUjSjPj
MhAhSffRBFeGiTjMjJjEjFjSffff0DzADByB");

Error, after effects warning unterminated string constant expression disabled

Click on image zoom it, text one show before bin & second text show after convert JSXBIN in image


Return to posts index

Dan Ebberts
Re: encrypted expressions
on Jan 27, 2017 at 6:41:38 am

I think it works if you get rid of the line breaks:

eval("@JSXBIN@ES@2.0@MyBbyBn0ABJAnAEjzGjXjJjHjHjMjFBfRCEEjzGjFjGjGjFjDjUCfRBFeOiTjMjJjEjFjShAiDjPjOjUjSjPjMffRBFeGiTjMjJjEjFjSffEEjCfRBFeQiTjMjJjEjFjShAiDjPjOjUjSjPjMhAhSffRBFeGiTjMjJjEjFjSffff0DzADByB")



Return to posts index

Arun Chaudhary
Re: encrypted expressions
on Jan 27, 2017 at 8:35:10 am

Hi Den
wow your expressions work perfectly as all time

I'm new to expressions kindly explain how to get rid of the line breaks it is very important for me

Thanks, you are hero


Return to posts index


Arun Chaudhary
Re: encrypted expressions
on Jan 27, 2017 at 5:27:18 pm

Den kindly reply, how can I do this

Thank you


Return to posts index

Dan Ebberts
Re: encrypted expressions
on Jan 27, 2017 at 5:30:21 pm

Put the cursor at the end of the first line and hit delete so the next line moves up, eliminating the break between those two lines. Repeat until the entire expression is on one line.

Dan



Return to posts index

Arun Chaudhary
Re: encrypted expressions
on Jan 27, 2017 at 5:57:42 pm

This is wow wow Ohh Ohh my God
Den you saved my life
actually, I check every 10 minutes for your reply before I know where Den reply my problem solved
I'm now 😃😃😃😃😃😃😃

Thank you so much Den You are my hero


Return to posts index

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