Render settings for custom hydra delegate

   1949   2   3
User Avatar
Member
7 posts
Joined: 11月 2006
Offline
I'm having trouble getting my hydra delegate's render settings to show up in the display panel. They're set up using the standard Config class and show up correctly in usdview, but I can't get them to show up in Houdini.

I've added a HdMyRendererPlugin_Viewport.ds file under $HOUDINI_PATH/soho/parameters following the example, and that doesn't help either. Is there some other magic I need to do?

#include "$HFS/houdini/soho/parameters/CommonMacros.ds"

{
name "my"
label "my"
parmtag { spare_opfilter "!!SHOP/PROPERTIES!!" }
parmtag { spare_classtags "render" }

parm {
name "max_progressions"
label "Max progressions"
type int
size 1
default { 4096 }
range { 1! 4096 }
parmtag { "spare_category" "Sampling" }
help "Maximum number of progressions to run"

// The "uiscope" tag is a space separated list of tokens which
// determines where the UI should be presented:
// - viewport: The display options dialog
// - toolbar: On the sidebar of the render view
parmtag { "uiscope" "viewport" }
}

parm {
name "max_path_length"
label "Max path length"
type int
size 1
default { 1024 }
range { 1! 1024 }
parmtag { "spare_category" "Sampling" }
help "Maximum length of a path in edges"

// The "uiscope" tag is a space separated list of tokens which
// determines where the UI should be presented:
// - viewport: The display options dialog
// - toolbar: On the sidebar of the render view
parmtag { "uiscope" "viewport" }
}
}
User Avatar
スタッフ
5156 posts
Joined: 7月 2005
Offline
The Dialog script looks correct, as does the path. Is “HdMyRendererPlugin” the exact type name of your plugin (not the displayName or Name)?
User Avatar
Member
7 posts
Joined: 11月 2006
Offline
Yes it is (obviously it's not called “My”, but s/My/Whatever/g). Here's my plugInfo.json:
{
"Plugins": [
{
"Info": {
"Types": {
"HdMyRendererPlugin": {
"bases": [
"HdRendererPlugin"
],
"displayName": "my",
"priority": 99
}
}
},
"LibraryPath": "../hdmy.so",
"Name": "hdmy",
"ResourcePath": "resources",
"Root": "..",
"Type": "library"
}
]
}

Does the ‘name’ field in the plugInfo.json need to match the ‘name’ field in the .ds? Just noticed they're different (one is ‘my’ the other is ‘hdmy’)
Edited by anderslanglands - 2020年1月13日 18:06:42
  • Quick Links