Skip to content

Instantly share code, notes, and snippets.

@anshultiwari1
Last active June 27, 2016 10:55
Show Gist options
  • Save anshultiwari1/8f76e885841297c3beca to your computer and use it in GitHub Desktop.
Save anshultiwari1/8f76e885841297c3beca to your computer and use it in GitHub Desktop.
tool to transfer jobs from one(local) tractor farm to other (away) tractor farm
## tool to transfer jobs from one (local) tractor farm to other (away) tractor farm
## either directly using .alf file, maya file and user, in that order.
#!/bin/sh
maya -batch -file "$2" -command 'python "import pymel.core as pm; import sys, os; sys.path.append(\"/nas/projects/development/productionTools\"); from py_queue.sync import find_scene_deps; bin = \"/nas/projects/development/productionTools/py_queue/bin/submit_to_queue.py\"; import uuid; uuid_num = uuid.uuid4(); scene_name = pm.sceneName(); (file_path, _) = find_scene_deps.gen2(scene_name); (f1, _) = os.path.basename(scene_name).split(\".\"); print bin, \"SYNC_RENDER\", file_path, \"'"$3"'\", \"'"$1"'\", uuid_num, \"50\", \"'"$2"'\", \"%s_%s\" % (f1, uuid_num) "'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment