Swap ayon_lop_import.hda with expanded otl

This is done via `hotl` executable that comes with Houdini using the `-t` flag.
Also see: https://github.com/ynput/ayon-core/issues/591#issuecomment-2147410097
This commit is contained in:
Roy Nieterau 2024-06-06 01:10:20 +02:00
parent 370974ba5b
commit 8aee5f120f
25 changed files with 989 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Operator: ayon::lop_import::1.0
Label: Load Asset
Path: oplib:/ayon::Lop/lop_import::1.0?ayon::Lop/lop_import::1.0
Icon: opdef:/ayon::Lop/lop_import::1.0?IconImage
Table: Lop
License:
Extra:
User:
Inputs: 0 to 1
Subnet: true
Python: false
Empty: false
Modified: Mon Jun 3 23:54:46 2024

View file

@ -0,0 +1,4 @@
""
INDEX__SECTION INDEX_SECTION
houdini.hdalibrary houdini.hdalibrary
ayon_8_8Lop_1lop__import_8_81.0 ayon::Lop/lop_import::1.0

View file

@ -0,0 +1,6 @@
{
"hdaroot/warn_no_representation_set.def":1708980551,
"hdaroot/reference.def":1698150558,
"hdaroot/output0.def":1698215383,
"hdaroot.def":1717451587
}

View file

@ -0,0 +1,9 @@
{
"values":["20.0.703"
],
"indexes":{
"hdaroot/warn_no_representation_set.userdata":0,
"hdaroot/reference.userdata":0,
"hdaroot/output0.userdata":0
}
}

View file

@ -0,0 +1,384 @@
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY"
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="node_type"
Content-Type: text/plain
Lop
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.init"
Content-Type: text/plain
type = ayon::lop_import::1.0
matchesdef = 0
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.def"
Content-Type: text/plain
comment ""
position -8.53722 4.22263
connectornextid 0
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on debug off
outputsNamed3
{
}
inputsNamed3
{
}
inputs
{
}
stat
{
create -1
modify -1
author User@HP-Z820-03
access 0777
}
color UT_Color RGB 0.8 0.8 0.8
delscript ""
exprlanguage hscript
end
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.userdata"
Content-Type: text/plain
{
"___Version___":{
"type":"string",
"value":""
},
"wirestyle":{
"type":"string",
"value":"rounded"
}
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.inp"
Content-Type: text/plain
1
0 -1.3044269152357999 6.2635205889365251 2 0 __NO_OWNER_NETWORK_BOX__ "FROMOUTPUT"
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/output0.init"
Content-Type: text/plain
type = output
matchesdef = 1
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/output0.def"
Content-Type: text/plain
comment ""
position -1.13898e-08 2.03328
connectornextid 1
flags = lock off model off template off footprint off xray off bypass off display off render on highlight off unload off savedata off compress on colordefault on exposed on debug off
outputsNamed3
{
}
inputsNamed3
{
0 reference 0 1 "input1"
}
inputs
{
0 reference 0 1
}
stat
{
create -1
modify -1
author Maqina-05@Maqina-05
access 0777
}
color UT_Color RGB 0.8 0.8 0.8
delscript ""
exprlanguage hscript
end
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/output0.parm"
Content-Type: text/plain
{
version 0.8
outputidx [ 0 locks=0 ] ( 0 )
modifiedprims [ 0 locks=0 ] ( "`lopinputprims(\".\", 0)`" )
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/output0.userdata"
Content-Type: text/plain
{
"___Version___":{
"type":"string",
"value":"___EXTERNAL___"
}
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/reference.init"
Content-Type: text/plain
type = reference::2.0
matchesdef = 1
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/reference.def"
Content-Type: text/plain
comment ""
position -0.00125004 4.19692
connectornextid 2
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on debug off
outputsNamed3
{
0 "output1"
}
inputsNamed3
{
1 warn_no_representation_set 1 1 "input1"
}
inputs
{
0 warn_no_representation_set 0 1
}
stat
{
create -1
modify -1
author Maqina-05@Maqina-05
access 0777
}
color UT_Color RGB 0.8 0.8 0.8
delscript ""
exprlanguage hscript
end
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/reference.editableinputdata"
Content-Type: text/plain
[
{
}
]
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/reference.chn"
Content-Type: text/plain
{
channel primpath1 {
lefttype = extend
righttype = extend
defaultString = \"/character\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../primpath1\") }
}
channel reftype1 {
lefttype = extend
righttype = extend
defaultString = \"file\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../reftype1\") }
}
channel instanceable1 {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../instanceable1\") }
}
channel filerefprim1 {
lefttype = extend
righttype = extend
defaultString = \"automaticPrim\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../filerefprim1\") }
}
channel filerefprimpath1 {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../filerefprimpath1\") }
}
channel timeoffset1 {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../timeoffset1\") }
}
channel timescale1 {
lefttype = extend
righttype = extend
default = 1
flags = 0
start = 40
segment { length = 0 value = 1 1 expr = ch(\"../timescale1\") }
}
channel reload {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../reload\") }
}
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/reference.parm"
Content-Type: text/plain
{
version 0.8
main_switcher [ 0 locks=0 ] ( 0 0 0 )
enable [ 0 locks=0 ] ( "on" )
input_group [ 0 locks=0 ] ( 0 )
primpath [ 0 locks=0 ] ( /`@sourcename` )
createprims [ 0 locks=0 ] ( "on" )
primcount [ 0 locks=0 ] ( 1 )
reftype [ 0 locks=0 ] ( file )
instanceable [ 0 locks=0 ] ( "off" )
refprim [ 0 locks=0 ] ( automaticPrim )
refprimpath [ 0 locks=0 ] ( automaticPrim )
files_group [ 0 locks=0 ] ( 1 )
num_files [ 0 locks=0 ] ( 1 )
reload [ 0 locks=0 ] ( [ reload 0 ] )
primkind [ 0 locks=0 ] ( "" )
parentprimtype [ 0 locks=0 ] ( UsdGeomXform )
handlemissingfiles [ 0 locks=0 ] ( error )
preop [ 0 locks=0 ] ( none )
refeditop [ 0 locks=0 ] ( prependfront )
enable1 [ 0 locks=0 ] ( "on" )
parameterorder1 [ 0 locks=0 ] ( "filefirst" )
createprims1 [ 0 locks=0 ] ( "on" )
primpath1 [ 0 locks=0 ] ( [ primpath1 /`@sourcename` ] )
primcount1 [ 0 locks=0 ] ( 1 )
reftype1 [ 0 locks=0 ] ( [ reftype1 file ] )
instanceable1 [ 0 locks=0 ] ( [ instanceable1 0 ] )
filepath1 [ 0 locks=0 ] ( `chs(\"../file\")` )
filerefprim1 [ 0 locks=0 ] ( [ filerefprim1 automaticPrim ] )
filerefprimpath1 [ 0 locks=0 ] ( [ filerefprimpath1 "" ] )
timeoffset1 [ 0 locks=0 ] ( [ timeoffset1 0 ] )
timescale1 [ 0 locks=0 ] ( [ timescale1 1 ] )
file_spacer1 [ 0 locks=0 ] ( )
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/reference.userdata"
Content-Type: text/plain
{
"___Version___":{
"type":"string",
"value":"___EXTERNAL___"
}
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/warn_no_representation_set.init"
Content-Type: text/plain
type = error
matchesdef = 1
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/warn_no_representation_set.def"
Content-Type: text/plain
comment ""
position -1.13898e-08 5.20999
connectornextid 2
flags = lock off model off template off footprint off xray off bypass off display on render off highlight off unload off savedata off compress on colordefault on exposed on debug off
outputsNamed3
{
1 "output1"
}
inputsNamed3
{
0 (0) "" 1 "input1"
}
inputs
{
0 (0) 0 1
}
stat
{
create -1
modify -1
author User@HP-Z820-03
access 0777
}
color UT_Color RGB 0.8 0.8 0.8
delscript ""
exprlanguage hscript
end
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/warn_no_representation_set.chn"
Content-Type: text/plain
{
channel enable1 {
lefttype = extend
righttype = extend
flags = 0
start = 39.800000000000004
segment { length = 0 expr = "if(ch(\"../representation\"), 0, 1)" }
}
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/warn_no_representation_set.parm"
Content-Type: text/plain
{
version 0.8
numerror [ 0 locks=0 ] ( 1 )
errormsg1 [ 0 locks=0 ] ( `chs(\"../load_message\")` )
severity1 [ 0 locks=0 ] ( "warn" )
enable1 [ 0 locks=0 ] ( [ enable1 0 ] )
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/warn_no_representation_set.userdata"
Content-Type: text/plain
{
"___Version___":{
"type":"string",
"value":"___EXTERNAL___"
}
}
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.order"
Content-Type: text/plain
3
output0
reference
warn_no_representation_set
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.net"
Content-Type: text/plain
1
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY--

View file

@ -0,0 +1,6 @@
{
"hdaroot/warn_no_representation_set.def":1711565807,
"hdaroot/reference.def":1711565598,
"hdaroot/output0.def":1708980807,
"hdaroot.def":1717451686
}

View file

@ -0,0 +1,15 @@
# Automatically generated script
\set noalias = 1
#
# Creation script for ayon::lop_import::1.0 operator
#
if ( "$arg1" == "" ) then
echo This script is intended as a creation script
exit
endif
# Node $arg1 (ayon::Lop/lop_import::1.0)
opexprlanguage -s hscript $arg1
opuserdata -n '___Version___' -v '' $arg1
opuserdata -n 'wirestyle' -v 'rounded' $arg1

View file

@ -0,0 +1,324 @@
# Dialog script for ayon::lop_import::1.0 automatically generated
{
name ayon::lop_import::1.0
script load_asset::1.0
label "Load Asset"
help {
""
}
inputlabel 1 "Input Stage"
inputlabel 2 "Input 2"
inputlabel 3 "Input 3"
inputlabel 4 "Input 4"
groupsimple {
name "info2"
label "Info"
parmtag { "script_callback" "hou.phm().refresh_available_versions(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
parm {
name "assetinfo_labelparm"
label "Heading"
type label
default { "Choose Product" }
parmtag { "sidefx::look" "heading" }
}
parm {
name "project_name"
label "Project"
type string
default { "$AYON_PROJECT_NAME" }
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "folder_path"
label "Folder Path"
type string
default { "$AYON_FOLDER_PATH" }
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "product_name"
label "Product"
type string
default { "usdAsset" }
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "version"
label "Version"
type string
default { "" }
disablewhen "{ representation_old == \"\" }"
menureplace {
[ "versions = hou.phm().get_available_versions(kwargs['node'])" ]
[ "" ]
[ "result = []" ]
[ "for version in versions:" ]
[ " result.append(str(version))" ]
[ " result.append(f\"v{version:03d}\")" ]
[ " " ]
[ "return result" ]
language python
}
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "representation_name"
label "Representation"
type string
default { "usd" }
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "load_refresh"
label "Refresh"
type button
joinnext
default { "0" }
help "Click to refresh and retry applying the product load parameters to load the correct file"
parmtag { "button_icon" "" }
parmtag { "script_callback" "hou.phm().on_representation_parms_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "load_message"
label "Message"
type label
default { "" }
hidewhen "{ load_message == \"\" }"
parmtag { "sidefx::look" "block" }
}
parm {
name "sepparm"
label "Separator"
type separator
default { "" }
}
parm {
name "reload"
label "Reload Files"
type button
default { "0" }
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_callback_language" "python" }
}
parm {
name "file"
label "File"
type string
default { "" }
parmtag { "script_callback_language" "python" }
}
parm {
name "primpath1"
label "Primitive Root"
type string
default { "`chs(\"folder_path\")`/$OS" }
menureplace {
[ "opmenu -l -a reference_character primpath1" ]
}
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_action" "import loputils\nloputils.selectPrimsInParm(kwargs, False)" }
parmtag { "script_action_help" "Select a primitive in the Scene Viewer or Scene Graph Tree pane.\nCtrl-click to select using the primitive picker dialog.\nAlt-click to toggle movement of the display flag." }
parmtag { "script_action_icon" "BUTTONS_reselect" }
parmtag { "sidefx::usdpathtype" "prim" }
}
groupcollapsible {
name "extra_options"
label "Load Options"
parm {
name "reftype1"
label "Reference Type"
type string
default { "file" }
menu {
"file" "Reference File"
"payload" "Payload File"
}
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_callback_language" "python" }
}
parm {
name "instanceable1"
label "Make Instanceable"
type toggle
default { "off" }
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_callback_language" "python" }
}
parm {
name "filerefprim1"
label "Reference Primitive"
type string
default { "automaticPrim" }
hidewhen "{ reftype1 == prim } { reftype1 == inherit } { reftype1 == specialize }"
menu {
"automaticPrim" "Reference Automatically Chosen Primitive"
"defaultPrim" "Reference Default Primitive"
"" "Reference Specific Primitive"
}
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_callback_language" "python" }
}
parm {
name "filerefprimpath1"
label "Reference Primitive Path"
type string
default { "" }
disablewhen "{ filerefprim1 != \"\" reftype1 != prim reftype1 != inherit reftype1 != specialize }"
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_action" "import loputils\nnode = kwargs['node']\nparm = kwargs['parmtuple'][0]\nreftype = node.evalParm(parm.name().replace(\n 'filerefprimpath', 'reftype'))\nif reftype in ('prim', 'inherit', 'specialize'):\n prims = loputils.selectPrimsInParm(kwargs, True)\nelse:\n parm = node.parm(parm.name().replace(\n 'filerefprimpath', 'filepath'))\n prims = loputils.selectPrimsInParmFromFile(kwargs, False,\n parm.evalAsString().strip('\\'\"'))" }
parmtag { "script_action_help" "Select a primitive from a primitive picker dialog." }
parmtag { "script_action_icon" "BUTTONS_reselect" }
parmtag { "sidefx::usdpathinput" "if(index(\"prim inherit specialize\", chs(\"reftype#\")) >= 0, 0, -1)" }
parmtag { "sidefx::usdpathtype" "prim" }
}
parm {
name "timeoffset1"
label "Time Offset (in Frames)"
type float
default { "0" }
range { -100 100 }
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_callback_language" "python" }
}
parm {
name "timescale1"
label "Time Scale"
type float
default { "1" }
range { 0 5 }
parmtag { "autoscope" "0000000000000000" }
parmtag { "script_callback_language" "python" }
}
}
}
groupcollapsible {
name "info_display2"
label "Info Display"
parm {
name "show_thumbnail"
label "Show Entity Thumbnail"
type toggle
joinnext
default { "0" }
parmtag { "script_callback" "hou.phm().on_thumbnail_show_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "thumbnail_size"
label "Size"
type float
joinnext
default { "2" }
hidewhen "{ show_thumbnail == 0 }"
range { 0 10 }
parmtag { "script_callback" "hou.phm().on_thumbnail_size_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "thumbnail_cache_dir"
label "Thumbnail Cache Dir"
type directory
invisible
default { "$JOB/.houdini_loader_thumbnails" }
parmtag { "script_callback_language" "python" }
}
parm {
name "thumbnail_padding"
label "Padding"
type float
invisible
default { "1" }
range { 0 10 }
parmtag { "script_callback_language" "python" }
}
parm {
name "thumbnail_offset"
label "Offset"
type vector2
size 2
default { "0" "0.35" }
hidewhen "{ show_thumbnail == 0 }"
range { -1 1 }
parmtag { "script_callback" "hou.phm().on_thumbnail_size_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "show_pipeline_parms"
label "Show Pipeline Parms"
type toggle
default { "0" }
parmtag { "script_callback" "hou.phm().on_thumbnail_show_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
}
group {
name "ayon_folder0"
label "Ayon"
hidewhen "{ show_pipeline_parms == 0 }"
parm {
name "name"
label "Name"
type label
default { "$OS" }
}
parm {
name "namespace"
label "Namespace"
type label
default { "`opfullpath(\".\")`" }
}
parm {
name "loader"
label "Loader"
type label
default { "LOPLoadAssetLoader" }
}
parm {
name "id"
label "ID"
type label
default { "pyblish.avalon.container" }
}
parm {
name "representation"
label "Representation ID"
type string
default { "" }
parmtag { "script_callback" "hou.phm().on_representation_id_changed(kwargs['node'])" }
parmtag { "script_callback_language" "python" }
}
parm {
name "version_name"
label "Current Version Label"
type label
invisible
default { "" }
}
parm {
name "subset_name"
label "Subset (backwards compatibility)"
type label
invisible
default { "`chs(\"product_name\")`" }
}
}
}

View file

@ -0,0 +1,122 @@
{
"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":"C:/Users/Maqina-05/Desktop/AYON_icon.png"
},
"OnCreated/Cursor":{
"type":"intarray",
"value":[5,29]
},
"OnCreated/IsExpr":{
"type":"bool",
"value":false
},
"OnCreated/IsPython":{
"type":"bool",
"value":true
},
"OnCreated/IsScript":{
"type":"bool",
"value":true
},
"OnCreated/Source":{
"type":"string",
"value":""
},
"OnDeleted/Cursor":{
"type":"intarray",
"value":[2,1]
},
"OnDeleted/IsExpr":{
"type":"bool",
"value":false
},
"OnDeleted/IsPython":{
"type":"bool",
"value":true
},
"OnDeleted/IsScript":{
"type":"bool",
"value":true
},
"OnDeleted/Source":{
"type":"string",
"value":""
},
"OnLoaded/Cursor":{
"type":"intarray",
"value":[9,76]
},
"OnLoaded/IsExpr":{
"type":"bool",
"value":false
},
"OnLoaded/IsPython":{
"type":"bool",
"value":true
},
"OnLoaded/IsScript":{
"type":"bool",
"value":true
},
"OnLoaded/Source":{
"type":"string",
"value":""
},
"OnNameChanged/Cursor":{
"type":"intarray",
"value":[4,1]
},
"OnNameChanged/IsExpr":{
"type":"bool",
"value":false
},
"OnNameChanged/IsPython":{
"type":"bool",
"value":true
},
"OnNameChanged/IsScript":{
"type":"bool",
"value":true
},
"OnNameChanged/Source":{
"type":"string",
"value":""
},
"PythonModule/Cursor":{
"type":"intarray",
"value":[1,18]
},
"PythonModule/IsExpr":{
"type":"bool",
"value":false
},
"PythonModule/IsPython":{
"type":"bool",
"value":true
},
"PythonModule/IsScript":{
"type":"bool",
"value":true
},
"PythonModule/Source":{
"type":"string",
"value":""
}
}

View file

@ -0,0 +1,10 @@
{
"nodeconntype":{
"type":"bool",
"value":false
},
"nodeparmtype":{
"type":"bool",
"value":false
}
}

View file

@ -0,0 +1,5 @@
node = kwargs["node"]
hda_module = node.hdaModule()
hda_module.setup_flag_changed_callback(node)
node.parm("file").lock(True)

View file

@ -0,0 +1,6 @@
from ayon_houdini.api.lib import remove_all_thumbnails
# Clear thumbnails
node = kwargs["node"]
remove_all_thumbnails(node)

View file

@ -0,0 +1,15 @@
node = kwargs["node"]
hda_module = node.hdaModule()
hda_module.setup_flag_changed_callback(node)
# Duplicate callback
def on_duplicate():
"""Duplicate thumbnail on node duplicate"""
if node.evalParm("show_thumbnail") and node.evalParm("representation"):
hda_module.on_representation_id_changed(node)
if not hou.hipFile.isLoadingHipFile():
on_duplicate()

View file

@ -0,0 +1,8 @@
from ayon_houdini.api.hda_utils import (
keep_background_images_linked
)
node = kwargs["node"]
old_name = kwargs["old_name"]
keep_background_images_linked(node, old_name)

View file

@ -0,0 +1,8 @@
from ayon_houdini.api.hda_utils import (
on_thumbnail_show_changed,
on_thumbnail_size_changed,
on_representation_id_changed,
on_representation_parms_changed,
setup_flag_changed_callback,
get_available_versions
)

View file

@ -0,0 +1,17 @@
""
DialogScript DialogScript
CreateScript CreateScript
InternalFileOptions InternalFileOptions
Contents.gz Contents.gz
TypePropertiesOptions TypePropertiesOptions
Tools.shelf Tools.shelf
Help Help
IconImage IconImage
MessageNodes MessageNodes
PythonModule PythonModule
OnDeleted OnDeleted
OnNameChanged OnNameChanged
OnLoaded OnLoaded
OnCreated OnCreated
ExtraFileOptions ExtraFileOptions
AYON__icon.png AYON_icon.png

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<shelfDocument>
<!-- This file contains definitions of shelves, toolbars, and tools.
It should not be hand-edited when it is being used by the application.
Note, that two definitions of the same element are not allowed in
a single file. -->
<tool name="$HDA_DEFAULT_TOOL" label="$HDA_LABEL" icon="$HDA_ICON">
<toolMenuContext name="viewer">
<contextNetType>LOP</contextNetType>
</toolMenuContext>
<toolMenuContext name="network">
<contextOpType>$HDA_TABLE_AND_NAME</contextOpType>
</toolMenuContext>
<toolSubmenu>CB Pipeline</toolSubmenu>
<script scriptType="python"><![CDATA[import loptoolutils
loptoolutils.genericTool(kwargs, '$HDA_NAME')]]></script>
</tool>
</shelfDocument>

View file

@ -0,0 +1,14 @@
CheckExternal := 1;
ContentsCompressionType := 1;
ForbidOutsideParms := 1;
GzipContents := 1;
LockContents := 1;
MakeDefault := 1;
ParmsFromVfl := 0;
PrefixDroppedParmLabel := 0;
PrefixDroppedParmName := 0;
SaveCachedCode := 0;
SaveIcon := 1;
SaveSpareParms := 0;
UnlockOnCreate := 0;
UseDSParms := 1;