Search - User list
Full Version: PDG global properties
Root » PDG/TOPs » PDG global properties
Jonathan de Blok
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!
Enivob
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?
tpetrick
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.
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