-
Notifications
You must be signed in to change notification settings - Fork 129
Houdini: Switching context doesn't update variables #4035
Comments
Could you elaborate on this issue?
It's also good to note what the docs mention about
@antirotor So is this issue about updating JOB on Task change? |
I think this PR is related |
@BigRoy Some FactsHIPI saved Houdini file to desktop and published my job and Houdini addon oddly doesn't complain ?! JOBas we discussed before, Houdini addon doesn't manage
Quick tests:Launch Task in Houdini for the first timeHoudini addon succeed in open Houdini file in the correct directory but doesn't save the first file, so artist must use the workfile tool to save it. Also, Launch Task in Houdini, Switch contextFrom the opened Houdini session there are two possibilities open another workfilePython env vars may not be updated but hscript vars are there! and if I close and reopen the same file, I will find python vars values are the same as the hscript ones.
Save current workfile to another assetThe new workfile will hold the value of the old workfile So, How should we manage HIP and JOB at these cases ? |
Regarding the env vars instead of the hscript vars - I didn't even know they were also env vars and I'm not sure if there's a reason I should care about their values if there's no required use for them?
Correct, no hosts do this as far as I know. It can be non-trivial to enforce saving in a certain location unless you force it to be within the workdir. This could easily be a global validation plugin if needed.
Looking at your screenshot - this seems to only be the case for FYI, We've managed JOB outside of OpenPype and thus it is NEVER set to the initial HIP anyways. Then looking at your examples all works as expected HIP and HIPNAME update as expected, JOB is our custom var. If you're looking to sync JOB to HIP then I'd say you should instead just be using HIP. If you have a custom need for JOB at your studio - then set it to whatever your studio needs. I still don't see a reason for OpenPype itself to force something into JOB. |
IMO, This is more of template(folder structure related): Also it helps when we want to share files with outsource people who are not using OP* |
@BigRoy Thank you for helping me think differently.. Let's jump to the issue This how I imagine it : Regarding
|
The job setting that updates per context based on Project Settings sounds fine with me if studios can enter their own template for it in settings. It could even have a checkbox whether the callback runs on Context change or not. |
Bug
When switching context in Houdini, sometimes
$HIP
/$JOB
are not updated.[cuID:OP-4326]
The text was updated successfully, but these errors were encountered: