We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › After Effects keyframe data in Processing
Pages: 1 2 
After Effects keyframe data in Processing (Read 4569 times)
Re: After Effects keyframe data in Processing
Reply #15 - Feb 2nd, 2010, 1:35pm
 
nooo plz no windows only solutions!
Re: After Effects keyframe data in Processing
Reply #16 - Feb 4th, 2010, 10:35am
 
hello,
would you guys give this a try.
the test.ae file in data folder is a copy from AE with hand made frame data for position, scale, rotation, anchor.

so far it parses general info and object pos/scale/rot/anchor data (3d components and all componets are together) but should be easy to add more fields/parameters.

you should see your data be printed in the console.

i would like your feedback on your own scene imports to see if it works ok

cheers,

project at: www.pixelnerve.com/downloads/AEImporter.zip
Re: After Effects keyframe data in Processing
Reply #17 - Feb 5th, 2010, 3:39am
 
it seem to work fine,

what are those numbers in the top?

Quote:
     0      500      350      0      
     0      100      100      100      
     0      0      
           100      
Anchor keys:
Re: After Effects keyframe data in Processing
Reply #18 - Feb 5th, 2010, 4:18am
 
ok, that is good.
those numbers are a print of the current line being parsed. its a forgotten println.

ill implement lights and cameras. if you have any suggestions, shoot
Re: After Effects keyframe data in Processing
Reply #19 - Feb 5th, 2010, 4:54am
 
How are you planning the processing features?
Like how to use them?
Re: After Effects keyframe data in Processing
Reply #20 - Feb 5th, 2010, 5:59am
 
for now i'm just planning multiple text files and using the copy&paste method per object.

I'm working on the importer from AE so it will be able to load data from AE correctly, anything that really matters.
Later on i should write an exporter, which will export data from your application so you can use it with AE.

I hope to be able to export data from applications based on data retrieve from opengl, so i have no plans on supporting 2d or p3d modes. Later on if this gets interesting someone else will do it eventually.

Anyway, any object you want to export, might need to be attached to some listener/class that will tell the exporter it is exportable. So, based on the exporting method the textfile will be created. It might also need a start-end time aswell, so you can control the exporting data.
This is just an idea WIP, i'm not sure if it will the way to go or not. It's not a priority right now.

What's in your mind?
Re: After Effects keyframe data in Processing
Reply #21 - Feb 5th, 2010, 4:32pm
 
in my mind if the resultion of the processing sketch is 900 x 900 and the same is in AE then when a image or a object get's futher away in the z depth then how far it is must look equal in AE. I got more in mind but without that it would be fail. This will also depands on the camra angle, so maybe there must be a way to define a camera in processing where the keyframes can be copied to AE. This can be quite tricky and if you need help with fihure out values i meight can help but i don;t know if i have the skills to suceed.

I hope atleast that you understand what i mean.

If i put what i mean in a big contrast then i would say that the perspective way you look at things in AE shouldn't look in a orbit way in processing.

After that it would be cool if the light values come close ot the AE values.
Re: After Effects keyframe data in Processing
Reply #22 - Feb 5th, 2010, 4:41pm
 
btw when you create a output then you can declare

output.println("something");

for example.

I don't know if it's possible but maybe something can be used like:

object1.translate(10, 200, 50);
object1.rotateX(50);

etc.

where in the end all values of object1 can be exported to a AE file.

object1 could be a point, box, image etc.
Re: After Effects keyframe data in Processing
Reply #23 - Feb 5th, 2010, 5:11pm
 
i sure would like your help for one thing.
3 textfiles that define some animation of 3 things:
a camera, a light and an object.

i've been messing around with AE but haven't got to that, so i would appreciate some nice examples so i can reproduce the same within an application.

yes transformations between spaces is something to care about, i'm aware of that. an AE camera and a camera in processing is not the same. diff space.

let me know if you can get me that example. would be nice
Re: After Effects keyframe data in Processing
Reply #24 - Feb 7th, 2010, 12:30am
 
I second your request on those examples. Would be helpful. Messing around with AE myself, but feel like I'm going at it blind a bit.
Re: After Effects keyframe data in Processing
Reply #25 - Feb 7th, 2010, 7:24am
 
some changes in values make no sence does that matter?
Like with the light, it's like rotating a black circle, you can't see that it rotates.
Also i took a bit more then a minute now to see if that would get you into troubles, if you want more then a hour or something then tell me.

p.s. a parrent function would be sweet.

camera:

Quote:
Adobe After Effects 8.0 Keyframe Data

     Units Per Second      25
     Source Width      1000
     Source Height      700
     Source Pixel Aspect Ratio      1
     Comp Pixel Aspect Ratio      1

Transform      Point of Interest
     Frame      X pixels      Y pixels      Z pixels      
     0      500      350      0      
     1999      507      360      12      

Transform      Position
     Frame      X pixels      Y pixels      Z pixels      
     0      500      350      -1388.89      
     1999      512      471      -1367.89      

Transform      Orientation
     Frame      X degrees      
     0      0      0      0      
     1999      0      0      0      

Transform      Rotation
     Frame      degrees      
     0      0      
     25      -0.787598      
     50      0.729746      
     75      -0.674692      
     100      0.25807      
     125      0.254371      
     150      0.168455      
     175      0.161948      
     200      0.593656      
     225      -0.0358247      
     250      -0.653159      
     275      0.665142      
     300      0.564425      
     325      0.376058      
     350      -0.0595388      
     375      -0.502247      
     400      -0.395896      
     425      -0.100453      
     450      0.176985      
     475      0.052524      
     500      1.05911      
     525      0.252896      
     550      -0.0231809      
     575      1.03162      
     600      0.307475      
     625      -0.44759      
     650      0.643867      
     675      -0.283474      
     700      0.370073      
     725      0.62685      
     750      0.344761      
     775      0.97899      
     800      0.654114      
     825      1.02167      
     850      0.534225      
     875      -0.424765      
     900      0.847942      
     925      0.404166      
     950      0.517811      
     975      0.692065      
     1000      0.322297      
     1025      -0.484222      
     1050      1.26128      
     1075      -0.20493      
     1100      1.22876      
     1125      -0.0691349      
     1150      -0.0577273      
     1175      0.157025      
     1200      0.398695      
     1225      -0.316635      
     1250      -0.218005      
     1275      1.47995      
     1300      1.61926      
     1325      1.12519      
     1350      -0.146648      
     1375      1.03484      
     1400      -0.165735      
     1425      -0.173096      
     1450      0.996062      
     1475      1.52772      
     1500      -0.117571      
     1525      1.73767      
     1550      0.294324      
     1575      0.594285      
     1600      0.549599      
     1625      -0.136494      
     1650      0.159468      
     1675      0.158882      
     1700      0.612472      
     1725      1.45676      
     1750      0.314446      
     1775      1.31548      
     1800      1.88836      
     1825      1.17722      
     1850      1.69609      
     1875      1.70774      
     1900      0.503318      
     1925      1.63497      
     1950      0.525767      
     1975      1.0169      
     1999      1      

Transform      X Rotation
     Frame      degrees      
     0      0      
     25      0.176726      
     50      -0.365991      
     75      -0.896226      
     100      0.415698      
     125      -0.218453      
     150      -0.91013      
     175      0.444244      
     200      0.558896      
     225      0.93442      
     250      -0.163368      
     275      0.429204      
     300      0.115498      
     325      -0.317231      
     350      -0.697284      
     375      0.886986      
     400      0.820541      
     425      -0.644109      
     450      0.624264      
     475      0.513262      
     500      1.09277      
     525      0.687754      
     550      -0.51343      
     575      0.888736      
     600      -0.423993      
     625      -0.484792      
     650      0.847365      
     675      -0.0623068      
     700      0.893069      
     725      -0.0256667      
     750      0.771104      
     775      1.08666      
     800      0.419762      
     825      1.03376      
     850      1.08405      
     875      0.303682      
     900      -0.161518      
     925      1.15056      
     950      0.8544      
     975      0.255803      
     1000      0.38077      
     1025      0.9026      
     1050      1.37215      
     1075      1.146      
     1100      1.46592      
     1125      0.694682      
     1150      1.05733      
     1175      1.04756      
     1200      0.116521      
     1225      1.10431      
     1250      1.17855      
     1275      1.09795      
     1300      0.738737      
     1325      1.64919      
     1350      1.06988      
     1375      0.138877      
     1400      0.212848      
     1425      0.011419      
     1450      1.30381      
     1475      -0.00440225      
     1500      0.998704      
     1525      1.18361      
     1550      1.36543      
     1575      -0.0416602      
     1600      0.401767      
     1625      0.13683      
     1650      1.21462      
     1675      1.66729      
     1700      0.06436      
     1725      0.884874      
     1750      0.680943      
     1775      0.337115      
     1800      1.27336      
     1825      1.67357      
     1850      1.14864      
     1875      1.06956      
     1900      1.55746      
     1925      0.966125      
     1950      1.2663      
     1975      0.892746      
     1999      1      

Transform      Y Rotation
     Frame      degrees      
     0      0      
     1999      0      


End of Keyframe Data


jpg image:

Quote:
Adobe After Effects 8.0 Keyframe Data

     Units Per Second      25
     Source Width      389
     Source Height      513
     Source Pixel Aspect Ratio      1
     Comp Pixel Aspect Ratio      1

Transform      Anchor Point
     Frame      X pixels      Y pixels      Z pixels      
     0      194.5      256.5      0      
     1999      194.5      256.5      0      

Transform      Position
     Frame      X pixels      Y pixels      Z pixels      
     0      274      366      0      
     83.333      277.773      363.574      0.502457      
     166.667      299.066      360.986      0.190069      
     250      304.013      369.389      0.693808      
     333.333      313.934      361.65      1.13675      
     416.667      318.401      368.809      -4.54317      
     500      329.625      367.316      -2.6769      
     583.333      340.853      360.981      2.2541      
     666.667      349.048      360.394      -2.96146      
     750      358.297      367.737      -5.00259      
     833.333      366.566      370.701      -1.9732      
     916.667      385.313      367.944      3.99695      
     1000      392.351      360.278      -3.66881      
     1083.33      397.378      362.132      4.97604      
     1166.67      410.387      367.904      3.32548      
     1250      414.267      362.454      3.1821      
     1333.33      428.279      369.447      1.79577      
     1416.67      443.243      361.8      -2.74447      
     1500      449.883      365.998      -1.96222      
     1583.33      451.842      364.79      1.50114      
     1666.67      467.829      368.962      -1.46342      
     1750      472.915      366.927      3.34507      
     1833.33      490.965      365.13      4.51039      
     1916.67      501.806      365.06      -5.90442      
     1999      506      366      0      

Transform      Scale
     Frame      X percent      Y percent      Z percent      
     0      100      100      100      
     1999      104      104      104      

Transform      Orientation
     Frame      X degrees      
     0      0      0      0      
     1999      28      326      5      

Transform      Rotation
     Frame      degrees      
     0      0      
     1999      9      

Transform      X Rotation
     Frame      degrees      
     0      0      
     250      -2.41069      
     500      -2.62921      
     750      -3.5884      
     1000      -6.2578      
     1250      -7.00587      
     1500      -8.61716      
     1750      -11.3013      
     1999      -12      

Transform      Y Rotation
     Frame      degrees      
     0      0      
     1999      9      

Transform      Opacity
     Frame      percent      
     0      100      
     1999      73      


End of Keyframe Data


light
Quote:
Adobe After Effects 8.0 Keyframe Data

     Units Per Second      25
     Source Width      1000
     Source Height      700
     Source Pixel Aspect Ratio      1
     Comp Pixel Aspect Ratio      1

Transform      Point of Interest
     Frame      X pixels      Y pixels      Z pixels      
     0      349.435      409.85      -60.0161      
     877      349.435      705.85      -60.0161      
     1999      474.435      705.85      -26.0161      

Transform      Position
     Frame      X pixels      Y pixels      Z pixels      
     0      505.102      305.183      -378.238      
     877      752.102      305.183      -136.238      
     1999      752.102      305.183      -83.2383      

Transform      Orientation
     Frame      X degrees      
     0      0      4      0      
     877      31      37      93      
     1999      31      120      93      

Transform      Rotation
     Frame      degrees      
     0      0      
     877      62      

Transform      X Rotation
     Frame      degrees      
     0      0      
     877      -22      
     1999      -112      

Transform      Y Rotation
     Frame      degrees      
     0      0      
     877      -19      


End of Keyframe Data

Re: After Effects keyframe data in Processing
Reply #26 - Feb 7th, 2010, 8:42am
 
Hey Clan,
thanks for the data files but there is one problem. The transformations your sent are splitted by component. I believe putting them together is a much sweeter option, and also because i do not have support for splitted method.

so instead of

Transform X Rotation
Frame
Transform Y Rotation
Frame

it should come as what i believe is to be correct:

Transform Rotation
Frame  Degrees X Pixels  Y Pixels Z Pixels


same goes for position and scale, etc.

As for the text files, placing them in a post is not going to work. I take the TAB spaces into account, so the importer won't work without them. FIXME!!
can you upload it somewhere, with the new changes ??

lets swap emails, working thru a forum is just weird
Re: After Effects keyframe data in Processing
Reply #27 - Feb 7th, 2010, 8:48am
 
Quote:
thanks for the data files but there is one problem. The transformations your sent are splitted by component.


By camera and light the objects are splitted by default so you have to deal will that Sad

I will pm you
Pages: 1 2