cschnell 2 Posted July 18, 2017 Report Share Posted July 18, 2017 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
Mattias Lagergren 145 Posted July 19, 2017 Report Share Posted July 19, 2017 Hi and welcome to the forum! I suspect that the issue is that the shot is not yet committed. This is a current limitation, but does it work for you if you commit it using session.commit before listing the custom attributes? Link to post Share on other sites
cschnell 2 Posted July 21, 2017 Author Report Share Posted July 21, 2017 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 Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now