Mohannad Talafeeh
Forum Replies Created
-
Mohannad Talafeeh
January 28, 2014 at 1:31 pm in reply to: Rewriting ValueAtTime with After effects SyntaxDear Xavier
Thank you for this comprehensive reply,I haven’t tried the code yet but let me answer you for the first part of your reply .
Essentially I’m creating a script that perform a cretin function , but this script will not be for After Effects , it was meant to be used in an another motion software .why do I’m writing it inside of After Effects ?
well,because AE was a much convenient coding environment because of its ability to work with (properties and values and time….)among many other things that I found very helpful , so the hole thing inside of AE was a bunch of expressions distributed on several layers which eventual performed the job that I needed . The whole reason of using AE for that process was only for solving the problems and make it easier for me to handle them .The next step was to rewrite the code on my desired software withe its syntax (not Java scripts) , the problem was that there is no equivalent for the following functions (linear,ease,valueAtTime)but I’v manged to to write my own ones after I studied there principle , the valueAtTime was the problem,I cant figure out how to write it (and for 1D parameters only), if I could write it , then my script will be done and works perfectly,this is only aspect that is missing , if that functions was built-in then I would not have this issue at all.
Best -
Mohannad Talafeeh
January 28, 2014 at 7:56 am in reply to: Rewriting ValueAtTime with After effects SyntaxThank you very much Xavier
Seems that I should find some other approaches instead of using that function, I’ll think of it , but thank you for all the information you supplied it’s really interesting specially the arc length calculations approach . -
Mohannad Talafeeh
January 26, 2014 at 8:01 pm in reply to: Rewriting ValueAtTime with After effects SyntaxThanks Xavier
I understand that this would take a huge amount of execution time , but what makes me sure that it is the wrong approach is because valueAtTime would do this in no time , meaning it is doing the job with much simpler and minimal procedures , and these producers is what I want .Best
-
Mohannad Talafeeh
January 26, 2014 at 5:45 pm in reply to: Rewriting ValueAtTime with After effects SyntaxThanks Xavier
My property are all 1D properties, as for the process it self , what took my interest is that (valueAtTime) is extremely fast almost real-time , it seems its not doing any expensive calculations at all, I’ve tried writing my own edition using nested for-loops but even for few frames it was very slow not mentioning it’s inaccuracy ,I believe that its a fairly simple processes which consist of 2D vector where the first slot contains the value and the next one contains time, so whenever we ask about a value given the time , it should retrieve that value , but as for the 1D property expression how you would go about doing that.Best
-
So, I’ve been doing some experiments during the weekend and what I came up with is that I should create a vector data type such x, where
X[0]=time(current time)
X[1]=property value
Of course this setup supposed to maintain the relationship between the two inputs, so whenever the time is “5“ , it should retrieve the property value at that time , but my question is it possible to write this function (value at time ) in after effects from scratch , I’ve already had a similar experience with this type of code ,with the linear function and the (ease/in/out) functions , it turns out that they are based on the famous Robert Penner functions , so I’ve wrote them from scratch in after effects to make shore that they work as expected , and then modified there syntax to match my goal language and they worked perfectly . -
Thanks Dan
I believe that it has to do with writing multiple loops somehow one for the value and one for the time,in my software I have a built-in function that retrieves the time and value of a given key-frame , I guess that should help me . -
thanks Dan that works perfectly !, great peace of code…