Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download
[Solved] WedDialog- how to debug?
-
Is there any way in order to get the console.log directly from a webdialog? Redirect to a file for example is a feasible way?
EDIT [Solution]: Just use the mechanism Ruby <==> WebDialog.....and substitute every console.log with your new function....
[HTML]
var callRubyCONSOLELOG = function(data) { query = 'skp;sendMessage2CONSOLELOG@' + data; window.location.href = query; }[RUBY]
myWebDialog.add_action_callback("skp;sendMessage2CONSOLELOG") do |web_dialog, message| puts(message) end
Advertisement