Instance a graph/ multiple graphs in scene; 100+

Instance a graph/ multiple graphs in scene; 100+

ZachGray
Enthusiast Enthusiast
746 Views
2 Replies
Message 1 of 3

Instance a graph/ multiple graphs in scene; 100+

ZachGray
Enthusiast
Enthusiast

Are there any optimizations for multiple identical graphs in a scene? Creation, saving, and loading are all quite slow, and the compounds are bloating the save files. 

 

I'm importing a curve using  curveInfo>points and using @mjcg91 's curve framing compounds to export a array of matrices. The maya scene has a changing number of inputs and a custom up vector, so having multiple inputs and outputs will be very difficult to manage.

 

ZachGray_0-1597287184418.png

 

Thanks!

 

Zach

0 Likes
Accepted solutions (1)
747 Views
2 Replies
Replies (2)
Message 2 of 3

mjcg91
Collaborator
Collaborator
Accepted solution

When having a lot of graphs in a single scene, the key is to have a referenced compound inside, and have only this compound connected to your inputs / outputs. This greatly reduces the size and save / load time of Maya scene files.

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
0 Likes
Message 3 of 3

ZachGray
Enthusiast
Enthusiast

Thank you. That note took the scene from 185MB to 3.5MB.

 

Creation is a little faster, but still slow to spin up the graph.

 

For future readers, saving a graph to your library includes all the nodes, while saving a compound to your library allows a reference.

 

ZachGray_0-1597345106463.png

 

0 Likes