def setPalette(self, palette):
        """
        Sets the palette for this node to the inputed palette.  If None is
        provided, then the scene's palette will be used for this node.
        
        :param      palette | <XNodePalette> || None
        """
        self._palette = XNodePalette(palette) if palette is not None else None
        self.setDirty()