cschnell 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 comment Share on other sites More sharing options...
Mattias Lagergren 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 comment Share on other sites More sharing options...
cschnell 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 comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.