def export_preset(self, *args):
        ans, name = api.doPrompt(t="volume preset name", m="enter a name for the volume preset", db=api.OK)
        if ans != api.OK:
            return

        selected = cmd.ls(sl=True)
        visManager.exportPreset(name, selected[0])

        # now delete the vis volumes
        cmd.delete(selected[0])
    def export_preset(self, *args):
        ans, name = api.doPrompt(t="volume preset name",
                                 m="enter a name for the volume preset",
                                 db=api.OK)
        if ans != api.OK:
            return

        selected = cmd.ls(sl=True)
        visManager.exportPreset(name, selected[0])

        #now delete the vis volumes
        cmd.delete(selected[0])
示例#3
0
	def rename( self, *args ):
		'''
		performs the prompting and renaming of presets
		'''
		selected = self.selected()[0]
		ans, newName = api.doPrompt(m='new name', tx=selected.name())
		if ans != api.OK:
			return

		if not newName.endswith('.'+ self.ext):
			newName += '.'+ self.ext

		renamedPreset = selected.rename( newName )
		self.updateList()
		self.sendEvent( 'presetRenamed', selected, renamedPreset )
示例#4
0
    def rename(self, *args):
        '''
		performs the prompting and renaming of presets
		'''
        selected = self.selected()[0]
        ans, newName = api.doPrompt(m='new name', tx=selected.name())
        if ans != api.OK:
            return

        if not newName.endswith('.' + self.ext):
            newName += '.' + self.ext

        renamedPreset = selected.rename(newName)
        self.updateList()
        self.sendEvent('presetRenamed', selected, renamedPreset)
示例#5
0
    def rename(self, *args):
        '''
		performs the prompting and renaming of presets
		'''
        selected = self.selected()[0]
        ans, newName = api.doPrompt(m='new name', tx=selected.name())
        if ans != api.OK:
            return

        if not newName.endswith('.' + self.ext):
            newName += '.' + self.ext

        selected.rename(newName)
        self.updateList()
        if self.locale == GLOBAL:
            self.promptForSubmit([selected])
	def rename( self, *args ):
		'''
		performs the prompting and renaming of presets
		'''
		selected = self.selected()[0]
		ans, newName = api.doPrompt(m='new name', tx=selected.name())
		if ans != api.OK:
			return

		if not newName.endswith('.'+ self.ext):
			newName += '.'+ self.ext

		selected.rename(newName)
		self.updateList()
		if self.locale == GLOBAL:
			self.promptForSubmit([selected])