parameters: (self, row, name)
docstring: Add a layer to the list of items.
docstring_summary: Add a layer to the list of items.
docstring_tokens: Add a layer to the list of items .
function: def insert(self, row, name):
          """Add a layer to the list of items."""
          if self.rootItem:
              self.beginInsertRows(QtCore.QModelIndex(), row, row)
              self.rootItem.insertChild(LayersItem(None, name, True, True), row)
              self.endInsertRows()
  
              # Update the Maya object
              self.updateCurrentNode()
function_tokens: def insert ( self , row , name ) : if self . rootItem : self . beginInsertRows ( QtCore . QModelIndex ( ) , row , row ) self . rootItem . insertChild ( LayersItem ( None , name , True , True ) , row ) self . endInsertRows ( ) # Update the Maya object self . updateCurrentNode ( )