Jump to content

Eder Agreda

  • Content Count

  • Joined

  • Last visited

About Eder Agreda

  • Rank

Profile Information

  • Gender

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Steve, Thanks for the answer. i forgot to answer before Yes, those paths are from my computer. I have this problem only with maya since its uses python 2.7. In windows I use latest python version and everything is ok. Will use disable_warnings() method Cheers,
  2. Hello guys, I am starting to work with latest ftrack version with maya and windows. When I use ftrack_api in windows, everything is ok, but, when inside Maya, I get results, but also, lot of warnings, and I wonder if there is a way to fix them. Any query to ftrack results in these errors..
  3. Hello. I am trying to create an event Listener that basically prevents people from moving assets inside ftrack. I found an example and tried to do it my self, but Iam getting some issues. the script is suscribed to 'topic=ftrack.update', and will always revert changes,but it seems the "revert function" also activates the listener, so it enters in an infinite loop. these are the functions used in my script. Any help would be very appreciated: def MoveAssetsBlock(session, event): reverted= False for entity in event['data'].get('entities', []):
  4. 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
  5. Hello. I want to know whether or not it is possible to create a ennumerator custom attribute and be able to edit it . The situation : I want to create a custom attribute called 'Character List' which will be a enumerator type. by default it won´t have any value, and anytime a shot is uploaded to ftrack , it would set the "Character List" custom attribute, with values we would provide. So far I found out about "CustomAttributeConfiguration" and saw there is config key which shows configuration for the custom attribute. But I don´t know if I could edit
  6. Yes, I have fo.session for not needing to write user, url and apikey everytime I need to test something. About the tasks, they are both in the same project, they were created the same day, the same way and they also shared the same parent. The only difference I could recall besides taskType is that shading("the one that works") has no bidding value while "model"(that one that doesn´t work does ). Greetings
  7. Hello. well I got an error again with another task.Its kind of wierd: I have a shot with 2 taks: model and shading.If I try to change custom attribute in shading It does it without issues but If I try in the model task I got an AssettionError: the Code I´m trying is: #task =session.query("Task where name is 'shading' and parent.name is 'condoChair' and parent.parent.name is 'props'").first() #this one works #task =session.query("Task where name is 'model' and parent.name is 'condoChair' and parent.parent.name is 'props'").first() # this one generates error
  8. Hello.Aparently It was an error with that entity.I tried in another one and It works fine. Thanks for the answer. Greetings!
  9. Hello. I got an issue I hope you could help me with. I have a task with 2 custom atributtes and I want to change one of these via a python script. According to documentation I have 2 options: task['custom_attributes']['my_text_field'] = 'foo' task['custom_attributes'] = { 'my_text_field': 'bar'} If I use the first one, it doesn´t update the info and if I use the second one, it works but generates a warning for the other custom atributte I am not setting To be precise: my task got 2 custom atributtes: lastVersion and retakes.I want to update lastVersion so I do
  10. I already fixed it. It was related to parenting. If I upload an asset via scripting or if I do it via ftrack-connect ;parenting is slightly differente, but that was all Thanks
  11. Hello, I found something weird and I would like some opinions: I have created many assets directly in my ftrack project web page, but also created some from Python Script. The issue is that if I query all assets from my Project using for example: assets = session.query("Asset where parent.name is '{0}'".format(parent["name"])) for asset in assets: print asset["name"] I get all the Assets but the ones created from Python Script. I know they exist. I can even see them in the web page since there are components. If I search for them using their names, I can actually find
  12. here it is: # :coding: utf-8 import logging import uuid import ftrack_api class checkShots(object): """Custom action""" label = "Check Shot(s)" identifier = 'com.ftrack.{0}'.format(str(uuid.uuid1())) description = "Let you populate shots" def __init__(self, self.session): '''Initialise action handler.''' self.logger = logging.getLogger( __name__ + '.' + self.__class__.__name__ ) self.session = session def register(self): '''Register action.''' self.session.event_hub.subscribe(
  13. Hello,so far I used legacy api to create some actions.Then using "FTRACK_EVENT_PLUGIN_PATH" I made them visible for all my team; but lately I've been reading about the new api and tried to create an action using it.I found a sort of example but I am having some trouble to make it work. Please look at this and tell me what is wrong or what is missing:
  • Create New...