Jump to content

Search the Community

Showing results for tags 'component'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company news
    • General announcements
  • ftrack Studio (main app)
    • General discussion
    • Feature requests
    • API
    • Help
    • Actions and Widgets
    • ftrack Go
  • ftrack Review
    • General discussion
    • Feature requests
    • Help
  • Connect and Integrations
    • Releases
    • General discussion
    • Feature requests
    • Early Access Integrations & Connect
    • Help
  • Advisory Forum
  • Tech preview
    • API

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests

Found 2 results

  1. 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 event is published but nothing new is added to my version, the movie is not there. If I try to publish these frames together with this movie manually (by selecting the movie as web-playable in the ftrack connect), everything works as expected. Any suggestions? Thank you. Regards, Andriy
  2. <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 # self.session.commit() # File "R:/Pipeline/APIs/ftrackAPI\ftrack_api\session.py", line 1241, in commit # result = self._call(batch) # File "R:/Pipeline/APIs/ftrackAPI\ftrack_api\session.py", line 1620, in _call # raise ftrack_api.exception.ServerError(error_message) # ServerError: Server reported error: ValueError(Cannot set relationship to string value.) # MY CODE def set_component(self, asset_version, filePath): logger.info("Publishing Component %s ---------------------------------" % filePath) location = self.session.query('Location where name is "ftrack.unmanaged"').one() # This is important # location = self.session.query('Location where name is "{}"'.format("ftrack.unmanaged")).one() print asset_version print "FilePath: %s" % filePath print "Location: " print location ft_component = asset_version.create_component(path=filePath, location=location) self.session.commit() if ft_component: logger.info("Publishing Component Succesful %s ---------------------------------" % ft_component) return ft_component def publishComponent(self, sAsset, componentType, filePath, sTaskType="Rigging",iVersionNumber=1): oVersion = self.build_asset_version(sAsset, sTaskType,iVersionNumber) print oVersion.keys() if componentType in ["model", "rig"]: publishChecks.sanityChecks(componentType) self.set_component(oVersion, filePath) def build_asset_version(self, sAsset, sTaskType, version=0, note=''): '''Builds an AssetVersion, it takes an asset and a task as arguments"''' asset = self.getOAsset(sAsset,sTaskType) task = self.getOTask(sAsset,sTaskType) try: # ONLY HERE FOR DEV DELETE AFTERWARDS version_query = 'AssetVersion where task_id is "{}" and version is "{}" and asset.type.id is "{}"'.format( task['id'], int(version), asset['type']['id']) current_versions = self.session.query(version_query).one() if current_versions: # Deletes the old version ^^^^^^^ DEV ONLY ^^^^^^^^ self.session.delete(current_versions) self.session.commit() except: logger.info("Asset Version Creation Error %s ---------------------------------" % asset['name'])
×
×
  • Create New...