Hi,
maybe anyone can explain to me if this is a general Maya issue with the command line rendering or CGRU is causing this?
I have a Maya scene with referenced scenes. In the Reference Editor I had to set manually the paths to relative by using ../
Locally it works fine. All references will be loaded when the project is set.
But CGRU is causing this error:
Warning: line 1: Could not open file. : ../MOUNTAIN_FOR_MOVIE/scenes/Mountain_modelling_v006_no_lights.mb
Warning: line 1: Could not open file. : ../CHARACTER/scenes/Pilot_sitting_in_Plane_Ref_v009.mb
My suspicion is that CGRU needs to set the Maya project to an ACTIVE project. This could be the reason because the active project defines the path for a relative path.
Thanks,
Michael
Maya relative path issue with referencing
-
- Posts: 14
- Joined: Thu Mar 03, 2022 3:23 pm
Re: Maya relative path issue with referencing
I think that there is the lack of Maya users on this forum.
Better to ask on Maya special forums, how to render via command line and use relative path issue with referencing.
Then I can fix or tell you how to fix Afanasy submission for Maya.
Better to ask on Maya special forums, how to render via command line and use relative path issue with referencing.
Then I can fix or tell you how to fix Afanasy submission for Maya.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
-
- Posts: 14
- Joined: Thu Mar 03, 2022 3:23 pm
Re: Maya relative path issue with referencing
Hi Timur,
the solution is pretty simple: We need a field where we can set the "project path".
Then you need to add to the render.exe the command "-proj "project_path".
mayarender -proj "project_path" -r file -s 779 -e 779 -b 1 -cam "camera_name" -rd "output_path" "maya_scene.mb"
This will set the project and the relative paths will work in my test.
Cheers,
Michael
the solution is pretty simple: We need a field where we can set the "project path".
Then you need to add to the render.exe the command "-proj "project_path".
mayarender -proj "project_path" -r file -s 779 -e 779 -b 1 -cam "camera_name" -rd "output_path" "maya_scene.mb"
This will set the project and the relative paths will work in my test.
Cheers,
Michael
Re: Maya relative path issue with referencing
Hi Michael,
Submission script should find out the current project and append that argument to the command line.
Can you show your current command?
Can you execute
What is the output&
Submission script should find out the current project and append that argument to the command line.
Can you show your current command?
Can you execute
Code: Select all
import pymel.core as pm
print(pm.workspace(q=1, rootDirectory=1))
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).