sketchucation logo sketchucation
    • Login
    1. Home
    2. tbd
    3. Posts
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 37
    • Posts 600
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: View.invalidate vs view.refresh

      @unknownuser said:

      The WM_PAINT message is generated by the system and should not be sent by an application. (source

      @unknownuser said:

      Most drawing carried out during processing of the WM_PAINT message is asynchronous; that is, there is a delay between the time a portion of the window is invalidated and the time WM_PAINT is sent. During the delay, the application typically retrieves messages from the queue and carries out other tasks. The reason for the delay is that the system generally treats drawing in a window as a low-priority operation and works as though user-input messages and messages that may affect the position or size of a window will be processed before WM_PAINT . (source

      so .invalidate pushes WM_PAINT in message queue which will call the draw method from WindowProc sometime later and .refresh will immediately call the draw method.

      too many .refresh will result in a slower workflow due unnecessary redraws instead of mixing all (system + code) in one draw.

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Ruby API Bugtracker?

      of course this forum ๐Ÿ˜‰

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Ruby API Bugtracker?

      we can use the issues api to make a list and integrate it on the forum as well ๐Ÿ˜‰

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Ruby API Bugtracker?

      we can use github issues - we can create a Sketchup Ruby project and put the problems in the issues, tutorials in the wiki and code in repository

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Obama in Ireland

      you can see from this point of view that the front wheels are busted - nice Achilles heel ๐Ÿ˜„

      [flash=560,349:1dhcytar]http://www.youtube.com/v/Pf2v9yvIH4I[/flash:1dhcytar]

      posted in Corner Bar
      tbdT
      tbd
    • Obama in Ireland

      ๐Ÿ’š
      [flash=560,349:1k7m8qdm]http://www.youtube.com/v/yo5zH0Il8B0[/flash:1k7m8qdm]

      posted in Corner Bar
      tbdT
      tbd
    • RE: Website help.

      solo: take a look at http://goodsie.com/ (create a custom shop with easy & realtime preview controls) and http://fetchapp.com (easy processing of orders)

      posted in Corner Bar
      tbdT
      tbd
    • RE: Interest in a Networking Sockets Workaround

      @unknownuser said:

      (1)Put your code in normal RDE console
      (2)Execute SUB script via Toolbar->Macro->SUB

      yup, that is the workflow to use SketchUp Bridge. there is no need to install separately Ruby 1.8.6, but it helps in developing (checking source, running quick tests outside Sketchup in an automated way, ...)

      posted in Developers' Forum
      tbdT
      tbd
    • 2min of music in 4kb Javascript

      http://synth.bitsnbites.eu/

      "This small JavaScript program will generate and play a two minutes long piece of music.

      Small? Yes, it's just 3822 bytes, which is actually less than the size of the HTML document that you're currently reading!

      The sound is generated with CD quality (44.1KHz, 16 bits stereo), and the size of the generated tune is 21 megabytes (all done client side, in your browser!). As a little bonus, the demo also has some animated graphics (courtesy of HTML 5 canvas)."

      I managed to extract the audio and made a MP3 for those that have slow browsers.

      posted in Corner Bar
      tbdT
      tbd
    • RE: Interest in a Networking Sockets Workaround

      RabidCicada how do you run the code in RDE ? from that error it looks that you dont use sub.exe to send the code from RDE to SketchUp via SketchUp Bridge

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Download files with a SketchUp plugin

      pros for C/C++ ruby extension
      โ€ข you can download directly to memory without the need to save to disk first
      โ€ข no need to spawn to command line - faster
      โ€ข provide a progress bar / cancel without the need to poll curl output
      โ€ข smaller package size

      cons
      โ€ข must code it ๐Ÿ˜‰

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Download files with a SketchUp plugin

      @unknownuser said:

      It would be nice if Mac users could force Sketchup to load a newer ruby version

      I "upgraded" my Sketchup Ruby to 1.8.7 using this trick

      I think it is more easy to create an extensions (PC/Mac) which downloads the file from a given URL (with redirect and authentification) than packaging curl

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Determine OS bit version with ruby

      as I dont have 64bit Windows to test it up, take in account this as well - "The %ProgramFiles% itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit"

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Determine OS bit version with ruby

      why do you need that in the first place ?

      for me (OSX), the ruby command 1.size is

      • 4 -> 32 bit SU Ruby
      • 8 -> 64 bit command line Ruby

      on Windows you can check for GetSystemWow64Directory as it is not present on 32bit version

      posted in Developers' Forum
      tbdT
      tbd
    • Realtime Path Tracing in your browser

      WebGL Path Tracing

      favicon

      (madebyevan.com)

      Realtime Path Tracing using webGL in your browser (tested in Chrome). You can move the objects and the light inside the scene, change the material (diffuse, mirror, glossy) and load some test scenes.

      it can slow down your computer to a crawl, so make sure you save your work first ๐Ÿ˜‰

      render.jpg

      posted in Corner Bar
      tbdT
      tbd
    • RE: Interest in a Networking Sockets Workaround

      the client bridge, the one that runs inside Sketchup in ruby code must return quickly otherwise Sketchup UI will freeze in "white death" as it is mono thread

      posted in Developers' Forum
      tbdT
      tbd
    • SketchChair - design and build your own chair

      http://www.sketchchair.cc/

      SketchChair will be a free, open-source software tool that allows anyone to easily design and build their own digitally fabricated furniture.

      It is a kickstarter funded project and need $4000 more till May 12. Love the idea of creating miniature chairs.

      http://www.diatom.cc/kickstarter/system_640.png

      posted in Corner Bar
      tbdT
      tbd
    • [VIDEO] Realtime Mega Meshes

      Mega Meshes - Modelling, rendering and lighting a world made of 100 billion polygons ... and it's running on a stock xbox360 at 30fps ๐Ÿ˜ฎ

      Tech behind it PDF

      [flash=600,400:24a3rqoa]http://www.youtube.com/v/M04SMNkTx9E?version=3[/flash:24a3rqoa]

      posted in Corner Bar
      tbdT
      tbd
    • RE: [Plugin] Roof.rb

      @tig said:

      If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
      If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all ๐Ÿ˜’

      after some debugging at 2am I found the problem - scrambled scripts and pack eval encrypted scripts both return (eval) for FILE , so when tested with file_loaded? the one that gets loaded second it will not execute the block after (usually menu creation code)

      workaround: use file_loaded("your_filename") or file_loaded("reverse URI")
      eg file_loaded("roof.rb") or file_loaded("ro.plugins.drop")

      posted in Extensions & Applications Discussions
      tbdT
      tbd
    • RE: Akshell.com - web based javascript IDE

      for writing server code ๐Ÿ˜‰ I usually do it on heroku as I can use Ruby, but on akshell everything is in the browser, with no install needed.

      posted in Developers' Forum
      tbdT
      tbd
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 29
    • 30
    • 5 / 30