Amazon VERSION 2.0V1 Guida Utente Pagina 119

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 264
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 118
119
The registered type class CameraModule() is also instantiated when the user selects the module from the menu.
The function setItemState is called, if it exists, which defines the item properties in the Importomatic list.
class CameraModule( ImportomaticAPI.AssetModule ):
def setItemState( self, node, item )
from Katana import UI4, VpCore
ScenegraphIconManager = UI4.Util.ScenegraphIconManager
IconManager = UI4.Util.IconManager
iconPath = os.path.dirname(__file__) + '/camera16. png'
item.setText( ImportomaticAPI.NAME_COLUMN, 'Camera' )
item.setText( ImportomaticAPI.TYPE_COLUMN, 'Camera' )
item.setIcon( ImportomaticAPI.NAME_COLUMN, IconManager.GetIcon( iconPath) )
item.setText( ImportomaticAPI.STATUS_COLUMN, 'Ready' )
16 CREATING NEW IMPORTOMATIC MODULES |
Vedere la pagina 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 263 264

Commenti su questo manuale

Nessun commento