Jump to content

AssetBuild Custom Attributes


ionav

Recommended Posts

Hey,

Thanks for getting back to me.  My apologies, there 100% is a typo there. That's what I get for trying to make a minimal example quickly. 

 

The initial problem I was hitting is that when I try and set custom attributes on an asset build, I get the error: "'Custom attributes must be creted explicitly for the given entity type before being set.'"

 

ab["custom_attributes"]['category'] = category

 

I have scripts that have successfully set attributes this way in the past,  hence wondering if something had changed.

Thanks

Link to comment
Share on other sites

Thanks for following up.

For future reference, the server version 3.5 requires ftrack-python-api 1.0.4 or higher. Version 1.0.3 will be unable to use custom attributes properly (what ionav experienced) and versions prior to 1.0.3 will fail to initialise the session with a ServerCompatibilityError. For more information, see the migration notes.

We are still polishing a few things before we will start to roll out ftrack 3.5 to hosted sites and will be in contact before then.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...