Found 189 posts.
Search results Show results as topic list.
Technical Discussion » Changing StrokeCursor geometry in python viewer states
- mabelzile
- 396 posts
- Offline
Seems like there are 2 issues, one with the ability to customized the stroke cursor and a second one which seems related to an drawable update bug. Please log a bug.
Technical Discussion » Changing StrokeCursor geometry in python viewer states
- mabelzile
- 396 posts
- Offline
Ideally we should have a state parameter to let you know when a new cursor has been changed. Try overloading StrokeState.onMenuAction instead to set the cursor color.
e.g.
e.g.
def onMenuAction(self, kwargs): super().onMenuAction(kwargs) menu_item = kwargs['menu_item'] node = kwargs['node'] if menu_item == 'cycle_brushes': self.cursor.brush.setWireframeColor(hou.Color(0,1,0))
Technical Discussion » Windows Environment Variable instead of .env file?
- mabelzile
- 396 posts
- Offline
frame_48
What a fantastic response Jonathan - thank you. Does the HOUDINI_PACKAGE_DIR take priority over the default documents folder? As houdini creates a clean houdini.env in documents on start up and I'd want to make sure the .env file in this new home directory takes priority.
To clarify, package files always get priority over .env files and .env files are always loaded after all packages have been loaded.
Houdini will scan the following directories on startup (if they exist) for package files:
$HOUDINI_USER_PREF_DIR/packages $HSITE/houdinimajor.minor/packages (for example, $HSITE/houdini18.0/packages) $HOUDINI_PACKAGE_DIR * Houdini will process the package files directly in the directory specified in HOUDINI_PACKAGE_DIR, do not add a packages directory under these folders. $HFS/packages Note $HSITE and $HOUDINI_PACKAGE_DIR must be set prior to start Houdini.
Houdini scans the package directories in the order specified above, it starts with $HOUDINI_USER_PREF_DIR/packages, then with $HSITE and so on. Furthermore, the package files are loaded alphabetically in the scope of a directory and the processing order can be changed with the process_order keyword.
Check out the documentation for more details:
https://www.sidefx.com/docs/houdini/ref/plugins.html [www.sidefx.com]
Edited by mabelzile - Feb. 7, 2024 16:21:09
3rd Party » Redshift Installation in Houdini
- mabelzile
- 396 posts
- Offline
These are the package config for all platforms
Windows:
macOS:
Linux
Set HOUDINI_PACKAGE_VERBOSE=1 to log information in the terminal when Houdini is loading packages
Windows:
{ "env":[ {"RS_PLUGIN_VERSION" : "${HOUDINI_VERSION}"}, {"REDSHIFT_COREDATAPATH": "C:/ProgramData/Redshift"}, {"HOUDINI_PATH": "${REDSHIFT_COREDATAPATH}/Plugins/Houdini/${HOUDINI_VERSION}"}, {"PATH": "C:/ProgramData/Redshift/bin"}, {"PXR_PLUGINPATH_NAME" : "${REDSHIFT_COREDATAPATH}/Plugins/Solaris/${RS_PLUGIN_VERSION}"} ] }
macOS:
{ "env":[ {"RS_PLUGIN_VERSION" : "${HOUDINI_VERSION}_arm64"}, {"REDSHIFT_COREDATAPATH": "/Applications/redshift"}, {"HOUDINI_PATH": "${REDSHIFT_COREDATAPATH}/redshift4houdini/${RS_PLUGIN_VERSION}"}, {"PATH": "${REDSHIFT_COREDATAPATH}/bin"}, {"PXR_PLUGINPATH_NAME" : "${REDSHIFT_COREDATAPATH}/redshift4solaris/${RS_PLUGIN_VERSION}"} ] }
Linux
{ "env":[ {"RS_PLUGIN_VERSION" : "${HOUDINI_VERSION}"}, {"REDSHIFT_COREDATAPATH": "/usr/redshift"}, {"HOUDINI_PATH": "${REDSHIFT_COREDATAPATH}/redshift4houdini/${RS_PLUGIN_VERSION}"}, {"PATH": "${REDSHIFT_COREDATAPATH}/bin"}, {"PXR_PLUGINPATH_NAME" : "${REDSHIFT_COREDATAPATH}/redshift4solaris/${RS_PLUGIN_VERSION}"} ] }
Set HOUDINI_PACKAGE_VERBOSE=1 to log information in the terminal when Houdini is loading packages
. HOUDINI_PACKAGE_VERBOSE=1 hconfig -xa = = = Houdini Package log = = = Loading: C:/Users/marcb/houdini20.0/packages/redshift_plugin.json Loading: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/apex.json Loading: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/kinefx.json Loading: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/ocio.json Loading: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/package_dirs.json Processing: C:/Users/marcb/houdini20.0/packages/redshift_plugin.json Processing: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/apex.json Processing: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/kinefx.json Processing: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/ocio.json Processing: C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/package_dirs.json Loading: C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0.json Processing load once: C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0.json Processing: C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0.json Resolved variables: RS_PLUGIN_VERSION : 20.0.506 REDSHIFT_COREDATAPATH : C:/ProgramData/Redshift HOUDINI_PATH : C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0 C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/kinefx C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/apex C:/ProgramData/Redshift/Plugins/Houdini/20.0.506 & PATH : C:/ProgramData/Redshift/bin C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/bin C:/PROGRA~2/WI3CF2~1/10/bin/10.0.22000.0/x64 C:/PROGRA~1/MIB055~1/2022/PROFES~1/VC/Tools/MSVC/1435~1.322/bin/Hostx64/x64 C:/Users/marcb/DEV/HOUDINI/dev/hfs/bin C:/Program Files/Git/usr/bin C:/Users/marcb/bin C:/Program Files/Git/mingw64/bin C:/Program Files/Git/usr/local/bin C:/Program Files/Git/usr/bin C:/Program Files/Git/usr/bin C:/Program Files/Git/mingw64/bin C:/Program Files/Git/usr/bin C:/Users/marcb/bin C:/Python3 PXR_PLUGINPATH_NAME : C:/ProgramData/Redshift/Plugins/Solaris/20.0.506 OCIO : C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/ocio/houdini-config-v1.0.0_aces-v1.3_ocio-v2.1.ocio SIDEFXLABS : C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0 Loading Info: Loaded Packages (6): C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0.json C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/apex.json C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/kinefx.json C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/ocio.json C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/package_dirs.json C:/Users/marcb/houdini20.0/packages/redshift_plugin.json = = = = = = = = = = = = = = = = HFS := 'C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/' HOME := 'C:/Users/marcb' HOUDINI_DESKTOP_DIR := 'C:/Users/marcb/Desktop' HOUDINI_HQUEUE_HFS := '$HQROOT/houdini_distros/hfs.$HQCLIENTARCH' HOUDINI_HQUEUE_HFS_LINUX := '$HQROOT/houdini_distros/hfs.$HQCLIENTARCH' HOUDINI_HQUEUE_HFS_MACOS := '$HQROOT/houdini_distros/hfs.$HQCLIENTARCH' HOUDINI_HQUEUE_HFS_WINDOWS := '%HQROOT%/houdini_distros/hfs.%HQCLIENTARCH%' HOUDINI_HQUEUE_SERVER := 'http://localhost:5000' HOUDINI_OS := 'Windows' HOUDINI_PACKAGE_VERBOSE := 1 HOUDINI_PATH := 'C:/Program Files/Side Effects Software/sidefx_packages/SideFXLabs20.0;C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/kinefx;C:/Users/marcb/HOUDIN~3/HOUDIN~1.506/packages/apex;C:/ProgramData/Redshift/Plugins/Houdini/20.0.506;&' HOUDINI_TEMP_DIR := 'C:/Users/marcb/AppData/Local/Temp/houdini_temp' HOUDINI_USER_PREF_DIR := 'C:/Users/marcb/houdini20.0' SHELL := 'C:/PROGRA~1/Git/usr/bin/bash.exe' USER := 'marcb'
Technical Discussion » Get all plugin data for every Houdini version?
- mabelzile
- 396 posts
- Offline
Have you tried hou.ui.packageInfo to access all loaded packages ?
Edited by mabelzile - Nov. 21, 2023 10:13:24
3rd Party » A redshift install for Houdini 19.5 on Apple Silicon
- mabelzile
- 396 posts
- Offline
You can install your package file in $HOUDINI_USER_PREF_DIR/packages
E.g. redshift package for windows
E.g. redshift package for windows
{ "env":[ {"RS_PLUGIN_VERSION" : "${HOUDINI_VERSION}"}, {"REDSHIFT_COREDATAPATH": "C:/ProgramData/Redshift"}, {"HOUDINI_PATH": "${REDSHIFT_COREDATAPATH}/Plugins/Houdini/${HOUDINI_VERSION}"}, {"PATH": "${REDSHIFT_COREDATAPATH}/Redshift/bin"}, {"PXR_PLUGINPATH_NAME" : "${REDSHIFT_COREDATAPATH}/Plugins/Solaris/${RS_PLUGIN_VERSION}"} ] }
Technical Discussion » Override Node State
- mabelzile
- 396 posts
- Offline
Alexey_VanzhulaSWestThanks, but I don't need to activate the state with Python; the problem lies elsewhere. I was wondering if it's possible to attach a custom state, written in Python, to a node, which could then be activated by pressing Enter. I knew this was probably not possible, but I wanted to make sure by hearing an answer from the Houdini developers. I received a responseI would like to automatically start my own state. Is it possible?
If remembering correctly I used a subnet and converted it to a rig pose. Then I think if you get the scene_viewer there is some merhod like enterDefaultState maybe. Can check later if you need it. So I got the rig handles activated like that. It is a bit hackish but works for me.
You can only do that with an HDA node by setting the `Default State` input field with the state type name.
Technical Discussion » Override Node State
- mabelzile
- 396 posts
- Offline
Houdini Indie and Apprentice » setting up custum libraries with packages stuck
- mabelzile
- 396 posts
- Offline
The package_path keyword is used for loading extra packages located in a custom folder. It's not meant for processing python modules and whatnot. Python modules are processed after packages.
Edited by mabelzile - Sept. 18, 2023 11:13:05
Technical Discussion » Python callback error in custom viewer state
- mabelzile
- 396 posts
- Offline
Technical Discussion » Python VIewer State how to access cache_previous_parms?
- mabelzile
- 396 posts
- Offline
The previous parm values are stored in the "prev_parms" entry of the kwargs dictionary passed to onHandleToState
https://www.sidefx.com/docs/houdini19.5/hom/state_handles.html#dynamic-handles [www.sidefx.com]
https://www.sidefx.com/docs/houdini19.5/hom/state_handles.html#dynamic-handles [www.sidefx.com]
Edited by mabelzile - July 16, 2023 10:03:49
Technical Discussion » Handle setting has no effect in python state?
- mabelzile
- 396 posts
- Offline
The "settings" argument let you configure the handle settings. Use the "handle_parms" argument instead to enable/disable the handle components.
The below enables the rotation Y parm and disable all other parms.
For more details.
https://www.sidefx.com/docs/houdini19.5/hom/hou/ViewerStateTemplate.html#bindHandle [www.sidefx.com]
The below enables the rotation Y parm and disable all other parms.
template.bindHandle( "circle", "Twist", handle_parms=["ry"] )
For more details.
https://www.sidefx.com/docs/houdini19.5/hom/hou/ViewerStateTemplate.html#bindHandle [www.sidefx.com]
Technical Discussion » Packages not found on the farm
- mabelzile
- 396 posts
- Offline
You could try to debug first locally to see if it's related to the shared folder (i.e. move the shared folder to a folder local to your machine).
What do you mean by this ?
What do you mean by this ?
we have packages directory on the network share which is defined by HOUDINI_PACKAGE_DIR before render starts
Technical Discussion » Alternative for $HOME in Packages ?
- mabelzile
- 396 posts
- Offline
If you need to set HOUDINI_USER_PREF_DIR with a custom path, follow the directives in the documentation [www.sidefx.com]
HOUDINI_USER_PREF_DIR The directory to store user preference files. The value of this variable must include the substring __HVER__, which will be replaced at run time with the current MAJOR.MINOR version string. On Windows and Linux, this defaults to the expanded value of $HOME/houdini__HVER__. On Mac OSX, it will also use this default if the directory exists, else it uses the expanded value of $HOME/Library/Preferences/houdini/__HVER__.
Technical Discussion » Python State crashes when changing state to View State
- mabelzile
- 396 posts
- Offline
Tim Crowson
Speaking of hdefereval, is this documented somewhere? I'm trying to find more info on this.
There is no detailed documentation per se, you can find some documentation in the custom menu section [www.sidefx.com]
You can also look in the python module code to get more details.
$HH/python3.9libs/hdefereval.py
Technical Discussion » Python State crashes when changing state to View State
- mabelzile
- 396 posts
- Offline
Can you can open a bug for this one please ? Not tested but a possible workaround is to delay the call to enterViewState() like so:
import hdefereval hdefereval.executeDeferred(deferEnterViewState, self.scene_viewer) def deferEnterViewState(scene_viewer): scene_viewer.enterViewState()
Technical Discussion » Alternative for $HOME in Packages ?
- mabelzile
- 396 posts
- Offline
Yu can set HOUDINI_PACKAGE_VERBOSE=1 before running Houdini to see if something is wrong when loading your packages.
Technical Discussion » Alternative for $HOME in Packages ?
- mabelzile
- 396 posts
- Offline
HOUDINI_USER_PREF_DIR should be set when Houdini is starting up. Can you post your Houdini information details (i.e. Help|About Houdini| Show Details) ?
Technical Discussion » Alternative for $HOME in Packages ?
- mabelzile
- 396 posts
- Offline
The simplest setup is to add your package file under $HOUDINI_USER_PREF_DIR/packages. If you want to redirect the package loading to a different location where Houdini could pickup a different package file, set the `package_path` keyword in your package file with the directory path containing the package file.
Technical Discussion » Alternative for $HOME in Packages ?
- mabelzile
- 396 posts
- Offline
You don't have to set $HOME to use packages, Houdini supports multiple directory locations [www.sidefx.com] for placing your package file
-
- Quick Links