Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import hou,os
  2. import PrismInit as prism
  3. def prismjob(arg):
  4. import PrismInit as prism
  5. try:
  6. pathjob=prism.pcore.projectPath.replace("\\", "/")
  7. if pathjob.endswith("/"):
  8. pathjob = pathjob[:-1]
  9. scena=hou.getenv('HIPFILE')
  10. if arg==1:
  11. if pathjob is not None and pathjob in scena:
  12. hou.putenv('JOB',pathjob)
  13. hou.hscript("job "+pathjob)
  14. hou.hscript("varchange JOB")
  15. else:
  16. if pathjob is not None:
  17. hou.putenv('JOB',pathjob)
  18. hou.hscript("job "+pathjob)
  19. hou.hscript("varchange JOB")
  20. hou.allowEnvironmentToOverwriteVariable("JOB", True)
  21. return pathjob
  22. except:
  23. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement