Can I switch between Z-Up and Y-Up orientation from script? I'd like to have some sort settings for projects so I can use the same orientation as my target
I see this enum: https://www.sidefx.com/docs/houdini/hom/hou/orientUpAxis.html [www.sidefx.com] but couldnt find any function to actually set it
Is it possible to switch Y-Up/Z-Up from script
512 1 0-
- elovikov
- Member
- 151 posts
- Joined: 6月 2019
- オンライン
-
- elovikov
- Member
- 151 posts
- Joined: 6月 2019
- オンライン
Just for visibility my workaround.
It seems the setting cant be set via script but at least it can be set per package basis. So if you have orientation.val := "Z Up"; in houdini.pref in package directory it'd be loadad and set as the global viewport orientation.
Unfortunately preferences then saved in HOUDINI_USER_PREF_DIR so it means whatever setting was loaded the last it become your default
So currently I have this:
- In pythonrc.py I just set Y Up as default by brute force, just writing it explicitly to HOUDINI_USER_PREF_DIR
- Then in any package I want it differently I'm adding houdini.pref with Z Up
It looks like I'm missing something obvious
It seems the setting cant be set via script but at least it can be set per package basis. So if you have orientation.val := "Z Up"; in houdini.pref in package directory it'd be loadad and set as the global viewport orientation.
Unfortunately preferences then saved in HOUDINI_USER_PREF_DIR so it means whatever setting was loaded the last it become your default
So currently I have this:
- In pythonrc.py I just set Y Up as default by brute force, just writing it explicitly to HOUDINI_USER_PREF_DIR
- Then in any package I want it differently I'm adding houdini.pref with Z Up
It looks like I'm missing something obvious
-
- Quick Links