Skip to content

Commit

Permalink
Update PostLastDelete
Browse files Browse the repository at this point in the history
Fix Python3 Errors Part 10.
  • Loading branch information
LucaScheller authored Aug 19, 2021
1 parent f97fc7e commit b03e706
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ LYNX_force_general_guide_playback_hide_variable = "LYNX_force_general_guide_play

def force_guide_playback_hide_callback_remove():
callbacks = hou.playbar.eventCallbacks()
callbacks = filter(lambda x: x.__name__ == LYNX_force_general_guide_playback_hide_variable,callbacks)
callbacks = [f for f in callbacks if f.__name__ == LYNX_force_general_guide_playback_hide_variable]
callback_function = callbacks[0]
hou.playbar.removeEventCallback(callback_function)

hou.hscript("setenv -u "+LYNX_force_general_guide_playback_hide_variable)

force_guide_playback_hide_callback_remove()
force_guide_playback_hide_callback_remove()

0 comments on commit b03e706

Please sign in to comment.