Skip to content
Permalink
Browse files

Cleanup related to AOV ui.

  • Loading branch information...
captainhammy committed Jul 22, 2019
1 parent 2e753e6 commit 827f387afdc321638e6c94e3202a49678d498318
@@ -3,10 +3,13 @@
<interface name="aov_manager" label="AOV Manager" icon="PANETYPES_viewer_cop" help_url="">
<script><![CDATA[import ht.ui.aovs.widgets
def createInterface():
widget = ht.ui.aovs.widgets.AOVManagerWidget()
manager_widget = None
def onCreateInterface():
global manager_widget
manager_widget = ht.ui.aovs.widgets.AOVManagerWidget()
return widget
return manager_widget
]]></script>
<help><![CDATA[ ]]></help>
<includeInPaneTabMenu menu_position="600" create_separator="true"/>
@@ -52,7 +52,7 @@
range { 0 1 }
export none
parmtag { "button_icon" "PANETYPES_viewer_cop" }
parmtag { "script_callback" "import ht.ui.aovs.utils; ht.ui.aovs.utils.openAOVEditor(hou.pwd())" }
parmtag { "script_callback" "import ht.ui.aovs.utils; ht.ui.aovs.utils.open_aov_editor(hou.pwd())" }
parmtag { "script_callback_language" "python" }
}
}
@@ -197,7 +197,7 @@ def add_aov(self, aov):
self.aovs[aov.variable] = aov

if self.interface is not None:
self.interface.aovAddedSignal.emit(aov)
self.interface.aov_added_signal.emit(aov)

def add_aovs_to_ifd(self, wrangler, cam, now):
"""Add auto_aovs to the ifd.
@@ -270,7 +270,7 @@ def add_group(self, group):
self.groups[group.name] = group

if self.interface is not None:
self.interface.groupAddedSignal.emit(group)
self.interface.group_added_signal.emit(group)

def clear(self):
"""Clear all definitions.
@@ -350,7 +350,7 @@ def remove_aov(self, aov):
self.aovs.pop(aov.variable)

if self.interface is not None:
self.interface.aovRemovedSignal.emit(aov)
self.interface.aov_removed_signal.emit(aov)

def remove_group(self, group):
"""Remove the specified group from the manager.
@@ -364,7 +364,7 @@ def remove_group(self, group):
self.groups.pop(group.name)

if self.interface is not None:
self.interface.groupRemovedSignal.emit(group)
self.interface.group_removed_signal.emit(group)


class AOVFile(object):

0 comments on commit 827f387

Please sign in to comment.
You can’t perform that action at this time.