Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libSerialization] Support serialization of class with non-empty constructors #30

Open
renaudll opened this issue Dec 22, 2017 · 0 comments
Labels

Comments

@renaudll
Copy link
Owner

The following class won't work with libSerialization.

from omtk.vendor import libSerialization

class Test(object):
    def __init__(self, arg):
        self.arg = arg

t = Test()
net = libSerialization.export_network(t)
libSerialization.import_network(net)  # fail

This will produce this error:

# Error: TypeError: file <maya console> line 7: __init__() takes exactly 2 arguments (1 given) # 
@renaudll renaudll added the bug label Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant