-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve auto UI generation #9
Comments
I started to work on this and I am wondering if we agree this is the right place to put it...
Should look like this...
Thoughts? |
I think it looks nice and clean. |
So if you do this...
You will get a first tab named 'mynode' with param1 and param2 on it. Then a second tab named 'My Tab' with param3 and param4 on it. This is just Softimage PPG's default behavior I believe. Nothing in the SItoA code is deciding this. |
So I wanted to brainstorm about implementing this parameter disabling PPGLogic in mtd files. So I think we have to use the PutLogic method of the PPGLayout class... @sjannuz you defined some logic in the metadata file already for this. It exists on the parameter/attr... what was your initial design? Using PutLogic with a scripting language? Or some other dynamic way in C++? Right now since the PPGLogic exists on the entire PPGLayout and not on individual parameters I would need to collect all the |
Hi Steven. The metadata file contains more than what SItoA handles, simply because it was common to the other plugins (HtoA was the first fetching the logic from the mtd). Then I did not have the time to include it in SItoA, nor any exact plan about how to handle it in the code. |
@caron Could you create a PR with the just the tab-stuff and we save the disabling for later? |
I can once I return from vacationing next week. |
@sjannuz Thanks for the feedback. I want to be sure .mtd file made for SItoA works with other plugins and vice-versa. Is there any .mtd files from other plugins I can use to test? |
I think the .mtd files are pretty different across the different plugins but I guess you could try. |
Thanks, @JenusL but I don't see any |
Yeah the |
I just want to say, for traceability sake, that I extended the auto UI generation by adding support for |
I will make sure to work on top of #26 when supporting 'disabling metadata'. |
Auto UI generation is made for all native Arnold shaders by the help of a metadata file called
arnold_shaders.mtd
. Some features would be good do add to that auto generation:Tabs
Auto UI generation currently lacks the function to create Tabs.
This would come in handy if we want to implement ID AOVs #10
Disabling
The arnold_shaders.mtd has a lot of disable expressions like
soft.disable_when STRING "{ material != custom }"
but there's currently no support for it in the auto generation code.
This should also be implemented.
The text was updated successfully, but these errors were encountered: