Search - User list
Full Version: Python Script set filetag
Root » PDG/TOPs » Python Script set filetag
Matthew05
Hi,
I'm currently working on a Python Script which will render ass files using kick. I managed to get everything working, but as soon as I want to make a mosaic of these renders, the imagemagick is throwing an error: “There are no images found”. I guess this is coming from the python script which execute kick and doesn't have the proper tag.
So I tried to add this:
pdgcmd.reportResultData(“path/to/image” server_addr=“127.0.0.1” result_data_tag=“file/image”) but the python script is always failling.
If I remove this line, the node is correctly executed but I can't use imagemagick downstream

Thanks for the help
BrookeA
Hi there,

The pdgcmd module is for out-of-process jobs. Since you are running the Python script in-process, you can use this Python PDG API method:

work_item.addResultData("/home/images/test.jpg", "file/image", 0)

Here is the docs page with more information: https://www.sidefx.com/docs/houdini/tops/pdg/WorkItem.html [www.sidefx.com]
Matthew05
Hey Brandon,
Thanks for the help, it is now working.
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