Maya PDG Service (pipeline) Sample

   1271   3   1
User Avatar
Member
420 posts
Joined: 6月 2018
Offline
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

Attachments:
pdgMayaServiceIssue.png (405.5 KB)

Jonas Sorgenfrei
FX/PIPELINE TD | RISE Visual Effects Studios
User Avatar
Member
420 posts
Joined: 6月 2018
Offline
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 ?
Jonas Sorgenfrei
FX/PIPELINE TD | RISE Visual Effects Studios
User Avatar
スタッフ
600 posts
Joined: 5月 2014
Offline
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.
User Avatar
Member
420 posts
Joined: 6月 2018
Offline
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!
Jonas Sorgenfrei
FX/PIPELINE TD | RISE Visual Effects Studios
  • Quick Links