Amazon VERSION 2.0V1 Podręcznik Użytkownika Strona 113

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 264
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 112
113
%s
</group_parameter>
""" % (GetTimingParameterXML(),)
which corresponds to the following UI in the Parameters tab.
We parse the XML description during our node's construction, with the following line of code:
self.getParameters().parseXML(_Parameter_XML)
Specifying UI Hints
In addition to describing the parameters' types, names, and default values, we can also describe how they are
displayed in the UI by specifying UI hints. For a complete tutorial on this subject, please see Help > Documentation
> Args Files.
The approach taken here is to create a dictionary where each key is the name of the parameter, and the value is
another dictionary containing the hints for this parameter. See below for a snippet illustrating this:
_ExtraHints = {
"MyCustomImporter.name" : {
"widget" :"newScenegraphLocation",
},
'MyCustomImporter.abcAsset':{
'widget':'assetIdInput',
'assetTypeTags':'geometry|alembic',
'fileTypes':'abc',
'help':"""Specify the ... an Alembic (.abc) file."""
}
}
15 WRAPPING SGG PLUG-INS IN A CUSTOM NODE | SPECIFYING UI HINTS
Przeglądanie stron 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 263 264

Komentarze do niniejszej Instrukcji

Brak uwag