question

Malcolm Allan Kesson avatar image
Malcolm Allan Kesson asked

Grouping [attr name] into dropdown panels (mtd file)

SDK Version: Arnold-6.0.0.0

Is it possible when writing a .mtd file for a shader to include "hints" about how the shader parameters should be grouped into panels in Hypershade? For example, if I wanted the first three "attr" to be displayed in a panel named "color_selections" that is initially closed.


[attr frontColor]
maya.name STRING "frontColor"
maya.panel STRING "color_selections"

maya.panel.open BOOL false

[attr rearColor]

maya.name STRING "rearColor"

maya.panel STRING "color_selections"


[attr swap]

maya.name STRING "swap"

maya.panel STRING "color_selections"


My use of,

maya.panel

maya.panel.open

is fictional.


I have looked at all the .mtd descriptions of the factory Arnold nodes and I cannot see how HyperShade is directed to group their parameters.

shader
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered

That is handled by the attribute editor templates

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Malcolm Allan Kesson avatar image
Malcolm Allan Kesson answered

I will look for some examples. If I have a shader named "mkTest.so" and a mtd file named "mkTest.mtd" and they both in the directory pointed to by ARNOLD_PLUGIN_PATH would I put the template file named "mkTest.py" in that directory? Or do they go into another location.


For examples of attribute editor templates I am looking at the files in,

/Applications/Autodesk/Arnold/mtoa/2020/scripts/mtoa/ui/ae/

I assume these are attribute editor templates.

Is there any documentation about these files?


Many thanks for your very fast response.

Malcolm

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Malcolm Allan Kesson avatar image
Malcolm Allan Kesson answered

Stephen we (myself and my students) have got the templates working for Maya but not for Houdini. Is there a different way of doing it for Houdini?

Malcolm


10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.