Skip to content

Commit

Permalink
Match Load Shot LOP with recent changes of Load Asset LOP
Browse files Browse the repository at this point in the history
Co-authored-by: Mustafa Taher <[email protected]>
  • Loading branch information
BigRoy and MustafaJafar authored Jul 30, 2024
1 parent 053184b commit dda5482
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,13 @@
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "product_type"
label "Product Type"
type string
default { "usd" }
}
parm {
name "product_name"
label "Product"
type string
default { "usdShot" }
menureplace {
[ "products = hou.phm().get_available_products(kwargs['node'])" ]
[ "" ]
[ "result = []" ]
[ "for product in products:" ]
[ " result.append(product)" ]
[ " result.append(product)" ]
[ " " ]
[ "return result" ]
language python
}
parmtag { "script_action" "from ayon_houdini.api.hda_utils import select_product_name;select_product_name(kwargs['node'])" }
parmtag { "script_action_icon" "BUTTONS_reselect" }
parmtag { "script_callback" "hou.phm().set_to_latest_version(kwargs['node'])\nhou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ node = kwargs["node"]
hda_module = node.hdaModule()
hda_module.setup_flag_changed_callback(node)

node.parm("product_type").lock(True)
node.parm("file").lock(True)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ from ayon_houdini.api.hda_utils import (
on_representation_parms_changed,
setup_flag_changed_callback,
get_available_versions,
get_available_products,
select_product_name,
set_to_latest_version
)

0 comments on commit dda5482

Please sign in to comment.