Search the Community
Showing results for tags 'component'.
-
Hi, I am currently trying to automatically get web-playable movies when publishing the sequnces of frames. I'd like to discuss whether it's an optimal way of doing this and to ask some questions. I am registering for "ftrack.location.component-added" event, get the location and the component, check if a component's "system_type" is "sequence", ask the location to provide a file system path to frames, create a movie from these frames and fire up the "ftrack.connect.publish.make-web-playable" event providing the version id and the movie file path. The movie is generated fine, the
-
<ftrack_api.query.QueryResult object at 0x0000024562AC9CF8> # Error: ftrack_api.session.Session : Server reported error: ValueError(Cannot set relationship to string value.) # # Error: Server reported error: ValueError(Cannot set relationship to string value.) # Traceback (most recent call last): # File "<maya console>", line 1, in <module> # File "R:/Pipeline/configs/assetPipeline\assetAPI.py", line 430, in publishComponent # self.set_component(oVersion, filePath) # File "R:/Pipeline/configs/assetPipeline\assetAPI.py", line 420, in set_component #
-
Hi all, we need to add and get a component for a AssetVersion in the same session. Ex: unmanaged_location = session.query('Location where name is "ftrack.unmanaged"').one() version = session.query("AssetVersion where id is 87912656-5d89-11e6-a165-005056a76761").first() path = '/path/to/a/file' new_com_name = 'test_component' print len(version['components']) version.create_component( path, data={'name': new_com_name}, location=unmanaged_
-
Hi I am struggling to work out how to create a new AssetVersion in the new API. I think I have to do the following: Create an Asset -- parented to the shot Create an AssetVersion -- linking to the task and asset Create the Component. Unfortunately I'm getting an error, it seems to want a context_id on the Asset, but I don't know what to give it? I have the following code: location = session.query('Location where name is "ftrack.unmanaged"').first() task = session.query('Task where id is "d4564359-2944-49d4-93fa-b11909f19ff5"').first() shot = session.query
- 8 replies
-
- publishing
- asset
-
(and 4 more)
Tagged with:
-
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['na