Skip to content

Proper --c and "--" syntax with rez env #98

@RafaelVillar

Description

@RafaelVillar

Hello!

Issue:

  • Commands issued after rez env x y z -- are stripped of quotation marks and can fail

You can see the command issued after the rez env is stripped of quotation marks and results in an error from the Maya render command.
image

Command supplied

rez env SEVEN-0.0.3 maya2018==2018.5.0 --exclude *.beta -- render -r arnold -ai:lve 2 -cam common_common_common_checkSetting_tooltest_v002_cam_modelCheck -s 1001 -e 1004 -b 1 -preRender "catch(preRenderHook); setAttr defaultRenderGlobals.putFrameBeforeExt 1; " -rd M:/hollywood/output M:/hollywood/projects/NINE/render_file.ma

Command executed after rez env

render -r arnold -ai:lve 2 -cam common_common_common_checkSetting_tooltest_v002_cam_modelCheck -s 1001 -e 1004 -b 1 -preRender catch(preRenderHook); setAttr defaultRenderGlobals.putFrameBeforeExt 1; -rd M:/hollywood/output M:/hollywood/projects/NINE/render_file.ma

But if you rez env x y z and issue the command manually, it is done it works.
image

This is perhaps more of an inquiry than an issue. But what is the correct syntax for a "complex" command such as this?

There is argument parsing done here but I think it is more a shell/sh/cmd issue, no?

Any advice would be appreciated on how to handle commands of this nature.

Actual production command with sensitive names omitted/replaced
rez env NINE-0.0.3 maya2018==2018.5.0 --exclude *.beta --time 1606913068 --paths "M:\common\users\rafael\packages;\\hollywood.local\Main\common\tools\packages\proj;\\hollywood.local\Main\common\tools\packages\app;\\hollywood.local\Main\common\tools\packages\td;\\hollywood.local\Main\common\tools\packages\int;\\hollywood.local\Main\common\tools\packages\ext;\\hollywood.local\Main\common\tools\packages\converted" -- render -r arnold -ai:lve 2 -cam common_common_common_checkSetting_tooltest_v002_cam_modelCheck -s 1001 -e 1004 -b 1 -preRender "catch(preRenderHook); setAttr defaultRenderGlobals.putFrameBeforeExt 1; " -preFrame "catch(preFrameHook); " -postLayer "catch(postLayerHook); " -postFrame "catch(postFrameHook); " -postRender "catch(postRenderHook); " -rd M:/hollywood/projects/NINE/tmp/maya_render/rafael/2020_1202_214812284000/output M:/hollywood/projects/NINE/tmp/maya_render/rafael/2020_1202_214812284000/chara_person_default_look_default-person_v074.ma

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions