Jump to content

link attribute contains full_name of project


Erik

Recommended Posts

When getting the link attribute of for example a task it contains the full name of the project.

I think in most cases it would make more sense to include the name aka project code instead. 

And if replacing it is not an option please include both. Like this we have to do an additional query just to get the project code.

Link to comment
Share on other sites

We use it as a indicator of where in the tree structure you are at the moment like.

'.'.join([foo.get('name') for foo in bar.get('link')])

gives for example Project.sequence.shot.task

With the old api we do it in a recursive function using getParent and the end result is

project.sequence.shot.task

 

This is for a project where the Project name is Project and the Project code is project

 

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...