Permalink
Browse files

Add additional event scripts with event system support.

  • Loading branch information...
captainhammy committed Aug 11, 2017
1 parent fbd1f26 commit e22f3f00150a62940601c5fc9bdbbc24a4a5d87e
@@ -0,0 +1,21 @@
"""Perform tasks when a Houdini node is deleted."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.OnDeleted, kwargs)
# =============================================================================
main()
@@ -0,0 +1,21 @@
"""Perform tasks an input connection of a node is changed."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.OnInputChanged, kwargs)
# =============================================================================
main()
@@ -0,0 +1,21 @@
"""Perform tasks when a node is loaded from a hip file."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.OnLoaded, kwargs)
# =============================================================================
main()
@@ -0,0 +1,21 @@
"""Perform tasks when an operator definition is updated."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.OnUpdated, kwargs)
# =============================================================================
main()
@@ -0,0 +1,21 @@
"""Perform tasks when the last instance of an operator type is deleted."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.PostLastDelete, kwargs)
# =============================================================================
main()
@@ -0,0 +1,21 @@
"""Perform tasks before the first instance of an operator type is created."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.PreFirstCreate, kwargs)
# =============================================================================
main()
@@ -0,0 +1,21 @@
"""Perform parameter updates between node versions."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox Imports
from ht.events import NodeEvents, runEvent
# =============================================================================
# FUNCTIONS
# =============================================================================
def main():
"""Main function."""
runEvent(NodeEvents.SyncNodeVersion, kwargs)
# =============================================================================
main()

0 comments on commit e22f3f0

Please sign in to comment.