Jump to content

uploading an image and setting components


Eder Agreda

Recommended Posts

Hello .  I am working in a script that will let me  upload images to ftrack.server location .Then I set its thumbnail.For this I do this:

modelcomponent = # file uploaded to ftrack

version = model_component['version']
version['thumbnail_id'] = model_component['id']
fo.session.commit()

It works finel.Image goes to ftrack and its thumbnail appears with no issues. But I realized there is no  FtrackReviewcomponent. I found and example and add this to my script:

model_component['metadata']['ftr_meta'] = json.dumps({
                'format': 'image'})
model_component['name'] = 'ftrackreview-image'

With this I get the FtrackReview component, but I lose the file component.I can´t see the url to the image anymore.

 

ftrack.JPG

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...