Skip to content

Commit

Permalink
Merge branches 'enhancement/lop_load_shot' and 'enhancement/lop_load_…
Browse files Browse the repository at this point in the history
…shot' of https://github.com/BigRoy/ayon-houdini into enhancement/lop_load_shot
  • Loading branch information
BigRoy committed Jul 30, 2024
2 parents 27b5996 + dda5482 commit 50c1083
Show file tree
Hide file tree
Showing 5 changed files with 24 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
)
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
{
"AYON_icon.png/Cursor":{
"type":"intarray",
"value":[0,0]
},
"AYON_icon.png/IsExpr":{
"type":"bool",
"value":false
},
"AYON_icon.png/IsPython":{
"type":"bool",
"value":false
},
"AYON_icon.png/IsScript":{
"type":"bool",
"value":false
},
"AYON_icon.png/Source":{
"type":"string",
"value":"AYON_icon.png"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Help Help
Tools.shelf Tools.shelf
IconImage IconImage
ExtraFileOptions ExtraFileOptions
AYON__icon.png AYON_icon.png

0 comments on commit 50c1083

Please sign in to comment.