Search Unity

[Released] After Effect Importer for Unity

Discussion in 'Assets and Asset Store' started by stanislav-osipov, Sep 30, 2013.

  1. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Almost there.
    Here is how it will be done:

    1) Plugin update with ca recognize PSD layers is done (will be submitted soon)
    2) But you steel should have pngs in your unity project
    3) New assets with will make you able import layers as files in your project, and then use it like png's also done (but fixing stage)
    4) Both will be submitted during next two weeks + text tutorials.
    5) In one more weeks example video's will arrive.

    Cheers!
     
  2. jonloo

    jonloo

    Joined:
    Aug 14, 2012
    Posts:
    1
    Hi, Im having trouble trying to rotate sprites. When i do it in the after effects it works properly but then in Unity it looks like the anchor points are not correct.
    Any solution?

    Edit: solved, i forgot to set the sprite anchor point to top left :(
     
    Last edited: Sep 24, 2014
  3. NazimR

    NazimR

    Joined:
    Mar 12, 2014
    Posts:
    17
    Hello Lacost
    I am having trouble exporting xml files from larger projects that have a lot of frames. Say 100 layers for 200 frames. It takes a very long time to export on a good computer. More than five minutes I have some comparable plugins for different animation programs and they export comparable scenes to xml in 2 seconds. Is there any way you could optimize the export?
     
  4. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Thanks for repot, this is know issue, I will see what I can do. I will also appreciate if you can send me your animations for testing.
    Cheers!
     
  5. killingzoe

    killingzoe

    Joined:
    Nov 5, 2014
    Posts:
    1
    Hi, I would like to know if it exists a nice workflow using your plugin for my project.

    I´d like to export animations with text in after effect, using your plugin to import it into unity, connecting unity to a database and changing the text of the video in real time (different languages).

    The end result should be an executable, connected to a server, receiving play-stop events and language setting from a main server, and changing the texts in real time.

    Do you think I can just set in after effect some empty field, read them from the generated xml and use them in unity with your plugin?

    Thanks for your help :)
     
  6. sorialexandre

    sorialexandre

    Joined:
    Nov 16, 2014
    Posts:
    2
    Hello. First forgive my english.
    It's amazing this script. From what I saw it is now possible to work with Transform, Rotation, Position and too .. but ... I wonder if you already have an updated version of the kind that take to enliven also shapelayer?
     
  7. John-Higuera

    John-Higuera

    Joined:
    Oct 14, 2012
    Posts:
    20
    Hello, I would like to know if this plug-in for unity exports puppet 2d from after effects.

    Please let me know.

    Thanks
     
  8. Pramod-Acharya

    Pramod-Acharya

    Joined:
    Aug 30, 2013
    Posts:
    4
    Great Work,

    Does it work in Unity Free Version

    Thanks !
    Pramod
     
  9. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello, I am not able to implement the puppet feature yet. Last releases contains solid layers support adn some bug fixes. I will announces if I will implement puppet feature for sure.

    And sure it work with Unity free.
    Cheers!
     
  10. TreborJones

    TreborJones

    Joined:
    Feb 5, 2015
    Posts:
    18
    Hi, I wondered if there were any instructions on how to use this to animate characters using a animation controller? I'd like to export a selection of animations from AE. Is it suitable to use this instead of sprite sheet based animations.

    Thanks!
     
  11. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    character comntroller inside AE importter plugin, is handeling AE animation blending (fading) and animation playmode (once or looped) there is and example scene in the plugin which shows simple use case of animation controller.
     
  12. Pramod-Acharya

    Pramod-Acharya

    Joined:
    Aug 30, 2013
    Posts:
    4
    When will you implement puppet feature in AE importer plugin
    It would be very helpful for better realistic animation

    Does this importer work on DUIK tools http://duduf.net

    Thanks
     
    Last edited: Feb 20, 2015
  13. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    The work is in progress but I have few issues, so I steel not sure If I can release it.

    I do not know what the DUIK, but I will read about it and will see what I can do.
    Cheers!
     
  14. Pramod-Acharya

    Pramod-Acharya

    Joined:
    Aug 30, 2013
    Posts:
    4
    Try your best buddy
     
  15. Pramod-Acharya

    Pramod-Acharya

    Joined:
    Aug 30, 2013
    Posts:
    4
    Did you test DUIK Tools in AE
     
  16. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Will do on this weekends.
     
  17. realsammyt416

    realsammyt416

    Joined:
    Mar 10, 2015
    Posts:
    1
    This plugin looks awesome. If you are able to figure out how to get the Puppet Tool supported I will buy it 100%
     
  18. pixelsteam

    pixelsteam

    Joined:
    May 1, 2009
    Posts:
    924
    Looking forward to next update.
     
  19. ariusdb222

    ariusdb222

    Joined:
    Jan 25, 2015
    Posts:
    88
    Can this be used for showing particles, smoke, fire, rain...?
     
  20. termtemm

    termtemm

    Joined:
    Apr 9, 2015
    Posts:
    1
    after export xml file all layers' position doesn't match
    in my picture you see frame#46. this suppose to be match but it doesn't.

    2015-04-09-02.45.14-pm.png
     
    Last edited: Apr 9, 2015
  21. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I would not recommend to use AE animation as your particle system solution. Use Unity particle systems to gain as much performance as possible.


    @termtemm thx for your report. I already got it for you via support e-mail as well. I am really sorry for delay. I am currently dealing with the native plugins update and AE licence issues.

    Cheers!
     
  22. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    Hi All,

    I am trying to import an AE animation into unity, I watched the video, I saw the testanimation.xml is generated in AE first, then the xml file is dropped into unity, but how the testanimation.xml file is generated in AE? since I got the AE animation is made by my friend, he said he could not find a way to make the xml file in his verion of AE, he could not find a way to make the unity export.jsx file (javascript) either in AE, so please help.

    Thanks
    Dave
     
  23. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
  24. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
  25. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    Another question, I just purchased your AE importer, and imported the packages into unity, since I already had iTween in another folder which I am using for my app, after I imported your importer, it also has iTween, which is now conflict, I got compiler error for this conflict saying it already contains a definition of 'iTween', can I delete your version of iTween and keep mine, and how point the importer to mine?

    Thanks
     
  26. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    Hi All,

    Does this importer handles sound files? I have made the animation work, but no sound, I have sound files which need to be played at some frame points, do I have to write a controller script and find the frame for sound and play it?

    Thanks
     
  27. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Feel free to remove Assets/Extensions/iTween folder and you good to go.


    Yes you need to do a controller script. Sounds is not supported unfortunately. But AE animation offer API which will allow you to do a good sound controller for your animation, have a look:
    https://unionassets.com/after-effect-importer/scripting-152
    Cheers!
     
  28. divya8

    divya8

    Joined:
    Mar 24, 2015
    Posts:
    2
    can your script be used to make changes to the objects brought from after effects ?can i use them as gameobjects and apply physics on them ??
     
  29. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Well actually, no.
    I mean the way AE importer works, its translating animation data to the xml. And creating Game objects (sprites) with unity.
    The objects are moved programming by the animation script.
    But since it's steel regular game object, you can stop animation and add physics on it . But when animation si played, and objects are moved with the AE script, if another script will try to move it (physics from example) it will defiantly produced the conflict.

    Cheers!
     
  30. divya8

    divya8

    Joined:
    Mar 24, 2015
    Posts:
    2
    so its simply i can use the animation ,to play in background only , since the conflict will not make it work ,is there a way i can make these animation objects work ? i have a scene in which i have to animate the fishes in the aquarium and use those fishes ...can i use them ?
    Also do you have trial version or this ? so that i have an idea
     
  31. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello, well yes after animations is stopped you can use your fishes as normal 2D sprite object.
    Shure I will provide you with the trial version.
     
  32. dddu88

    dddu88

    Joined:
    Apr 20, 2013
    Posts:
    16
    I have a question, I have a background image with my animation, when the animation starts, I want my background image to scale to the full screen size no matter what size of phone it is installed on based on the screen size, so I need to get the initial background image size with
    SpriteRenderer sr = GetComponent<SpriteRenderer> (),
    worldScreenWidth = worldScreenHeight / Screen.height * Screen.width * 0.4f;
    transform.localScale = new Vector3 (
    worldScreenWidth / sr.sprite.bounds.size.x,
    worldScreenHeight / sr.sprite.bounds.size.y, 1)

    ...

    but the AEStart gameObject do not have spriteRenderer, no Renderer either, so how can I get the initial background bound size?
    Thanks
    Dave
     
  33. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    The AE game object has sprite renderers in hierarchy, so you can actually access ut, just pick what AESprite you would like to use, since animation may contain a lot of sprites
     
  34. vuong_vin

    vuong_vin

    Joined:
    Sep 17, 2014
    Posts:
    18
    Look Great. I have a GEO maps (http://aescripts.com/geolayers/), I not sure your unitypackage can export it. If can, I will but it. How can i test before buy?
     
    pixelsteam likes this.
  35. pixelsteam

    pixelsteam

    Joined:
    May 1, 2009
    Posts:
    924
    Wow the geo map plugin looks amazing. Please keep me informed if it works with the unity plugin.
     
  36. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hey @quenhoai2003 I just sent the trial version for you.
    Cheers!
     
    vuong_vin likes this.
  37. owenwelsh

    owenwelsh

    Joined:
    Aug 13, 2015
    Posts:
    2
    Does your exporter export opacity changes?
     
  38. owenwelsh

    owenwelsh

    Joined:
    Aug 13, 2015
    Posts:
    2
    I too would appreciate puppet tool support.
     
  39. joonasnissinen

    joonasnissinen

    Joined:
    Feb 18, 2014
    Posts:
    2
    Hey,

    I just purchased your plugin and I am trying to export the example AfterEffects projects. I am constantly getting the following error when trying to run the Unity 3D Export.jsx script:

    Unable to execute script at line 218. undefined is not an object

    I am using the latest Adobe AfterEffects CC version 13.5.1.48. Do you have any ideas as to what causes this to happen? Also does the exporter already support .psd files?
     
  40. joonasnissinen

    joonasnissinen

    Joined:
    Feb 18, 2014
    Posts:
    2
    I managed to work around the problem with a simple solution of checking for undefined properties. Also psd assets seem to work nicely. Once I added the undefined check everything seems to work correctly. I suspect that the problem might be related to a different (newer) jsx version? The source code of the modified exportProperties function can be found from below:

    function exportProperties(composition, properties, steam) {
    var numFrames = Math.floor(composition.duration.toFixed(2) / frameDuration);
    var i = 0;
    var l = numFrames;
    for (; i<l; ++i) {
    //time print disabled
    var time = i * frameDuration;
    output(' <keyframe frame="' + i + '">', steam);
    // build properties list
    var x = 0;
    var y = properties.length;
    var source = [];
    var sourceCount = 0;
    var currentContainer;
    for (; x<y; ++x) {
    if (properties[x].valueAtTime != undefined) {
    var parentName;
    if (properties[x].parentProperty != undefined) {
    parentName = properties[x].parentProperty.name;
    }
    else {
    parentName = "Undefined Property";
    }
    if (source[parentName] == undefined) {
    source[parentName] = {};
    source[parentName].name = properties[x].name;
    source[parentName].values = [];
    }
    source[parentName].values.push(properties[x]);
    }
    }

    // build xml
    for (var pn in source) {
    if (source[pn].values == undefined)
    continue;

    output(' <source name="' + pn + '">', steam);
    var x = 0;
    var y = source[pn].values.length;
    for (; x<y; ++x) {
    exportProperty(source[pn].values[x], time, steam)
    }
    output(' </source>', steam);
    }
    output(' </keyframe>', steam);
    }
    }
     
  41. Jagwire

    Jagwire

    Joined:
    Dec 5, 2013
    Posts:
    59
    Has anyone noticed any problems using this plugin with Unity 5? I went to purchase it on the Asset Store and it mentioned the possibility of incompatible scripts with Unity 5. This is currently the only thing standing in my way from purchasing it ASAP.
     
  42. TanteDante

    TanteDante

    Joined:
    Oct 28, 2014
    Posts:
    6
    Would this plugin support animations like those in this video?
    I would love to achieve such effects in a game :D
     
  43. lildub

    lildub

    Joined:
    May 6, 2015
    Posts:
    14
    I was wondering if this supports 3d transitions? I was also curious about a tutorial showing importing the img into the plugin because the tutorial seems out of date.
     
  44. jonathanHdz

    jonathanHdz

    Joined:
    Sep 13, 2015
    Posts:
    1
    Hello lacost , can you help me? i've had the same error when i run the Untiy3D export,at line 183. help plz
     
  45. sean-ashan

    sean-ashan

    Joined:
    Mar 19, 2015
    Posts:
    1
    Hi lacost :
    i am a 2d game developer , i found out your plugin useful , and was about to buy it .
    here's some worries if you can help clarify to me .
    i'm using After Effect cc 2014 edition , and Unity 5.2.x as development tools.
    and i was wondering if the plugin supports .
    if supported , i 'd buy the plugin no time.
    hope to hear from you .

    thanks.
    sean.

     
  46. AStoryBoardZ

    AStoryBoardZ

    Joined:
    Feb 10, 2016
    Posts:
    2
    Hi! Did you find some workaround for exporting Puppet Tool animations to Unity5? I believe many people make character animations with Puppet Tool so it would attract more AE users to your asset. I would buy it today if that was possible :)
     
  47. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello,

    The plugin is focused on the 2d animation.


    Please have a look:
    https://unionassets.com/after-effect-importer/export-script-crash-465



    Yep, we support all latest versions of AE and Unity.


    I would love to say yes, but this feature isn't supprted :)
     
  48. Harton

    Harton

    Joined:
    Dec 5, 2012
    Posts:
    20
    Hi Stan,

    We are trying to export a complex after effects animation that uses psd layers. The export process take a while but finally ends. We put the psd on Resources folder and create new animation, drag on the xml file and seems do something but is not creating gameobjects with the sprites. The psd is set as Sprite TopLeft like the manual. I'm not sure what we are doing wrong.

    I'm comparing now an example xml with mine but seems ok to me.

    Anyone happened something similar? We followed video and pdf doc again an again, I'm not sure what happening.
     
  49. dwmsco

    dwmsco

    Joined:
    Nov 6, 2014
    Posts:
    13
    Hi! No matter where I place the image i'm using from After Effects, Unity tells me it cannot find the image.

    The image is located in Assets/images, but no matter what combination of "Assets/images/" or just "images" with or without any slashes - it simply does not find the image.

    I have even tried placing it in the root of my project (just "Assets") and it will not find the image. Please help!

    Using:
    Unity 5.3.4f1 Personal
    After Effects CC 2015
     

    Attached Files:

  50. dwmsco

    dwmsco

    Joined:
    Nov 6, 2014
    Posts:
    13
    Any idea?