Skip to content

Commit

Permalink
show parm panel when using FilePathLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Oct 30, 2024
1 parent 7a1ed8d commit 5ed1357
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/ayon_houdini/plugins/load/load_filepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
plugin
)
from ayon_houdini.api.pipeline import get_or_create_avalon_container
from ayon_houdini.api.lib import show_generic_loader_parmpanel


class FilePathLoader(plugin.HoudiniLoader):
Expand Down Expand Up @@ -39,6 +40,9 @@ def load(self, context, name=None, namespace=None, data=None):
parm.set(context["representation"]["id"])
parm.pressButton() # trigger callbacks

# Show Parm panel of the node
show_generic_loader_parmpanel(node)

def update(self, container, context):

# First we handle backwards compatibility where this loader still
Expand All @@ -54,6 +58,9 @@ def update(self, container, context):
parm.set(context["representation"]["id"])
parm.pressButton() # trigger callbacks

# Show Parm panel of the node
show_generic_loader_parmpanel(node)

def switch(self, container, context):
self.update(container, context)

Expand Down

0 comments on commit 5ed1357

Please sign in to comment.