sketchucation logo sketchucation
    • Login
    1. Home
    2. dolf
    3. Posts
    βŒ› Sale Ending | 30% Off Profile Builder 4 ends 30th September
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Slider controlers missing

      Problem solved: The slider dialog is constructed in ControlPanel.rb by:

          $PhysicsControlPanelDialog=UI::WebDialog.new("SketchyPhysics Control Panel", true,"bzasdfasdfa12ctrasaa123", 290, 200, 1000,800, true)
      

      I looked up WebDialog.new and guessed from the missing description that the parameters with values here 1000 and 800 are width and height. Like cdauscher, I'm trying to use the stuff on a notebook - replacing 1000 and 800 with e.g. 600 and 400, I get a small but nice window of sliders. 😍

      Bug in WebKit: windows that are as big or bigger than screen size (mine is 1280*800) don't get displayed.

      posted in SketchyPhysics
      D
      dolf
    • RE: Slider controlers missing

      I'm messing around with ControlPanel.rb now - I found out that when I start one of those models that are supposed to have sliders, the slider UI is being constructed, and there don't seem to be any errors during that. The function showControlPanel writes HTML code with UI elements into
      C:\Programme\Google\Google SketchUp 6\Plugins\SketchyPhysics\SketchyUI\ControlPanel.html.

      Opening that file with either MSIE6 or FF, I just get a blue screen (does that sound familiar to anyone?) Inside that file, a commented-out test slider exists, and when I uncomment that, either browser displays it just fine (with some Javascript errors of course because there is no listener for the slider's update events).

      I then conclude that the blue bottom of my SketchyPhysics Inspector is showing ControlPanel.html, and that this is the place I should be looking for sliders.

      Am I right so far?

      Dolfi

      posted in SketchyPhysics
      D
      dolf
    • RE: Slider controlers missing

      When I open a SketchyPhysics model and look at the Ruby console, I see "dialog closed", but the Inspector is still open. When I close that one as well, I see "dialog closed" again. I might have closed the slider window somehow accidentally. From the answers to another post in this forum I learned that the dialog close status of the Inspector window is saved upon exit of Sketchup. It might be the same with the slider window. Some ideas pop up:

      • where is that dialog close status being saved?
      • since the Inspector needs a button to open it, maybe the slider window needs one as well, or the Inspector open button should also explicitly open the slider window
      • the SketchyPhysics UI seems to be based on Ruby to some extent - might there be a way to find out more about the problem using Ruby, e.g. with the Ruby console?
      posted in SketchyPhysics
      D
      dolf
    • RE: Slider controlers missing

      I never see the sliders, e.g. when I open that robot arm example.

      So far I've checked (since I figured out that Sketchup and its plugins are using the WebKit for its GUI) whether firefox which is my standard browser and MSIE6 display the sliders in ...SketchyPhysics\dhtml-suite-for-applications\demos directory, and they both look OK.

      puzzled. Dolfi

      posted in SketchyPhysics
      D
      dolf
    • Slider controlers missing

      Hi everybody,

      while I somehow manage to build simple models with Sketchyphysics 2.0, I'm still desperately searching those slider controls (like the ones that control the joints of that way cool hand in the example zip file). I figure that the SketchyPhysics inspector must contain them, and from the right-button context menu on the inspector I conclude that this is the MS internet explorer in disguise. Is it possible that I need a newer version of MSIE? (yuck...)

      posted in SketchyPhysics
      D
      dolf
    • 1 / 1