.json Packages and houdini_version
2304
4
1
Feb. 20, 2020 11:38 p.m.
Hi, I was pulling my hair out over this.
Basically, I have few versions of Houdini that need different HTOA versions. I tried to use Packages and houdini_version conditioning. However, houdini somehow can't resolve “houdini version” to exact number. I mean, I can do houdini_version > ‘17.5.200’, but I can't do houdini_version == ‘17.5.258’. And I can't get multiple condition keys to work. It always load the lastest condition nomatter what version of Houdini launched.
{ “env” : [ // {“HTOA_STARTUP_LOG” : “0”}, {“PLG” : “W:/Plugins_HOUDINI/HTOA”}, {“HOUDINI_PATH” : [ {“houdini_version == ‘17.5.229’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229”, “method”:“append”}, {“houdini_version == ‘17.5.258’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229”, “method”:“append”}, {“houdini_version == ‘17.5.460’”:“${PLG}/htoa_5.0.3_houdini_17.5.460/htoa_5.0.3_houdini_17.5.460”, “method”:“append”} ] }, {“PATH”: [ {“houdini_version == ‘17.5.229’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229/scripts/bin”, “method”:“append”}, {“houdini_version == ‘17.5.258’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229/scripts/bin”, “method”:“append”}, {“houdini_version == ‘17.5.460’”:“${PLG}/htoa_5.0.3_houdini_17.5.460/htoa_5.0.3_houdini_17.5.460/scripts/bin”, “method”:“append”} ] } ], // end “env” }
Edited by creepmaster - Feb. 20, 2020 23:40:14
Feb. 24, 2020 1:17 a.m.
Anyone?
mabelzile
Staff
396 posts
Joined: Feb. 2018
Offline
Feb. 24, 2020 9:35 a.m.
creepmaster Hi, I was pulling my hair out over this. Basically, I have few versions of Houdini that need different HTOA versions. I tried to use Packages and houdini_version conditioning. However, houdini somehow can't resolve “houdini version” to exact number. I mean, I can do houdini_version > ‘17.5.200’, but I can't do houdini_version == ‘17.5.258’. And I can't get multiple condition keys to work. It always load the lastest condition nomatter what version of Houdini launched.{ “env” : [ // {“HTOA_STARTUP_LOG” : “0”}, {“PLG” : “W:/Plugins_HOUDINI/HTOA”}, {“HOUDINI_PATH” : [ {“houdini_version == ‘17.5.229’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229”, “method”:“append”}, {“houdini_version == ‘17.5.258’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229”, “method”:“append”}, {“houdini_version == ‘17.5.460’”:“${PLG}/htoa_5.0.3_houdini_17.5.460/htoa_5.0.3_houdini_17.5.460”, “method”:“append”} ] }, {“PATH”: [ {“houdini_version == ‘17.5.229’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229/scripts/bin”, “method”:“append”}, {“houdini_version == ‘17.5.258’”:“${PLG}/htoa_4.0.2_houdini_17.5.229/htoa-4.0.2_r236e192_houdini-17.5.229/scripts/bin”, “method”:“append”}, {“houdini_version == ‘17.5.460’”:“${PLG}/htoa_5.0.3_houdini_17.5.460/htoa_5.0.3_houdini_17.5.460/scripts/bin”, “method”:“append”} ] } ], // end “env” } Works fine on my side with the attached file.
Image Not Found
I suspect you are not using valid single and double quotes characters in your json file.
Attachments:
package17_5.json (271 bytes)
Feb. 25, 2020 1:27 a.m.
mabelzile Works fine on my side with the attached file. Image Not Found
I suspect you are not using valid single and double quotes characters in your json file.Thanks for reply.
Sadly, no, my quotes and double quotes are all correct. I tried your json and can't get it to work either.
I can do
“houdini_version > ‘17.5.257’ and houdini_version < ‘17.5.259’” to get .258 version. But I can't do
“houdini_version == ‘17.5.258’” And I can get neither package_path nor $HOUDINI_PACKAGE_DIR to work.
Edited by creepmaster - Feb. 25, 2020 01:36:37
Attachments:
{31F4C36B-AF71-48B4-95E5-FC6FF5410FF3}.png.jpg (73.8 KB)
mabelzile
Staff
396 posts
Joined: Feb. 2018
Offline
Feb. 25, 2020 11:08 a.m.
Which Houdini build are you using ? There was a bug fix added to 17.5.434 for an issue with the == operator. package_path was added to build 17.5.467 HOUDINI_PACKAGE_DIR was added to build 17.5.215