Skip to content

Commit

Permalink
feat(skp): add bake for sketchup
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonelloDN committed Jun 6, 2022
1 parent d479827 commit 52bfbdd
Showing 1 changed file with 32 additions and 20 deletions.
52 changes: 32 additions & 20 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,36 @@
add_viewer(vtk_file)


if not first_try and platform == 'rhino':

inputs.send(
data=hb_model.to_dict(),
unique_id=str(uuid.uuid4()),
default_checked=False,
is_pollination_model=True,
label='View design option',
key='architext option',
)
if not first_try:
if platform == 'rhino':
inputs.send(
data=hb_model.to_dict(),
unique_id='rh-option',
default_checked=False,
is_pollination_model=True,
label='View design option',
key='rh-option',
)

button.send(
action='BakePollinationModel',
data=hb_model.to_dict(),
unique_id=str(uuid.uuid4()),
options={
"layer": "architext_option",
"units": "Meters"
},
key='bake-geometry',
)
button.send(
action='BakePollinationModel',
data=hb_model.to_dict(),
unique_id='rh-geometry',
options={
"layer": "architext_option",
"units": "Meters"
},
key='rh-geometry',
)
elif platform == 'sketchup':
button.send(
action='BakePollinationModel',
data=hb_model.to_dict(),
unique_id='skp-geometry',
options={
"layer": "architext_option",
"units": "Meters"
},
key='skp-geometry',
platform=platform
)

0 comments on commit 52bfbdd

Please sign in to comment.