Skip to content

Commit

Permalink
use generic loader inside lop_load_shot
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Dec 18, 2024
1 parent 2916635 commit 6e64771
Show file tree
Hide file tree
Showing 9 changed files with 262 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Inputs: 0 to 1
Subnet: true
Python: false
Empty: false
Modified: Tue Oct 22 01:11:23 2024
Modified: Wed Dec 18 16:17:10 2024

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ayon::Lop/generic_loader::1.0 E:/Ynput/ayon-houdini/client/ayon_houdini/startup/otls/ayon.generic_loader.hda
ayon::Lop/generic_loader::1.0 otls/ayon.generic_loader.hda
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"hdaroot/sublayer.def":1720045839,
"hdaroot/warn_no_representation_set.def":1708980551,
"hdaroot/output0.def":1698215383,
"hdaroot.def":1729552120
"hdaroot.def":1734531127,
"hdaroot/generic_loader.def":1734531150
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY"

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename=".OPfallbacks"
Content-Type: application/external-reference

.OPfallbacks

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename=".OPdummydefs"
Content-Type: application/external-reference

.OPdummydefs

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="node_type"
Content-Type: text/plain
Expand All @@ -19,7 +31,7 @@ Content-Disposition: attachment; filename="hdaroot.def"
Content-Type: text/plain

comment ""
position -4.13562 1.50033
position 2.43462 0.257621
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
Expand All @@ -35,7 +47,7 @@ stat
{
create -1
modify -1
author User@HP-Z820-03
author Mustafa_Taher@Major-Kalawy
access 0777
}
color UT_Color RGB 0.8 0.8 0.8
Expand Down Expand Up @@ -350,14 +362,213 @@ Content-Type: text/plain
}
}

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/generic_loader.init"
Content-Type: text/plain

type = ayon::generic_loader::1.0
matchesdef = 1

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/generic_loader.def"
Content-Type: text/plain

comment ""
position 1.81174 2.49292
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 Mustafa_Taher@Major-Kalawy
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/generic_loader.chn"
Content-Type: text/plain

{
channel file {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = ch(\"../file\") language = python }
}
channel newparameter {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = "\" \".join(parm.node().path() for parm in hou.parm('./file').parmsReferencingThis())" language = python }
}
channel project_name {
lefttype = extend
righttype = extend
defaultString = \"$AYON_PROJECT_NAME\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../project_name\") }
}
channel folder_path {
lefttype = extend
righttype = extend
defaultString = \"$AYON_FOLDER_PATH\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../folder_path\") }
}
channel folder_name {
lefttype = extend
righttype = extend
defaultString = "(strsplit(chs(\"folder_path\"), \"/\", -1))"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../folder_name\") }
}
channel product_name {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../product_name\") }
}
channel version {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../version\") }
}
channel representation_name {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = chs(\"../representation_name\") }
}
channel clear_cache {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../clear_cache\") }
}
channel use_ayon_entity_uri {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../use_ayon_entity_uri\") }
}
channel show_thumbnail {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../show_thumbnail\") }
}
channel show_pipeline_parms {
lefttype = extend
righttype = extend
flags = 0
start = 40
segment { length = 0 expr = ch(\"../show_pipeline_parms\") }
}
channel representation {
lefttype = extend
righttype = extend
defaultString = \"\"
flags = 0
start = 40
segment { length = 0 expr = ch(\"../representation\") language = python }
}
}

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/generic_loader.parm"
Content-Type: text/plain

{
version 0.8
info2 [ 0 locks=0 ] ( 0 )
assetinfo_labelparm [ 0 locks=0 ] ( "Choose Product" )
project_name [ 0 locks=0 ] ( [ project_name $AYON_PROJECT_NAME ] )
folder_path [ 0 locks=0 ] ( [ folder_path $AYON_FOLDER_PATH ] )
folder_name [ 0 locks=0 ] ( [ folder_name "`strsplit(chs(\"folder_path\"), \"/\", -1)`" ] )
product_name [ 0 locks=0 ] ( [ product_name "" ] )
version [ 0 locks=0 ] ( [ version "" ] )
representation_name [ 0 locks=0 ] ( [ representation_name "" ] )
usd_compatible_representations [ 0 locks=0 ] ( "on" )
clear_cache [ 0 locks=0 ] ( [ clear_cache 0 ] )
sepparm [ 0 locks=0 ] ( )
file [ 0 locks=1 ] ( [ file "from ayon_houdini.api import hda_utils
return hda_utils.expression_get_representation_path()" ] )
use_ayon_entity_uri [ 0 locks=0 ] ( [ use_ayon_entity_uri 0 ] )
info_display2 [ 0 locks=0 ] ( 0 )
show_thumbnail [ 0 locks=0 ] ( [ show_thumbnail 0 ] )
thumbnail_size [ 0 locks=0 ] ( 2 )
thumbnail_cache_dir [ 0 locks=0 ] ( $JOB/.houdini_loader_thumbnails )
thumbnail_padding [ 0 locks=0 ] ( 1 )
thumbnail_offset [ 0 locks=0 ] ( 0 0.35 )
update_thumbnail [ 0 locks=0 ] ( 0 )
show_pipeline_parms [ 0 locks=0 ] ( [ show_pipeline_parms 0 ] )
ayon_folder0 [ 0 locks=0 ] ( 0 )
name [ 0 locks=0 ] ( $OS )
namespace [ 0 locks=0 ] ( `opfullpath(\".\")` )
loader [ 0 locks=0 ] ( FilePathLoader )
id [ 0 locks=0 ] ( pyblish.avalon.container )
representation [ 0 locks=0 ] ( [ representation "from ayon_houdini.api import hda_utils
return hda_utils.expression_get_representation_id()" ] )
version_name [ 0 locks=0 ] ( "" )
subset_name [ 0 locks=0 ] ( `chs(\"product_name\")` )
newparameter [ 0 locks=0 ] ( [ newparameter "\" \".join(parm.node().path() for parm in hou.parm('./file').parmsReferencingThis())" ] )
}

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot/generic_loader.userdata"
Content-Type: text/plain

{
"___Version___":{
"type":"string",
"value":""
},
"nodeshape":{
"type":"string",
"value":"null"
}
}

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.order"
Content-Type: text/plain

3
4
output0
sublayer
warn_no_representation_set
generic_loader

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Content-Disposition: attachment; filename="hdaroot.net"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"hdaroot/sublayer.def":1729552247,
"hdaroot/sublayer.def":1734531279,
"hdaroot/warn_no_representation_set.def":1729552277,
"hdaroot/output0.def":1729552203,
"hdaroot.def":1729552272
"hdaroot.def":1734532107,
"hdaroot/generic_loader.def":1734531324
}
Loading

0 comments on commit 6e64771

Please sign in to comment.