Taylor Petrick

tpetrick

About Me

Connect

LOCATION
Canada
WEBSITE

Houdini Skills

Availability

Not Specified

My Tutorials

obj-image Intermediate
PDG Partitioner Nodes
obj-image Quick Tips
Work Item Attributes

Recent Forum Posts

How to access current cook value of an attribute in Python? April 26, 2024, 11:06 a.m.

You can access the active work item using pdg.WorkItem() in a Python Expression, and use that to look up the index, attribute values, etc. There's an example in the documentation for the PDG Python module: https://www.sidefx.com/docs/houdini/tops/pdg/index.html#functions [www.sidefx.com]

The next release also has a top-level pdg.attrib(..) function that mirrors the HScript equivalent.

Bake Texture and TOP, no output April 17, 2024, 1:20 p.m.

PDG can't parse the special path tokens used by the bake texture node when determining expected outputs for the work item. If your bake texture output path has tokens like %(CHANNEL) or %(UDIM) then there's going to be a mis-match between the expected files on the work item, and the output files actually produced when the ROP cooks. That'll cause the message you're seeing -- it's a warning though, not an error. It just means that caching won't work because PDG can't tell what the outputs are ahead of time before it cooks the ROP.

When you say the file is created and then deleted, do you mean the texture file on disk itself is deleted?

Maya PDG Service (pipeline) Sample April 16, 2024, 5:46 p.m.

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.