You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there a method in the Cadwork API that allows me to enable ViewerMode?
#166
I'm at a stage of exporting .html files, so I need to go into each scene of my project, enable viewer mode, use the WebGL method, and then disable viewer mode, repeating this process for the next scene.
I tried enabling viewer mode for all objects in Cadwork. It can calculate, but Cadwork crashes shortly afterward. However, when I go scene by scene enabling viewer mode, it doesn't crash.
import scene_controller as sc
import file_controller as fc
import element_controller as ec
scene_list = sc.get_scene_list()
file_path = 'C:\\Users\\Test\\HTML\\'
for scene_name in scene_list:
file_name = file_path + scene_name + '.html'
scene_elements = sc.get_elements_from_scene(scene_name)
#maybe something like "ec.viewer_mode(scene_elements)"
fc.export_webgl(scene_elements, file_name)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm at a stage of exporting .html files, so I need to go into each scene of my project, enable viewer mode, use the WebGL method, and then disable viewer mode, repeating this process for the next scene.
I tried enabling viewer mode for all objects in Cadwork. It can calculate, but Cadwork crashes shortly afterward. However, when I go scene by scene enabling viewer mode, it doesn't crash.
All reactions