Python Script set filetag

   1920   2   0
User Avatar
Member
94 posts
Joined: 4月 2011
Offline
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

Attachments:
setup_v04.hip (1.6 MB)

User Avatar
スタッフ
387 posts
Joined: 8月 2017
Offline
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]
User Avatar
Member
94 posts
Joined: 4月 2011
Offline
Hey Brandon,
Thanks for the help, it is now working.
  • Quick Links