Progress?
Added this, at the beginning of the Ruby callback:
script = 'rubyReturned( "Hi, JS, how ya doin\'" )'
js_wd.execute_script( script )
The JS 'rubyReturned' function popped the message up in an alert box, so it was called and executed correctly. Then got an error on the next line of JS (reasonable, since "Hi, JS, how ya doin'" is not valid JSON).
The troubling error, at the ridiculous line number, pops next. This is the offending script:
rubyReturned( "{ layers;[ 'Layer0', 'basement', 'basement_ceiling', 'ground_floor', 'apartment_floor', 'apartment_built_ins', 'hidden', 'apartment_furniture', 'apartment_inside_walls', 'outside_wall_front', 'outside_wall_right', 'outside_wall_back', 'outside_wall_left', 'attic', 'roof_front', 'roof_back' ], scenes;[ '01 start', '02 outside, back-left', '03 outside, back-right', '04 outside, front-right', '05 outside, zoom out', '06 outside, closer, no apartment', '07 outside, close, no apartment floor', '08 outside, close, no ground floor', '09 above, basement', '10 above, basement w/ceiling', '11 above, carriage garage', '12 outside apartment door', '13 outside, apartment added', '14 above apartment, wo roof_front', '15 outside apartment, wo outside_wall_front', '16 outside, facing dinette and attic', '17 outside "ladder", w outside_wall_front', '18 outside facing livingroom, roof_front replaces roof_back', '19 zoom in to livingroom' ], vis;'VVVVVVVVVVVVVVVVVVVIIIIIIIVVVVVVVVVVVVVVVVVVVVIVVVVVVVVVVVVVVVVVIIIVVVVVVVVVVVVVVVIIIIIIVVVVVVVVVVVVIIIIIIIVVVVVVVIIIIIIIIIIIIIIIIIIIVVVVVIIIIIIIVVVVVVVVVVVVIIIIIIIVVVVVVVVVVVVIIIIIIIVVIIVVVVVVVVIIIIIIIVVVVVVVVVVVVIIIIIIIVVVVVIIVVVVVIIIIIIIVVVIIIIIIIIIIIIIIIIIVVVIIIVVVVVIIIIIIIVIIIIVVVVVVVIIIIIIIVVVVVII' }" );