Search - User list
Full Version: Maya PDG Service (pipeline) Sample
Root » PDG/TOPs » Maya PDG Service (pipeline) Sample
JonasSorgenfrei
Hey

i'm running into a problem with the PDG service example:
$HH/help/files/pdg_examples/top_mayapipeline/mayapipeline.hip

Does anyone has an idea what could be the issue here?

I tested it with maya 2022 and maya 2024.

Getting the issue:
[16:38:37.646] ERROR: Failed with:
Traceback (most recent call last):
  File "C:\Users\Jonas\AppData\Local\Temp\houdini_temp\mayapipeline\pdgtemp\scripts\genericrpc.py", line 290, in _exec_script
    exec(compiled_block, l_dict, l_dict)
  File "<string>", line 6, in <module>
RuntimeError: Unsaved changes.


[16:38:37.646] ERROR: Task callback onCookTask failed

The issue might be because of running maya with an education version, but this has worked before tho.

Cheers
Jonas
JonasSorgenfrei
Another thing, when i change the Server Type from Shared Server (deprecated) to Service i get the issue
cmd command not found.

Does anyone has an working example of services with maya ?
tpetrick
The exception itself is coming from Maya. It looks like the API has change slightly in the last few versions. You should be able to replace the last two lines of the script with:

cmds.file( file_to_load.path, open=True, force=True)

instead of:

cmds.file( new=True, force=True)
cmds.file( file_to_load.path, o=True )

JonasSorgenfrei
Another thing, when i change the Server Type from Shared Server (deprecated) to Service i get the issue
cmd command not found.

Does anyone has an working example of services with maya ?

Current PDG does not support running Maya as a service out of the box, although the plan is to have that finished for H20.5. It would technically be possible to write your own custom Maya-based service and use it with the block in H20, which is why the option is still available on the block.
JonasSorgenfrei
Thank you very much for your answer.

tpetrick
You should be able to replace the last two lines of the script with
Yeah that did the trick!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB