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

Custom Output Paths - Possibly saving as a preference #171

Open
dmac-cloud opened this issue Aug 23, 2024 · 1 comment
Open

Custom Output Paths - Possibly saving as a preference #171

dmac-cloud opened this issue Aug 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dmac-cloud
Copy link

Use Case

Currently when submitting a job in Maya the output path in the submitter defaults to /path/scenes/images/. The issue is that /scenes/ is always auto inserted and it would be great if there is a way to change it so /scenes/ is not included, or able to be changed to something else.

Proposed Solution

Basically change the default as I might forget to update it on submission and when downloading the files from Deadline Cloud Monitor it is always in the /scenes/ folder first and not my chosen specified folder structure. This means that folder standards could become broken as files would be saved in various locations inadvertently

@epmog
Copy link
Contributor

epmog commented Aug 23, 2024

Thanks for filing an issue.

To clarify, we're talking about the output path (directory) and not the filename that's populated in the submitter? For the output path we're querying Maya for what's set up based on the workspace:

def output_path() -> str:
"""
Returns the path to the default output directory.
"""
# This one didn't work translated to the maya.cmds equivalent
image_rule = maya.mel.eval('workspace -q -fileRuleEntry "images"')
if image_rule:
return os.path.join(maya.cmds.workspace(query=True, directory=True), image_rule)
else:
return maya.cmds.workspace(query=True, directory=True)

As far as I know, this matches where the render would be written if the render were to be done locally through Maya. So if that isn't the location you want, you should be able to change the path in maya to affect the submitter's default values: https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=GUID-00A021CC-6540-4644-80E1-B72CC8D5C1F8

@crowecawcaw crowecawcaw added the enhancement New feature or request label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants