Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hou,os
- import PrismInit as prism
- def prismjob(arg):
- import PrismInit as prism
- try:
- pathjob=prism.pcore.projectPath.replace("\\", "/")
- if pathjob.endswith("/"):
- pathjob = pathjob[:-1]
- scena=hou.getenv('HIPFILE')
- if arg==1:
- if pathjob is not None and pathjob in scena:
- hou.putenv('JOB',pathjob)
- hou.hscript("job "+pathjob)
- hou.hscript("varchange JOB")
- else:
- if pathjob is not None:
- hou.putenv('JOB',pathjob)
- hou.hscript("job "+pathjob)
- hou.hscript("varchange JOB")
- hou.allowEnvironmentToOverwriteVariable("JOB", True)
- return pathjob
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement