Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- """ Module 456: This is a Houdini startup script.
- Houdini runs this script after you open a saved scene.
- """
- import logging
- import hou
- # Create logger and streamhandler
- logging.basicConfig(level=logging.DEBUG)
- logger = logging.getLogger(__name__)
- logger.info('Running 456.py...')
- def reloadHDAs():
- """ This method reloads all Houdini Digital Assets from the HOUDINI_OTLSCAN_PATH.
- It is the equivalent of running the UI Refresh Asset Libraries UI item.
- """
- # Run Houdini HScript command
- hou.hscript('otrefresh -r')
- logger.info('Successfully reloaded all HDAs!')
- currentLoadedHdas = hou.hda.loadedFiles()
- logger.debug(currentLoadedHdas)
- reloadHDAs()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement