Skip to content
Discussion options

You must be logged in to vote

Hi @joeylitalien !

Without going too much into the technical details, there is an implicit limitation of plugins that their members must be scalar (this is not exactly true, but for the purposes of this discussion we can consider that it is). Basically, a BSDF plugin can't have many roughness values, for example. You therefore need to instantiate one plugin per parameter configuration.


Suggestion 1

To improve the loading time, you could create a custom BSDF class, which just acts as a holder of the N BSDF you'd want, so you could declare a single massive dictionary:

my_huge_dict = {
    'type': 'my_bsdf_holder',
    'bsdf1': {
        'type': 'principled',
        ....
    },
    'bsdf2':…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joeylitalien
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants