検索 - User list
Full Version: Render settings for custom hydra delegate
Root » Solaris and Karma » Render settings for custom hydra delegate
anderslanglands
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" }
}
}
malexander
The Dialog script looks correct, as does the path. Is “HdMyRendererPlugin” the exact type name of your plugin (not the displayName or Name)?
anderslanglands
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’)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB