Jump to content

accessing custom attributes which are only defined in project


Recommended Posts

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

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
×
×
  • Create New...