Loading Hydra delegate for Redshift via packages JSON [Solved]

   1431   1   2
User Avatar
Member
12 posts
Joined: 12月 2019
Online
It would be great to get some help with configuring Redshift for Solaris with Houdini 19.0.622 / Redshift 3.5.03. I want to load Redshift via a package JSON files, since this is a neat and clean way.

While the Redshift plugin loads fine, I have no success loading the Redshift Solaris plugin / Redshift Hydra delegate. Redshift simply doesn't show up in Solaris. It seems the required PXR_PLUGINPATH_NAME is somehow not properly evaluated by Houdini, or the Hydra delegate is not found/loaded. Did anyone experience the same, or spots a mistake in our package file?

{
"enable": "houdini_version >= '19.0' and houdini_version < '19.1'",
"load_package_once": true,
"env": [
{"HOUDINI_DSO_ERROR": 2},
{"REDSHIFT_PLUGIN_VERSION" : "$HOUDINI_VERSION"},
{"REDSHIFT_COREDATAPATH": "/usr/redshift/"},
{"TF_DEBUG" : "PLUG_*"},
{
"PATH": {
"method":"append",
"value": [
"${REDSHIFT_COREDATAPATH}/bin"
]
}
},
{
"HOUDINI_PATH": {
"method":"append",
"value": [
"${REDSHIFT_COREDATAPATH}/redshift4houdini/${REDSHIFT_PLUGIN_VERSION}"
]
}
},
{
"PXR_PLUGINPATH_NAME": {
"method":"prepend",
"value": [
"${REDSHIFT_COREDATAPATH}/redshift4solaris/${REDSHIFT_PLUGIN_VERSION}"
]
}
}
]
}
Edited by Aietes - 2022年6月2日 06:41:46
User Avatar
Member
12 posts
Joined: 12月 2019
Online
I got in touch with SideFX support, they have been great helping with this issue! Thank you Jenny ! It is a known issue that the USD library gets initialized before houdini.env and the Houdini package files get initialized. However, Houdini does automatically install plugins from the dso/usd_plugins subdirectory of any directory in the HOUDINI_PATH.

The solution we now implemented to work around this issue: We created a "dso" folder in the /usr/redshift/redshift4solaris/19.0.622 folder, and created a "usd_plugins" symlink pointing to the parent folder:

cd /usr/redshift/redshift4solaris/19.0.622/
mkdir dso && cd dso
ln -s ../ usd_plugins

Now we can simply include the Solaris plugin folder in the HOUDINI_PATH, and the Hydra delegate loads fine, without any need for other variables:

"HOUDINI_PATH": {
"method":"append",
"value": [
"${REDSHIFT_COREDATAPATH}/redshift4houdini/${REDSHIFT_PLUGIN_VERSION}",
"${REDSHIFT_COREDATAPATH}/redshift4solaris/${REDSHIFT_PLUGIN_VERSION}"
]
}

While this workaround works well, we'll have to repeat this step with every Redshift/Houdini update, manually creating a symlink every time. We got in touch with Maxon/Redshift to see if there can be a default, out-of-the-box solution for this issue, e.g. creating a symlink in the Solaris plugin folder by default via the Redshift installer going forward.
Edited by Aietes - 2022年6月2日 06:33:12
  • Quick Links