def initFromAOV(self, aov): """Initialize the dialog from an AOV.""" self.variable_name.setText(aov.variable) self.type_box.setCurrentIndex(utils.getVexTypeMenuIndex(aov.vextype)) if aov.channel: self.channel_name.setText(aov.channel) if aov.quantize is not None: self.quantize_box.setCurrentIndex(utils.getQuantizeMenuIndex(aov.quantize)) if aov.sfilter is not None: self.sfilter_box.setCurrentIndex(utils.getSFilterMenuIndex(aov.sfilter)) if aov.pfilter: self.pfilter_widget.set(aov.pfilter) if aov.componentexport: self.componentexport.setChecked(True) if aov.components: self.components.setText(" ".join(aov.components)) if aov.priority != -1: self.priority.setValue(aov.priority) if aov.intrinsic: self.intrinsic.setText(aov.intrinsic) if aov.comment: self.comment.setText(aov.comment) self.file_widget.setPath(aov.path)