Jump to content

Query list of Priorities


mitch.s

Recommended Posts

When creating sequences/shots/... through the api the default priority is 'Urgent'.

This is rather annoying. It would be nice if priority is set to 'None' by default.

 

Trying to work around this I had problems querying the List of Priorities.

Is there something similar like getShotStatuses, getTaskStatuses for Priorities?

       project = ftrack.getProject(projectName)
       sq = project.createSequence(Sq' + "%03d" % 20)  #Sq020
       sh.setPriority( ??? )
       sh = sq.createShot('Sh' + "%03d" % 10)          #Sh010
       sh.setPriority( ??? )

Link to comment
Share on other sites

Hey,

 

several things here.

 

The wrong priority is picked as default on everything except tasks. Fixed and will be in next minor.

Being able to query all priorities from api. Added to next minor release 2.0v2

 

You can update priority like this in the current version:

 

shot.setPriority(ftrack.Priority('None')) if there is one called None.

 

Thanks for letting us know. This should behave better in next version.

 

Cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...