How to create custom enum attribute that can be read in the bifrost graph?

How to create custom enum attribute that can be read in the bifrost graph?

mcw0
Advisor Advisor
1,147 Views
2 Replies
Message 1 of 3

How to create custom enum attribute that can be read in the bifrost graph?

mcw0
Advisor
Advisor

OK, I thought I had the solution with "addAttr".  That creates the attribute.  But I can't access it in the graph.

 

I want to add a "method" attribute to my bifrostGraph node with "Inward", "Outward" and "Bidirectional" as options.  But when I create a "value" node, under the "enum" option are only predefined values.  And "Custom" isn't custom at all.  Or at least I'm not making sense of how to use it.  How do I create my own?

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

suryamunny
Enthusiast
Enthusiast
Accepted solution

here is the detail explanation from maxime on his blog.

https://maximejeanmougin.com/2020/07/21/enum-in-bifrost/

Message 3 of 3

mcw0
Advisor
Advisor

Thank you for that link.  It's an involved process.  Thanks Maxime for the blow-by-blow.

0 Likes