Skip to content

Reason for the py::cast() error with custom BSDF? #317

Answered by Speierers
apoorvkhattar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @apoorvkhattar ,

This means that C++ is not able to digest a Python object provided as an argument to a C++ function / method. If I understood correctly, you are implementing your own BSDF as a python plugin, similar to the custom python plugin tutorial is that right?

Ideally if you could share the code for this plugin, we could help you debug this further. I suggest you check the inputs/outputs of the methods defined in this trampoline class, as they need to match the ones of the BSDF API.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@apoorvkhattar
Comment options

Answer selected by apoorvkhattar
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