Component/Version/Asset from path
1 1

4 posts in this topic

Hi there and Merry New Year!

Is there a utility method for returning a ftrack object from a path without going via session.query()? 

I saw the old api has a getShotFromPath method, but that doesn't seem to be working for me.... either due to our local setup, or some other reason beyond my understanding.

Thanks

p.

 

Share this post


Link to post
Share on other sites

Hi Patrick,

There is no convenience method for this in the new api but you should be able achieve the same by a naive:

session.query('TypedContext where name is foo and parent.name is bar and parent.parent.name is baz')

 

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