How do I install pre-built compounds and graphs?

How do I install pre-built compounds and graphs?

JocelynM
Autodesk Autodesk
15,267 Views
50 Replies
Message 1 of 51

How do I install pre-built compounds and graphs?

JocelynM
Autodesk
Autodesk

As we anticipate this will be a frequently asked question we have provided both the question and answer in this thread.

 



Jocelyn Moffatt
Industry Marketing Manager, Media & Entertainment
0 Likes
Accepted solutions (1)
15,268 Views
50 Replies
Replies (50)
Message 41 of 51

ihooper
Alumni
Alumni

On Windows the directory for me appears here:

C:\Users\hooperi\Autodesk\Bifrost\Compounds

 

I believe that the folder only gets created once you publish something the first time. You can also manually create the folder in that location and Bifrost will find whatever compounds exist within it.


Ian Hooper
UX Architect
0 Likes
Message 42 of 51

thomas_kutschera
Enthusiast
Enthusiast

Me neither can`t see any custom compound in Maya. I added an extra folder coumpounds/thk with compounds. I then modified maya.env:
BIFROST_LIB_CONFIG_FILES = C:/thomas/tk_bifrost;
That worked. Within maya I get the path added after the default path:
getenv "BIFROST_LIB_CONFIG_FILES";
// Result: C:/Program Files/Autodesk/Bifrost/Maya2020/2.3.0.0/bifrost/resources/plugin_config.json;C:/thomas/tk_bifrost; //
Within the tk_bifrost folder I put bifrost_lib_config.json, which is pointing to the relative path of my compounds.
But wheatever combination I use no compound is found in maya.
Unloading and reloading the bifrost plug made no difference.

0 Likes
Message 43 of 51

Grahame_Fuller
Autodesk
Autodesk

Hi Thomas,

 

The environment variable should point to the file, not the folder it's in.

 

Hope that helps,

gray

 

 


Grahame Fuller
Learning Content Developer
Message 44 of 51

thomas_kutschera
Enthusiast
Enthusiast

Thank you, Grahame! It's working now.
Also I wrongly changed the "AminoConfigurations" line in my json config file. After repairing that all worked out, compounds get found now!
So that's the correct version of my bifrost_lib_config.json

thomaskutschera_0-1631953328932.png

 

0 Likes
Message 45 of 51

Anonymous
Not applicable
bifrost file already has a maya2022 file. Do I need to delet this?
I'm not very good at English and I use online translators a lot, so I'm sorry if my sentences sound weird.

 

0 Likes
Message 46 of 51

alfosici
Explorer
Explorer

Not sure if relevant to anyone, but I've setup mine this way on windows with Maya 2023, and it seem to work .


Inside this folder (if you don't have a \modules folder, create one): 

C:\Users\USERNAME\Documents\maya\modules

i have created a file :

custom_maya_setup.mod

 

inside this file I saved these paths to the .json file for each of the extra compounds modules I wanted to try: 

 

BIFROST_LIB_CONFIG_FILES += D:/FOLDER/ANOTHER_FOLDER/bifrost_compounds/MJCG_compounds_2_1_0/bifrost_lib_config.json
BIFROST_LIB_CONFIG_FILES += D:/FOLDER/ANOTHER_FOLDER/bifrost_compounds/rebel_pack_0_4_1/bifrost_lib_config.json

 

Restart and running Maya now, it picks up the .mod file, and it seems to load the custom bifrost compounds paths as well.

 

This way, if I want to add another compound or get rid of an old one, I can do that by modifying 1 .mod file and I can keep all the custom compounds in separated folders with a nice recognizable name.

 

 

Message 47 of 51

wes_denham
Contributor
Contributor

I don't have the Bifrost or compounds folders in the Autodesk directory. Am I supposed to just create this or was it supposed to be there already? I do have Bifrost installed on Maya and it works and all but I'm just starting to get into Bifrost and I have no idea where to start. Any advice would be helpful. Thanks!

0 Likes
Message 48 of 51

ihooper
Alumni
Alumni

The directory doesn't exist until you first publish a compound of your own which will them cause the system to automatically create the folder. However, it is fine to just manually create the directory first here:

  1. On Windows: C:\Users\<your_user_name>\Autodesk\Bifrost\Compounds
  2. On Mac OSX: /Users/<your_user_name>/Autodesk/Bifrost/Compounds
  3. On Linux: $HOME/Autodesk/Bifrost/Compounds

Bifrost will then look in that folder for any new compounds (.JSON files) that you add.

 


Ian Hooper
UX Architect
Message 49 of 51

wes_denham
Contributor
Contributor

Thank you!

Message 50 of 51

ayushbakshi98
Enthusiast
Enthusiast

The geniuses at Autodesk can't make it any more difficult.. it should be drag drop and nothing more -_-

0 Likes
Message 51 of 51

sepu6
Advisor
Advisor

You can also drag and drop networks to share, grab all the nodes from the graph CTRL + C paste them in a text editor share them with your team, or open a new Maya scene + graph and paste in a new graph CTRL + V 

 

Obviously, custom nodes not shared across won't come correctly if they are not editable. 

 

So there you go 

 

0 Likes