Jump to content

Twin Structure & ResourceIdentifierTransformer class in library


YuChen

Recommended Posts

Hi,

I noticed that we have Structure & ResourceIdentifierTransformer class defined inside two modules and their methods' name are a bit different:

import ftrack_api.structure.Structure.base.Structure
import ftrack_api.resource_identifier_transformer.base.ResourceIdentifierTransformer

from ftrack import Structure
from ftrack import ResourceIdentifierTransformer

Some examples use first one to implement their custom structures & id transformers and others use another. Just wonder are they responsible for different scenarios ?

Link to comment
Share on other sites

  • 1 month later...

Hi @YuChen

ftrack_api refers to the latest ftrack python api, where ftrack refers to the legaci api which are deprecated by now (were supporting python2 only)
hence finding the same classes (namely) on both.

please use only :

import ftrack_api.structure.Structure.base.Structure
import ftrack_api.resource_identifier_transformer.base.ResourceIdentifierTransformer

if you have any code still using:

import ftrack

worth looking into updating it to new api as you are likely to start finding issues , like SSL connections and such.

hope it helps.
L.

Link to comment
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
×
×
  • Create New...