Houdini Packages user dir

   3894   5   2
User Avatar
Member
172 posts
Joined: Jan. 2014
Offline
Hi,

I have my custom location for the user dir, so I want to set HOUDINI_USER_PREF_DIR using Houdini Packages, is it possible?
It doesn't seem to work.
Edited by Ivan L - Jan. 5, 2020 00:05:10
I contribute to the beauty of this world
User Avatar
Member
130 posts
Joined: June 2016
Offline
Hi IL,

It works for me I am trying to install qLib tools,I think you have to use HOUDINI_PATH variable, here in this case “path” is shortcut for HOUDINI_PATH as per documentation.

The path top-level key is a convenience for manipulating the $HOUDINI_PATH variable

{
    "env": [
        {
            "QLIB": "C:/Users/mohan/Documents/GitHub/qLib",
        },
    ],
    
    "path": "$QLIB",
}


But when I add the HOUDINI_OTLSCAN_PATH, otls are not loading in, and i tried to echo the HOUDINI_OTLSCAN_PATH that doesnt shows up the new variable in the package file , below is the json file content

{
    "env": [
        {
            "QLIB": "C:/Users/mohan/Documents/GitHub/qLib",
        },
        {
            "QOTL": "$QLIB/otls",
        },
        {
            "HOUDINI_OTLSCAN_PATH": "$QOTL/base",
        },
    ],
    
    "path": "$QLIB",
}

Thanks for opening this thread I was also about to do so at the same time, please someone help
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
User Avatar
Member
130 posts
Joined: June 2016
Offline
Hi There is another thread im following about the same issue im facing. no one answered yet.

https://forums.odforce.net/topic/44520-installing-qlib-package-method/?tab=comments#comment-209794 [forums.odforce.net]
Edited by Mohanpugaz - Jan. 5, 2020 05:30:21
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
User Avatar
Member
172 posts
Joined: Jan. 2014
Offline
“path” is shortcut for HOUDINI_PATH
HOUDINI_PATH works fine for me, the only problem with my user folder.

I tested “path” too but it creates the user folder in the default location anyway.
I did some tests and the only method that works is if HOUDINI_USER_PREF_DIR is set before launching Houdini.
like so
export HOUDINI_USER_PREF_DIR=“/home/dev/customLocationPath/houdini18.0/”
I contribute to the beauty of this world
User Avatar
Staff
398 posts
Joined: Feb. 2018
Offline
HOUDINI_USER_PREF_DIR can only be set in your environment before launching Houdini.

Adding a custom folder location to HOUDINI_OTLSCAN_PATH for scanning my digital assets seem to be working fine for me.
// This package adds a folder to HOUDINI_OTLSCAN_PATH for scanning digital assets
{
"env": [
{
"HOUDINI_OTLSCAN_PATH": [
"${HOUDINI_USER_PREF_DIR}/my_otls"
]
}
]
}
Edited by mabelzile - Jan. 6, 2020 11:19:29
User Avatar
Member
172 posts
Joined: Jan. 2014
Offline
mabelzile
HOUDINI_USER_PREF_DIR can only be set in your environment before launching Houdini.

Adding a custom folder location to HOUDINI_OTLSCAN_PATH for scanning my digital assets seem to be working fine for me.
// This package adds a folder to HOUDINI_OTLSCAN_PATH for scanning digital assets
{
"env": [
{
"HOUDINI_OTLSCAN_PATH": [
"${HOUDINI_USER_PREF_DIR}/my_otls"
]
}
]
}

good to know! Everything else works as expected just wanted to clarify about HOUDINI_USER_PREF_DIR
Thanks!
I contribute to the beauty of this world
  • Quick Links