PDG global properties

   1563   2   1
User Avatar
Member
253 posts
Joined: 7月 2013
Offline
Is there such a thing as a global attribute that's shared between workitems?

I got a very large piece of json that each workitem needs to get things from. With the current setup the entire json is copied to each workitem which is a bit of a waste of memory... but worse inspecting a workitem's properties takes more then a few seconds to open because it's trying to display this large json object in the popup.

I could make an hda the loads the json and have the pdg python processor access the json from the hda's script module.

But something similar to sop's detail attribute for pdg streams would be cool to have!
Edited by Jonathan de Blok - 2021年7月30日 06:12:42
More code, less clicks.
User Avatar
Member
2537 posts
Joined: 6月 2008
Offline
Darn, I was hoping this post might contain a list of all the PDG attributes that are available.
For instance I learned there is @workindex and @pdg_index. Where are these defined? How many more are there?
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
スタッフ
586 posts
Joined: 5月 2014
Offline
All built-ins begin with the pdg_ prefix, for example @pdg_index or @pdg_frame. The list of built-in attributes are specified here in the docs: https://www.sidefx.com/docs/houdini/tops/attributes.html#builtin [www.sidefx.com]
Additionally, each individual node doc has a section that specifies the attributes added to work items by that node. For example, the ROP Fetch: https://www.sidefx.com/docs/houdini/nodes/top/ropfetch.html [www.sidefx.com]

As for global attributes, there isn't anything quite like that right now but it sounds like a good RFE.
  • Quick Links