Jump to content

HDA: current displayed folder


JJ FX

Recommended Posts

Hi,

So I though about some cool feature that I could maybe utilize. For example the tool has 3 different folder tabs. Each is for different property of a tool. For example the first one is fior curves, the second for primitives and the next one... i dunno, maybe shader.

Can I somehow detect which folder is currently selected (assuming they are of Tabs type) so I can connect the switch sop to the output?

This way if you pick Curves Tab you can already see the curves you are working on, and so on, and so on. Ofcourse this might screw up the pipeline when someone leaves the hda on a wrong tab, but.... Is it possible?

Link to comment
Share on other sites

You can do this with a ch('') call to the folder name. The trick is you have to add 1 to the end of the folder name to access it, which is probably a bug.

For example if you had folders named 'test' on a node you could just do `ch('../test1')` to get the number of the tab that the ui is on.

You might want to make the folders radio buttons to make it clear to the user that what tab they are on matters, but I don't think you strictly HAVE to.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...