probiner Posted February 26, 2022 Share Posted February 26, 2022 (edited) Hi I'm trying to tidy up a collection of assets and scripts done over the years across different licensings and python versions and I'm not being able to have the package system to conditionally load a python path according to the houdini license and python version being used. I was successful to use houdini_version, for example, to have different renderman versions loaded depending: {"HOUDINI_PATH": [ {"houdini_version == '18.5.351'": "$RFHTREE/18.5.351"}, {"houdini_version == '18.5.596'": "$RFHTREE/18.5.596"}, {"houdini_version == '18.5.633'": "$RFHTREE/18.5.633"} ]} I also tested houdini_os sucessfully, but what I was interested in, houdini_python, doesn't seem to work. Anyone used it successfully? Simple example: { "env": [ {"bar": [ {"houdini_os == 'windows'": "windows"}, {"houdini_os == 'linux'": "linux"} ] }, {"foo": [ {"houdini_python == 'python2'": "pypath2"}, {"houdini_python == 'python3'": "pypath3"} ] } ] } Which results in no print for the one using houdini_python in a Houdini Python Shell: No clue why it prints nothing instead of 'pypath2' .json attached. Another thing I was looking for would be to have different HOUDINI_PATH's depending on the license is being used. But I can't find a variable that provides distinction between Houdini session license. Am I missing something? https://www.sidefx.com/docs/houdini/ref/plugins.html Thanks prb test.json Edited February 26, 2022 by probiner Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.