Community
Bifrost Forum
Welcome to the Bifrost Forum. This is the place for artists using Bifrost to ask and answer questions, browse popular topics, and share knowledge about creating effects procedurally using Bifrost. You can also visit the Bifrost Community on AREA to download an array of ready-to-use graphs, read Bifrost news and updates, and find the latest tutorials.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding custom icons to compounds

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mjcg91
599 Views, 2 Replies

Adding custom icons to compounds

i'd like to know what needs to be known in order to do this properly.

 

I already know how to edit my .json files to add the needed metadata, but the path to the icon doesn't make sense at all. In the bif_lib_config files, the path to the icons folder is never initialized, yet it is able to load these icons while being in a folder next to the actual jsonLibs.

 

I have succeeded only once, by putting a custom compound and a custom icon in the rebel-pack folders, but somehow, if I arrange everything using the same fashion in my custom library, the custom icon doesn't appear on the compounds.

 

the .svg format is not the problem as I was able to successfully load it.

 

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

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
2 REPLIES 2
Message 2 of 3
mjcg91
in reply to: mjcg91

After investigating a bit, I was able to solve the problem. It was related to having compound scattered in sub-folders, and how the path was written.

 

At first, I had to put the icons folder in the compound path's sub-folder. I didn't know why it was working only by puting the icons folder in any level higher than the compound's root path. But then, I realised that the double dot ".." means "go up one level".

 

So changing the path to this "../../icons/mjcg.svg" and It magically worked, with a single icon folder.

 

                {
                    "metaName": "icon",
                    "metaType": "string",
                    "metaValue": "../../icons/mjcg.svg"
                },

 

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

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

Thanks for sharing.....many hours of head scratching is now at an end

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report