Updated the script template to be CQGI-compliant.
This commit is contained in:
parent
6bfe99eac7
commit
8c10491639
|
@ -1,7 +1,11 @@
|
||||||
# This is a CadQuery script template
|
# This is a CadQuery script template
|
||||||
# Add your script code below
|
# Add your script code below
|
||||||
import cadquery as cq
|
import cadquery as cq
|
||||||
from Helpers import show
|
|
||||||
|
|
||||||
|
# The show function will still work, but is outdated now
|
||||||
# Use the following to render your model with grey RGB and no transparency
|
# Use the following to render your model with grey RGB and no transparency
|
||||||
# show(my_model, (204, 204, 204, 0.0))
|
# show(my_model, (204, 204, 204, 0.0))
|
||||||
|
|
||||||
|
# New method to render script results using the CadQuery Gateway Interface
|
||||||
|
# Use the following to render your model with grey RGB and no transparency
|
||||||
|
#show_object(result, options={"rgba":(204, 204, 204, 0.0)})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user