parameters: (self)
docstring: Updates property view's selected items to match the data model.
docstring_summary: Updates property view's selected items to match the data model.
docstring_tokens: Updates property view s selected items to match the data model .
function: def _updatePropertyViewSelection(self):
          """Updates property view's selected items to match the data model."""
  
          focusPrim = self._dataModel.selection.getFocusPrim()
          propTargets = self._dataModel.selection.getPropTargets()
          computedProps = self._dataModel.selection.getComputedPropPaths()
  
          selectedPrimPropNames = dict()
          selectedPrimPropNames.update({prop.GetName(): targets
              for prop, targets in propTargets.items()})
          selectedPrimPropNames.update({propName: set()
              for primPath, propName in computedProps})
  
          rootItem = self._ui.propertyView.invisibleRootItem()
  
          with self._propertyViewSelectionBlocker:
              for i in range(rootItem.childCount()):
                  item = rootItem.child(i)
                  propName = str(item.text(PropertyViewIndex.NAME))
                  if propName in selectedPrimPropNames:
                      item.setSelected(True)
                      # Select relationships and connections.
                      targets = {prop.GetPath()
                          for prop in selectedPrimPropNames[propName]}
                      for j in range(item.childCount()):
                          childItem = item.child(j)
                          targetPath = Sdf.Path(
                              str(childItem.text(PropertyViewIndex.NAME)))
                          if targetPath in targets:
                              childItem.setSelected(True)
                  else:
                      self._propertyViewDeselectItem(item)
function_tokens: def _updatePropertyViewSelection ( self ) : focusPrim = self . _dataModel . selection . getFocusPrim ( ) propTargets = self . _dataModel . selection . getPropTargets ( ) computedProps = self . _dataModel . selection . getComputedPropPaths ( ) selectedPrimPropNames = dict ( ) selectedPrimPropNames . update ( { prop . GetName ( ) : targets for prop , targets in propTargets . items ( ) } ) selectedPrimPropNames . update ( { propName : set ( ) for primPath , propName in computedProps } ) rootItem = self . _ui . propertyView . invisibleRootItem ( ) with self . _propertyViewSelectionBlocker : for i in range ( rootItem . childCount ( ) ) : item = rootItem . child ( i ) propName = str ( item . text ( PropertyViewIndex . NAME ) ) if propName in selectedPrimPropNames : item . setSelected ( True ) # Select relationships and connections. targets = { prop . GetPath ( ) for prop in selectedPrimPropNames [ propName ] } for j in range ( item . childCount ( ) ) : childItem = item . child ( j ) targetPath = Sdf . Path ( str ( childItem . text ( PropertyViewIndex . NAME ) ) ) if targetPath in targets : childItem . setSelected ( True ) else : self . _propertyViewDeselectItem ( item )