accessing custom attributes which are only defined in project
2 2

3 posts in this topic

Hi,

I have defined some custom attributes for a specific project, but with the python_api, only the "all-project" attributes are available.

e.g.

shot = session.create("Shot", {"name":"Foo", "parent":sequence......})

print shot["custom_attributes"].keys()

gives me only the attributes marked for "all projects".

If I make my  attribute available for all projects, everything is working fine and my attribute is also listed.

I do not want to hold all attributes global, so how can I access the attributes which are only defined in a specific project?

 

Thanks for your help

Share this post


Link to post
Share on other sites

Hi!

Thank you very much. Once committed, the custom attributes are available.

So, I can take this limitation into account and everything works fine for me now.

Thank you very much for your quick help!!

Best

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2