I've got a PyObject attribute on a work item, which is a list of several instances of my own python object. I'd like to iterate over each of these objects in maya (they each hold some data about stuff to do, and I have some code running on the maya side to deal with them).
It works fine in Houdini if I inspect some of the attributes of the objects in the list with a Python Script TOP and have it print out to the terminal. But as soon as it hits the maya command chain portion, the log says
"Python object for attribute 'components' failed to deserialize"
. ('components' is the work item attribute name). Is there anything I need to include in my Python objects to get them to deserialize properly?Please excuse me if I haven't nailed all the terminology, I'm still getting started with PDG.
I searched the forums and couldn't really find a solution. Any insight would be greatly appreciated. Thanks!