Zitat von joshuazt am 24. Februar 2021, 23:50 UhrHey Richard
After I got the custom paths loading into houdini variables, I realized that other DCC apps are getting errors due to the module 'hou' is only specific to houdini. Is there a way to only load custom plugins on specific DCC apps? Or a way to bypass a snippet of code if the running DCC isnt houdini?
Thanks for your time
Josh T
Hey Richard
After I got the custom paths loading into houdini variables, I realized that other DCC apps are getting errors due to the module 'hou' is only specific to houdini. Is there a way to only load custom plugins on specific DCC apps? Or a way to bypass a snippet of code if the running DCC isnt houdini?
Thanks for your time
Josh T
Zitat von RichardF am 25. Februar 2021, 11:59 UhrHey Josh,
in the isActive function of your custom plugin you can write:
return self.core.appPlugin.pluginName == "Houdini"If Prism is not loaded in Houdini the plugin will not be active. If you want to use the same custom plugin in all DCCs, but want to execute a few lines in Houdini only you can use the same condition in an if clause anywhere in your plugin.
Cheers,
Richard
edit: fixed the code line
Hey Josh,
in the isActive function of your custom plugin you can write:
return self.core.appPlugin.pluginName == "Houdini"
If Prism is not loaded in Houdini the plugin will not be active. If you want to use the same custom plugin in all DCCs, but want to execute a few lines in Houdini only you can use the same condition in an if clause anywhere in your plugin.
Cheers,
Richard
edit: fixed the code line
