Setting up json package environments

   3993   6   0
User Avatar
Member
11 posts
Joined: Aug. 2019
Offline
Hi,
we are trying to setup showwise envrionments in the project.json files for our current pipeline. we are follwing below procedure for the setting up the envs.

Link: https://www.sidefx.com/docs/houdini/ref/plugins.html [www.sidefx.com]
Topic: Set package folders dynamically

We put an project.json file under $HOUDINI_USER_PREF_DIR/packages or $HFS/packages directory.

project.json:

{
“env”:
{
“package_path”: “/Drive/Project/common/packages”
}
}

In /Drive/Project/common/packages path, below .json files are there.
asset_a.json:

{
“env”: [
{
“Char_a_TEX”: “/Drive/Project/assets/Char_a/published/textures”
},
{
“HOUDINI_PATH” : “/Drive/Project/assets/Char_a/common/otls
}
]
}

asset_b.json:

{
”env“:
{
”Char_b_TEX“: ”/Drive/Project/assets/Char_a/published/textures"
}
}



Issue is that it is not working. We are unable to find the declaired environments Char_a_TEX and Char_b_TEX and also the hda file in the Houdini_path do not show inside houdini.

So can you please look in to above procedure and guide us with proper process.


Thank you
Anibrain India
User Avatar
Staff
452 posts
Joined: Feb. 2018
Offline
package_path is not meant to be set as an environment variable. It's rather a package attribute that needs to be set outside the “env” object like so:

{
“package_path”: “/Drive/Project/common/packages”

"env" : [
{"FOO" : "$HOME/bar"}
]
}
User Avatar
Member
11 posts
Joined: Aug. 2019
Offline
We set like this. It does not work.
{
“package_path”: “/Drive/Project/common/packages”
}
User Avatar
Staff
452 posts
Joined: Feb. 2018
Offline
Anibrain Tech India
We set like this. It does not work.
{
“package_path”: “/Drive/Project/common/packages”
}
Make sure “/Drive/Project/common/packages” is a valid path. Here's how I'm using it:

// C:\Users\marcb\houdini18.5\packages\package.json
{
"package_path" : "c:/temp/foo"
}

// C:\temp\foo\package.json
{
"path" : [
"/home/bob/bob_tool"
]
}

. hconfig -xa
= = = Houdini Package log = = =
Processing 'C:/Users/marcb/houdini18.5/packages/package.json'

Processing 'c:/temp/foo/package.json'

HFS := 'C:/Users/marcb/DEV/HOUDINI/dev/hfs'
HOME := 'C:/Users/marcb'
HOUDINI_DESKTOP_DIR := 'C:/Users/marcb/Desktop'
HOUDINI_OS := 'Windows'
HOUDINI_PACKAGE_VERBOSE := 1
HOUDINI_PATH := '/home/bob/bob_tool;&'
HOUDINI_TEMP_DIR := 'C:/Users/marcb/AppData/Local/Temp/houdini_temp'
HOUDINI_USER_PREF_DIR := 'C:/Users/marcb/houdini18.5'
SHELL := 'C:/PROGRA~1/Git/usr/bin/bash.exe'
USER := 'marcb'
Edited by mabelzile - Jan. 7, 2020 09:07:41
User Avatar
Member
11 posts
Joined: Aug. 2019
Offline
running Houdini 18.0.287 / 17.5.216
log:
Processing: ‘/Drive/Project/common/packages/package.json’
ERROR: Unsupported setting ‘package_path’
User Avatar
Staff
452 posts
Joined: Feb. 2018
Offline
Anibrain Tech India
running Houdini 18.0.287 / 17.5.216
log:
Processing: ‘/Drive/Project/common/packages/package.json’
ERROR: Unsupported setting ‘package_path’
“package_path” was added to 18.0.315
User Avatar
Member
11 posts
Joined: Aug. 2019
Offline
mabelzile
Anibrain Tech India
running Houdini 18.0.287 / 17.5.216
log:
Processing: ‘/Drive/Project/common/packages/package.json’
ERROR: Unsupported setting ‘package_path’
“package_path” was added to 18.0.315


Thank You. It is working in latest build..
  • Quick Links