Skip to content

Commit

Permalink
#2 add reset component
Browse files Browse the repository at this point in the history
  • Loading branch information
funkchaser committed Apr 17, 2024
1 parent 4933bf6 commit 8ee7312
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/aixd_grasshopper/components/aixd_Reset/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# flake8: noqa

from scriptcontext import sticky as st
from aixd_grasshopper.gh_ui import reset_session
from aixd_grasshopper.gh_ui_helper import session_id, clear_sticky

if reset:
reset_session(session_id())
clear_sticky(ghenv, st)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions src/aixd_grasshopper/components/aixd_Reset/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Reset",
"nickname": "Reset",
"category": "AIXD",
"subcategory": "0 Main",
"description": "Resets the current project running in this Grasshopper file.",
"exposure": 4,
"ghpython": {
"isAdvancedMode": false,
"iconDisplay": 0,
"inputParameters": [
{
"name": "reset",
"description": "Set to True to reset.",
"typeHintID": "bool",
"scriptParamAccess": 0
}
],

"outputParameters": [
]
}
}

0 comments on commit 8ee7312

Please sign in to comment.