mitch.s Posted October 17, 2013 Report Posted October 17, 2013 How do you use custom attributes with the API ? Create/Delete/Edit, Get/Set, formulas, ... We could work with metadata but it would be nice to use custom attributes in some cases. I tried using the private functions but it doesn't work (as expected) :Attribute with name 'anAttr' was created using the FTrack UIsh.attributes.__getattr__('anAttr')AttributeError: 'NoneType' object has no attribute '__getattr__'sh.attributes__setattr__('anAttr','POOO')AttributeError: 'NoneType' object has no attribute 'anAttr'
Björn Rydahl Posted October 18, 2013 Report Posted October 18, 2013 You use them in the same way as regular attributes. If you have a custom attribute, use its name from the api. For example and attribute named fps. project.get('fps') or project.set('fps',25) You wont see the custom attributes when you print the object because they are fetched on demand. Cheers
bryand Posted April 29, 2014 Report Posted April 29, 2014 Is it possible to create custom attributes using the API? eg. If I had a enumeration custom attribute and I would like to add more options for the user to select.
Mattias Seebergs Posted April 30, 2014 Report Posted April 30, 2014 Hi Bryan, No unfortunately not at the moment. I have added a feature request ticket to our backlog though to let us discuss this. Cheers
Recommended Posts
Archived
This topic is now archived and is closed to further replies.