user data: ___toolcount___ and ___toolid___

   1655   1   0
User Avatar
Member
1694 posts
Joined: March 2020
Offline
Hi,


I want to implement proper Houdini-conformant behaviour for my tools, so if my tool creates a new operator, I want the user data to reflect that (so if the user cycles through node name displays using the “N” key, instead of “Manually Created”, the name of my tool would be displayed).

So far I figured out that the “___toolid___” and “___toolcount___” user data are used for this. The “toolid” is self-explanatory, but I'm not sure what does the “toolcount” represent. Anyone care to give a hint?

cheers,
imre
Imre Tuske
FX Supervisor | Senior FXTD @ Weta FX

qLib -- Houdini asset library
http://qlab.github.io/qLib/ [qlab.github.io]
https://www.facebook.com/qLibHoudini [www.facebook.com]
User Avatar
Member
7725 posts
Joined: July 2005
Online
That information is automatically updated every time hou.Node.createNode() is called from a viewport shelf tool. toolcount is incremented on every invocation of the viewport shelf tool.
  • Quick Links