1

find project name from shot id

Hi all,

I'm trying to find the syntax to return the project name/id that a shot is a part of.

So I have a shot that has an id of 3482 and Id like to write a query to return the project that this that is in.

eg:

cur_shot_id = 3482

project = sg.find('Project',[['id','contains',cur_shot_id]])

print project['name']

Is totally off the mark?

Thanks for any help

Steve

 

 

1 条评论

  • 0
    Avatar
    steve

    Thanks Tony

    :)

     

请先登录再写评论。