Skip to content

Commit

Permalink
Add disable option as global var
Browse files Browse the repository at this point in the history
Can disable extra sections editions with a env global variable "HOUDINI_EXPR_DISABLE_SECTIONS" set to 1
  • Loading branch information
Guillaume Jobst committed Sep 12, 2018
1 parent 8d1bfcb commit 4ec25fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OPmenu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ ParmWatcher.add_watcher(kwargs["node"], type_="python_node")]]>
<expression>
<![CDATA[
try:
import os
if os.environ.get("HOUDINI_EXPR_DISABLE_SECTIONS") == "1":
return False
from HoudiniExprEditor import ParmWatcher
return len(ParmWatcher.get_extra_file_scripts(kwargs["node"])) > 0
except Exception as e:
Expand Down

0 comments on commit 4ec25fa

Please sign in to comment.