Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rez use powershell to render houdini will lost $HIP and $F #1764

Open
zclongpop123 opened this issue May 27, 2024 · 8 comments
Open

Rez use powershell to render houdini will lost $HIP and $F #1764

zclongpop123 opened this issue May 27, 2024 · 8 comments
Labels
bug os:windows Windows-specific

Comments

@zclongpop123
Copy link
Contributor

I used rez on deadline render, and command args has an output path with $HIP, rez will lost $HIP on render path.

Look at the -o in the log

Environment

  • OS Windows 10
  • Rez version 3.0.0
  • Rez python version 3.10.11

2024-05-27 17:38:37: 0: INFO: Executable: "C:\rez\3.0.0\Scripts\rez\rez.exe"

2024-05-27 17:38:37: 0: INFO: Argument: "C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\plugins\66504adc5e43bcd7b926ff81\hrender_dl.py" -f 3 3 1 -o "'$HIP/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.$F4.exr'" -d /obj/ropnet1/snow_interaction_02 -tempdir "C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\jobsData\66504adc5e43bcd7b926ff81\0_tempwkjBQ0" -arnoldAbortOnLicenseFail 1 "W:/projects/sngx/misc/users/jiangmingyao/Snow_interaction/B10.TEST.Snow_interaction.v003.hip"

2024-05-27 17:38:37: 0: INFO: Full Command: "C:\rez\3.0.0\Scripts\rez\rez.exe" env houdini-20.0.653 htoa-6.3.1.0 aces-1.2 -- hython "C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\plugins\66504adc5e43bcd7b926ff81\hrender_dl.py" -f 3 3 1 -o "'$HIP/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.$F4.exr'" -d /obj/ropnet1/snow_interaction_02 -tempdir "C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\jobsData\66504adc5e43bcd7b926ff81\0_tempwkjBQ0" -arnoldAbortOnLicenseFail 1 "W:/projects/sngx/misc/users/jiangmingyao/Snow_interaction/B10.TEST.Snow_interaction.v003.hip"

2024-05-27 17:38:47: 0: STDOUT: Detected Houdini version: (20, 0, 653)
2024-05-27 17:38:47: 0: STDOUT: ['C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\plugins\66504adc5e43bcd7b926ff81\hrender_dl.py', '-f', '3', '3', '1', '-o', "'/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02..exr'", '-d', '/obj/ropnet1/snow_interaction_02', '-tempdir', 'C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\jobsData\66504adc5e43bcd7b926ff81\0_tempwkjBQ0', '-arnoldAbortOnLicenseFail', '1', 'W:/projects/sngx/misc/users/jiangmingyao/Snow_interaction/B10.TEST.Snow_interaction.v003.hip']

@JeanChristopheMorinPerso JeanChristopheMorinPerso added the os:windows Windows-specific label Jun 22, 2024
@JeanChristopheMorinPerso
Copy link
Member

Hi @zclongpop123, can you tell us more about the problem please? I'm not too sure what you mean by "will lost $HIP and $F". Also, can you tell us which shell rez is configured to use (cmd, powershell, pwsh, etc)?

@zclongpop123
Copy link
Contributor Author

zclongpop123 commented Jun 26, 2024

OS Windows 10
Rez version 3.0.0
Rez python version 3.10.11

Powershell

"'$HIP/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.$F4.exr'"
->
"'/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02..exr'"

$HIP shuld be trans to /path/to/hip_file_folder
$F4 shuld be trans to 0001, 0002, .... 0999,

My render image path shuld be:

W:/projects/sngx/misc/users/jiangmingyao/Snow_interaction/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.0001.exr'"

but powershell can't push $HIP and $F4 in to houdini !

@zclongpop123
Copy link
Contributor Author

Full Command:
"C:\rez\3.0.0\Scripts\rez\rez.exe" env houdini-20.0.653 htoa-6.3.1.0 aces-1.2 -- hython "C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\plugins\66504adc5e43bcd7b926ff81\hrender_dl.py"
-f 3 3 1
-o "'$HIP/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.$F4.exr'"
-d /obj/ropnet1/snow_interaction_02
-tempdir "C:\ProgramData\Thinkbox\Deadline10\workers\farm-004\jobsData\66504adc5e43bcd7b926ff81\0_tempwkjBQ0"
-arnoldAbortOnLicenseFail 1
"W:/projects/sngx/misc/users/jiangmingyao/Snow_interaction/B10.TEST.Snow_interaction.v003.hip"

Expected Results:
Render image out to
'$HIP/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.$F4.exr'
->
W:/projects/sngx/misc/users/jiangmingyao/Snow_interaction/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.0001.exr

Current Results:
'$HIP/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02.$F4.exr'
->
/Render/Snow_interaction/TEST/snow_interaction_02/v002/snow_interaction_02..exr

@BryceGattis
Copy link
Contributor

@zclongpop123 Just to be clear, does running hython with the hrender_dl.py script correctly resolve $HIP and $F when rez is not used?

@zclongpop123
Copy link
Contributor Author

zclongpop123 commented Jul 9, 2024

Working well on rez and cmd, but Rez and powershell not working.

@BryceGattis
Copy link
Contributor

@zclongpop123 Feels like it could just be a PowerShell issue. Have you tried just rendering on the farm in PowerShell and without using rez? I know the "$" character is generally used in PowerShell to interact with variables, so maybe it's just PowerShell evaluating the "$HIP" variable and doesn't actually have anything to do with rez?

@zclongpop123
Copy link
Contributor Author

Yes,Powershell will kill $, but when we use rez and houdini ,how to make it normaly.

@BryceGattis
Copy link
Contributor

@zclongpop123 https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view=powershell-7.4

I'm no PowerShell expert, but it looks like PowerShell uses the backtick character as the escape character.

Can you try using the backtick character to escape the "$" character?

So you would pass `$HIP instead of $HIP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug os:windows Windows-specific
Projects
None yet
Development

No branches or pull requests

3 participants