Amazon VERSION 2.0V1 Guide de l'utilisateur Page 113

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 263 264

Commentaires sur ces manuels

Pas de commentaire