Home Unreal Engine

Xgen to Unreal Alembic Hair Exporter Maya script

Hi guys, Just wanted to share this tool here for people who want an automated exporter from Xgen in Maya to the new Unreal Alembic Hair format without the hassle of having to prep the scene manually.
Just with a click of a button it will do all the steps for you and write a hair alembic file that can be directly imported into the latest Unreal Editor.

Enjoy!


Replies

  • goekbenjamin
    Offline / Send Message
    goekbenjamin polycounter lvl 3
    tamtamx said:
    Hi guys, Just wanted to share this tool here for people who want an automated exporter from Xgen in Maya to the new Unreal Alembic Hair format without the hassle of having to prep the scene manually.
    Just with a click of a button it will do all the steps for you and write a hair alembic file that can be directly imported into the latest Unreal Editor.

    Enjoy!


    Oh, nice! Thanks a lot!
    Just in time! I am about to test export some xgen from Maya.
    Out of curiosity, what exactly would those manual steps be?
  • goekbenjamin
    Offline / Send Message
    goekbenjamin polycounter lvl 3
    Tried out to work with that script,

    I moved those two files into place:
    (X:\Users\UserName\Documents\maya\2018\)

    created a shelf-python-script:
    import launcher
    launcher.run()

    saved my document which contains xgen-strands and hit the button/script:

    i got this error:

    import launcher
    launcher.run()
    # Error: ImportError: file <maya console> line 1: No module named launcher # 

    and no files are exportet nor the folders are generated

    any ideas why?
  • goekbenjamin
    Offline / Send Message
    goekbenjamin polycounter lvl 3
    i dont know if you would read that, i wanted to let you know that i think a found an issue in the latest version 0.0.8:

    output.log:

    -------------------------------
    ...

    Begin attempted read of a shade fragment XML file.

    Attempting to read fragment XML code from: aiRectangleAreaLight.xml

    Errors loading XML:

    -------------------------------------------------------------------------------

    Could not find file: aiRectangleAreaLight.xml

    -------------------------------------------------------------------------------

    End attempted read of fragment XML.

    ###############################################################################

    qt.svg: Cannot open file ':/expression.svg', because: No such file or directory

    qt.svg: Cannot open file ':/expression.svg', because: No such file or directory

    qt.svg: Cannot open file ':/expression.svg', because: No such file or directory

    qt.svg: Cannot open file ':/expression.svg', because: No such file or directory

    Result: untitled

    File read in  0.025 seconds.

    Importing XGen Collections...

    Done.

    --= Your Workspace: C:/Users/Benjamin/Downloads/hair_test/

    Error: line 1: WindowsError: file C:/Users/reza/Documents/maya/2019/scripts\XgenToUnrealHairAlembicScript.py line 146: 3

    --------------------------------------------------------------


    1. So the last line must be wrong beause i am not "reza" ;-D
    2. when trying to save those two lines into the shelf:
    import launcher
    launcher.run()

    it actually does not open the window at all, only when opening the script editor windows and enter it manually....
  • ckohlmeyer
    I can confirm I also get this error: 
    C:/Users/reza/Documents/maya/2019/scripts\XgenToUnrealHairAlembicScript.py line 146: 3

    And unfortunately I can't edit the script.
    No ABC is created.
  • BassemBanna
    Tried out to work with that script,

    I moved those two files into place:
    (X:\Users\UserName\Documents\maya\2018\)

    created a shelf-python-script:
    import launcher
    launcher.run()

    saved my document which contains xgen-strands and hit the button/script:

    i got this error:

    import launcher
    launcher.run()
    # Error: ImportError: file <maya console> line 1: No module named launcher # 

    and no files are exportet nor the folders are generated

    any ideas why?
    You need to copy the scripted files itself not the folder to "C:\Users\Username\Documents\maya\20XX\scripts"
    and it will work just fine :D

  • fbb
    Trying out your plugin. Not much is happening when I run the commands:

    import launcher
    launcher.run()

    It is installed as instructed and it is giving me feedback - on my first attempt it required me to save my scene to a folder within the project directory -  but having done that it is not launching the gui and in the script editor the only feedback I get is:

    ---=> self.scenePath /projectPath/scenes/exportTests/file.mb
    ---=> self.workspaceDir /projectPath/

Sign In or Register to comment.