Jump to content

Search the Community

Showing results for tags 'location'.

  • 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 plugins
    • General discussion
    • Connect package releases
    • Feature requests
    • Help
  • Advisory Forum
  • Tech preview
    • API
    • Early Access Integrations

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 5 results

  1. Hi everyone, We have an issue trying to publish assets with maya2017 batch using ftrack-connect-0.7.6 & custom location (it worked with ftrack-connect-0.7.5). We started to dig and we noticed that the plugin is not selecting the custom location for publishing, even if it has the highest priority. Also, it's very strange that it works in maya for the same location. We printed out some information when location is selected by publisher (ftrack_connect/connector/base.py - pickLocation() method): We noticed that candidateLocation.accessor is not symbol.NOT_SET is different for the same location in maya and mayabatch: False in mayabatch and True in maya. Is there anything we need to set up for our custom location ? Also the list of locations is different in maya compared with what we get in mayabatch: Any suggestions for debugging/fixing the issue are welcome! Thank you! Best, Laura
  2. Hey there again, its been a while since my last post.. We currently exploring, whats the best way to tell a project, thats all its files, components, asset versions are now stored somewhere else. The background for this is, that we want to be able to move a project after its creation. For this we could listen to "ftrack.api.session.configure-location" and configure a custom location. But how can access the storage scenario to setup new mount-points? Is it even possible to set the storage scenario via ftrack_api? thanks in advance Tim
  3. Hello, are there any resources/tutorials for new api location, structure, and resolver migration? I've been waiting for the new API roll out to finally tackle these, but I'm not finding enough resources on the dev portal to successfully migrate. I'm currently getting this error when my location tries to register: 2017-10-23 15:02:36,408 - ftrack_connect.ui.application.Application - ERROR - Error during login. ....... ...... ..... File "path\to\mb_plugins\hook\location\mb_firstborn_location.py", line 65, in register session.event_hub.subscribe( AttributeError: 'Registry' object has no attribute 'event_hub' My new location plugin is below. I'd also like to update my structure and resolver plugins (if that's possible yet). import os import sys import platform import ftrack_api import ftrack_api.entity.location import ftrack_api.accessor.disk def configure_locations(event): '''Configure locations for session.''' session = event['data']['session'] # Import custom structure plugin. RESOURCE_DIRECTORY = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..', 'resource') ) if RESOURCE_DIRECTORY not in sys.path: sys.path.append(RESOURCE_DIRECTORY) from pipeline_structures import structure_plugin # Location and prefix variables. studio = os.getenv('STUDIO').lower() site = os.getenv('SITE').lower() LOCATION = '{0}.{1}'.format(studio, site) # Get mount point. disk_name = session.query('Disk where name is "{0}"'.format(LOCATION)).one() platform_name = 'windows' if not platform.system().lower() == 'windows': platform_name = 'unix' disk_path = disk_name[platform_name] PREFIX = os.path.expandvars(disk_path) # Find location(s) and customise instances. #ftrack.ensureLocation(LOCATION) # I need an updated way to do this. I've noticed the session.ensure() method, is that it? location = session.query('Location where name is "studio.site"').one() #ftrack_api.mixin(location, ftrack_api.entity.location.UnmanagedLocationMixin) # Not sure what this does, do I need it? location.accessor = ftrack_api.accessor.disk.DiskAccessor(prefix=PREFIX) location.structure = structure_plugin.mbStructure() location.priority = 50 def register(session): '''Register plugin with *session*.''' session.event_hub.subscribe( 'topic=ftrack.api.session.configure-location', configure_locations )
  4. Hi all, I'd like to create a custom location structure, and am having a little trouble finding information on how to go about it. Essentially, I'm creating a list of assets within a project, and I'd like to flip the directory structure around so that the project directory is inside the asset directory on the filesystem. Ftrack stores the files like this by default: MyProject1/ MyAssetBuild1/ MyAssetBuild2/ MyAssetBuild3/ MyProject2/ MyAssetBuild1/ MyAssetBuild2/ MyAssetBuild3/ I want to do this: MyAssetBuild1/ MyProject1/ MyProject2/ MyAssetBuild2/ MyProject1/ MyProject2 MyAssetBuild3/ MyProject1/ MyProject2/ From this post it seems I can inherit from ftrack_api.structure.base.Structure, but I can't sort out from that post how to assemble my own directory structure. This post also seems to indicate that it's possible, but the location docs it points to doesn't describe exactly how to do it. Is what I'm asking for possible with the current API? If so, is there a doc or forum post that describes what to override in ftrack_api.structure.base.Structure? If I need to crack open the code and sort it out myself, I'm happy to, but I thought there might be some docs somewhere that I've overlooked. Thanks for any help! -- Lori
  5. eight

    Location Setup

    Hi, I've read the locations tutorial for the new API, but I still find it hard to understand. My goal was to simply show the correct path for a component in the web interface based on the platform the user is on. So the component is published with a relative path and based on whether the user is looking at the ftrack web interface from Windows, Mac, or Linux, the prefix would change to use the correct mount point for them. So something like: if platform == 'Windows': prefix = r'\\SHARED\jobs' elif platform == 'Mac': prefix = '/Volumes/jobs' elif platform == 'Linux': prefix = '/mnt/jobs' I can't figure out how to do this.
×
×
  • Create New...