Jump to content
Sign in to follow this  
JJ FX

HDA: current displayed folder

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×