Skip to content

Commit

Permalink
FIX: correct naming for components + debug block
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Apr 29, 2024
1 parent 75f7a8a commit 26e5979
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 226 deletions.
16 changes: 13 additions & 3 deletions py/components/acimbeamfinder/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
ACTIVE_DOC = Rhino.RhinoDoc.ActiveDoc


class ScriptSyncCPy(component):
class ACPyBeamFinder(component):
def __init__(self):
super(ScriptSyncCPy, self).__init__()
super(ACPyBeamFinder, self).__init__()
self._var_output = []

def RunScript(self,
Expand All @@ -47,4 +47,14 @@ def RunScript(self,

o_found = found_breps

return o_found
return o_found

# ############################################################################################
# ## only for DEBUG: erase before componentize
# ############################################################################################
# if __name__ == "__main__":

# comp = ACPyBeamFinder()
# o_found = comp.RunScript(
# i_beam_name
# )
2 changes: 1 addition & 1 deletion py/components/acimbeamfinder/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"subcategory": "utilities",
"description": "Find the beam in the Rhino document by name.",
"exposure": 4,
"instanceGuid": "cf06cb34-3528-4912-adc2-9d46c8048c5f",
"instanceGuid": "6f889d00-c859-4ba8-8ee5-552185512b0f",
"ghpython": {
"marshalGuids": true,
"iconDisplay": 2,
Expand Down
23 changes: 20 additions & 3 deletions py/components/acimexporter/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
ACTIVE_DOC = Rhino.RhinoDoc.ActiveDoc


class ScriptSyncCPy(component):
class ACPyAcimExporter(component):
def __init__(self):
super(ScriptSyncCPy, self).__init__()
super(ACPyAcimExporter, self).__init__()
self._var_output = []

def RunScript(self,
Expand Down Expand Up @@ -120,4 +120,21 @@ def RunScript(self,
# o_AABB = o_debug_bbox
# o__debugger__ = o__debugger_o__

return o_holes, o_cuts
return o_holes, o_cuts


# ############################################################################################
# ## only for DEBUG: erase before componentize
# ############################################################################################
# if __name__ == "__main__":
# comp = ACPyAcimExporter()
# o_holes, o_cuts = comp.RunScript(
# btn,
# i_acim_path,
# i_transform_back,
# i_inflate_AABB,
# i_divide_tolerance,
# i_dump_data,
# i_beams,
# i_GUIDs
# )
Loading

0 comments on commit 26e5979

Please sign in to comment.