Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Xgen create Geometry issues.

Xgen create Geometry issues.

dav.beran
Explorer Explorer
5,132 Views
9 Replies
Message 1 of 10

Xgen create Geometry issues.

dav.beran
Explorer
Explorer

Hello,

 

I created an XGen setup with custom archives scattered over a surface and now I am not able to create and export as geometry. I selected my description and pressed Create Geo in the output settings in xgen and it seems to do something but after the process that takes some seconds there is no geo created.

I also get this error: // Warning: XGen(0):  Unsupported primitive type: ArchivePrimitive for description "biground" 

"biground" is my description.

 

Using maya 2017.

 

 

greetings, 

David

0 Likes
Accepted solutions (1)
5,133 Views
9 Replies
Replies (9)
Message 2 of 10

Michael_Todd
Alumni
Alumni
Accepted solution

The convert to geometry function only works with primitives that are generated by XGen, hence the "Unsupported Primitive Type" error.

 

If you want to convert the instanced archives to geometry, you can change the output operation to MEL output and export a MEL file that will contain all the instanced geo that can be imported to Maya.

 

CreateMel.png

 

You then set the export location and hit the Create MEL button to save out a file, named for the description.

 

CreateMel2.png

 

You can then import the Mel file, which contains the geo.  

 

CreateMel3.png

 

You can export all or a percentage of the primitives as needed. There is also an option to export as instances. The geo in the mel file will be grouped to reflect the instancing as generated by XGen.

 

CreateMel4.png

 

Cheers

 

 

 

 



Michael Todd

XGen Product Owner and Designer

Message 3 of 10

dav.beran
Explorer
Explorer
Hey,

thanks for your fast Response! Tried that allready, following an tutorial on YouTube. When I run the .mel script it gives me an error. Dont exactly know what it says atm but is something like: error in first line.


cheers
0 Likes
Message 4 of 10

dav.beran
Explorer
Explorer
Hey,

thanks for your fast Response! Tried that allready, following an tutorial on YouTube. When I run the .mel script it gives me an error. Dont exactly know what it says atm but is something like: error in first line.


cheers
0 Likes
Message 5 of 10

Michael_Todd
Alumni
Alumni

what version of Maya are you running and can you post the error log?

 

Cheers



Michael Todd

XGen Product Owner and Designer

0 Likes
Message 6 of 10

dav.beran
Explorer
Explorer

Hello,

 

my fault, I tried to run the mel script like in one of those a bit older tutorials which caused the problem.

with importing the .mel, everything worked out perfectly.

 

By the way, I am having troubles with exporting the collections and importing them to a different scene with the same object. In this case i am scattering drops an a can. Now i want to export the drops collection which contains different sets of description with different droptypes and import it to a different scen with the same can but different light setup etc.

 

After importing it, it says that the xgen is not bound to any surface.

 

Also if I just want so save the scene with the xgen setup with a new scene-name, i am losing all the xgen informations etc.

 

I am using 2017 by the way.

 

 

cheers

David

0 Likes
Message 7 of 10

Michael_Todd
Alumni
Alumni

you need to import the collection to the same namespace as the geo:

 

Namespace.png



Michael Todd

XGen Product Owner and Designer

0 Likes
Message 8 of 10

reniferziolo
Advocate
Advocate

i came across the same problem, can't import the mel file properly from the script editor. I am stuck with this.

0 Likes
Message 9 of 10

Anonymous
Not applicable

Thanks for the great and simple explanation here. Actually I did everything Michael_Todd listed but I got a problem when I import the .mel file in a new scene, there is actually no geometry in the scene. All I got are empty folders which seems to be positioned where the geometries are supposed to be but for some reasons there is no geometry at all in the scene.

 

maya_empty_folders_01.jpg

 

I even created a brand new test scene to create an object instanced with Xgen and then imported the .mel I exported from it in a new scene but I didn't got any positive results once again.

 

Does it's have a special procedure when you guys export the .mel file? (Like do you select something special that is not listed by  Michael_Todd before the export?). Also do you have a special procedure too when you import the .mel file in the new scene, do you do it in a different way then file > import > select the .mel and import it?

 

Here is an example of the error line I get when I import the .mel file:

 

// Error: file: E:\EVO\Animatic\3D\evo_3d_animatic\scenes\shots\act_02\sc_010\test_01.mel line 259: No object matches name: cube_02:initialShadingGroup //

 

Thanks in advance for your help, hopefully we can figure this thing out!

Message 10 of 10

Anonymous
Not applicable

I just found the solution, I had to enable the plugins abc import/export. Now everything export and import perfectly!

 

abc_import_export_01.jpg

0 Likes