Marc-André Belzile

mabelzile

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Changing StrokeCursor geometry in python viewer states March 11, 2024, 10:54 a.m.

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.

Changing StrokeCursor geometry in python viewer states March 5, 2024, 10:21 a.m.

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.
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))

Windows Environment Variable instead of .env file? Feb. 7, 2024, 4:20 p.m.

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]