Get a project custom_attribute value?
2 2

4 posts in this topic

I want to get the value from a custom_attribute that is added to project, that I think is not a type either a object...

My attempt is this:
 

def get(self, project_id):
	result = {
		'extra_info': {
			'legend': {},
    },

	custom_attrs = self.session.query(
		'select config from CustomAttributeConfiguration where key is "{0}"'
    ).one()

	legend = custom_attrs['custom_attributes']['project_legend']
    result['extra_info']['legend'] = legend

 

There is possible do a query for name instead key for custom attributes?

 

 

Share this post


Link to post
Share on other sites

I have a code already given which is getting some data from FTrack. This data are custom attributes added to types and objects in the project. 

I triying to get the value from a custom attribute added to project (root level of the project), replicating the code, but not works. 

Query that I have seems is defined for get types and objects.

From Ftrack api documentation I don't able to get the value of custom attribute.

 

 

Share this post


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
2 2