sketchucation logo sketchucation
    • Login
    1. Home
    2. wehby
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 14
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] WebGL Cubic Panorama (update 2016-05-06)

      There is an old ruby script by Bakbek that lets you get as well as set camera and target positions. It is called camera_parameters.rb.
      Regards,
      wehby

      posted in Plugins
      W
      wehby
    • RE: [Plugin] WebGL Cubic Panorama (update 2016-05-06)

      Rami,
      Nice work on the script. It contains a lot of the features that I had hoped the next version of CubicPanoOut would contain.
      Regards,
      wehby

      posted in Plugins
      W
      wehby
    • RE: [API] ShadowInfo

      Hi Dan,

      The time in relationship to the user's computer's time zone was pretty confusing for me until I adopted the habit to always put ".utc" after all my new time objects. The problem comes from Ruby (Class:Time), not SkRuby. Time.new creates a time object initialized to the current system time.
      http://ruby-doc.org/core/classes/Time.html

      The ShadowInfo class in SkRuby contains all of the location information. You can use it to set city, timezone offset, latitude and longitude.
      http://code.google.com/apis/sketchup/docs/ourdoc/shadowinfo.html#methods
      Although if you use Ruby to set the city, SU treats it as a custom locale and does not reference the locations.dat file to get the rest of the location information (meaning that you will also have to manually set the timezone offset, latitude and longitude). I guess it would be possible for a Ruby programmer to access the same locations.dat file to automate that process.

      I hope that helps.

      Regards,
      wehby

      posted in SketchUp Bug Reporting
      W
      wehby
    • RE: [API] ShadowInfo

      Dan,

      Try modifying your ShadowTime with ".utc" to fix the issue.

      Please see one of these threads for more info:
      http://groups.google.com/group/sketchupruby/browse_thread/thread/79f9988ab2149ec7/950074b80b134478?lnk=gst&q=wehby#950074b80b134478

      http://groups.google.com/group/sketchupruby/browse_thread/thread/66977a5b79beba6e/655f563bece2c997?lnk=gst&q=wehby#655f563bece2c997

      Regards,
      wehby

      posted in SketchUp Bug Reporting
      W
      wehby
    • RE: Styles Class method Inquiry

      Well, it looks like I have to either just fix my Display Templates to work in SU6 and pretend Styles don't exist (as they didn't when I first wrote the script) or write a script that uses Styles and potential flood the user's SKP with styles.

      Do you think there might be a work around by using send_action?

      -wehby

      posted in Developers' Forum
      W
      wehby
    • RE: Styles Class method Inquiry

      Thanks for your help on this, Jim.

      I'm working on a script that is sort of a combination of your Style Thumbnailer and my own Display Templates ruby scripts. Since my script involves loading styles into a SKP, I wanted to make sure that I provided a way of deleting the styles that I imported. That way I would not be bogging down the file with a bunch of junk. Looks like I will have to do it the hard way...

      Thanks again.

      -wehby

      posted in Developers' Forum
      W
      wehby
    • RE: Styles Class method Inquiry

      Jim,
      This is interesting. Taking your example and testing it a little:

      
      model = Sketchup.active_model
      #returns something like; <Sketchup;;Model;0x5181b38>
      entities = model.active_entities
      #returns something like; <Sketchup;;Entities;0x5181a78>
      entities.count
      #returns; 1
      entity0=entities[0]
      #returns something like; #<Sketchup;;ComponentInstance;0x5181700>
      
      

      The only entity in the model is the Bryce model. If I add several styles and retest entities.count, I still only get 1 entity. I think the parent of styles is model.

      The downside of using purge_unused is that I first have to create scenes that use all of the styles that I don't want to purge, then delete the temporary scenes. But if that's the only way, then I guess I can deal with it.

      Does my test look right?

      -wehby

      posted in Developers' Forum
      W
      wehby
    • Styles Class method Inquiry

      In the ruby doc for the Styles Class (http://groups.google.com/group/SketchUp-Plugins-Dev/web/Ruby-Style.html), I did not see an erase method. Is one inherited?

      Right now, the only way that I can see to delete a style using Ruby is to do the following:

      1. Create a temporary Scene for any style that you want to keep.
      2. Make sure that each of the temporary Scenes reference on of the styles that you are keeping.
      3. Purge Styles.
      4. Delete the temporary Scenes.

      Am I missing something?

      Thank you,
      wehby

      posted in Developers' Forum
      W
      wehby
    • RE: Displaytemplate.rb &amp; ado .rb

      I'm currently working on an updated version of displaytemplate.rb, which will take advantage of Styles. It will be kind of like a cross between Jim's Style Thumbnailer and my own Display Template.

      I believe that Didier's script ADO works in SU6. Is there an aspect of it that is not working for you?

      -wehby

      posted in Developers' Forum
      W
      wehby
    • RE: I will be at Basecamp

      That's great news, Coen. See you there!
      -wehby

      posted in Corner Bar
      W
      wehby
    • RE: 360 Camera

      The javascript ptviewer enables viewing both of Object VR and panoramic VR. Didier wrote a script back in Dec'06 that exports images around an object(vrobj_exporter.rb). With the right HTML template to give instructions to PTViewer.jar, the images created from TBD's Xporter, Didier's VObj exporter, or my cubicpanoout.rb.

      I have already created the template for use with cubicpanoout, it's just a matter of finding the time to alter the script to use ftools to copy ptviewer.jar and the template into the same folder as the images are exported. It looks like Google may beat me to it, since they already have a slick interface and everything (from Web Exporter).

      -wehby

      posted in Developers' Forum
      W
      wehby
    • RE: Car rental from San Francisco

      I just booked one of the special rate rooms at the Avante for June 10, 11, & 12.

      See you all in CA!
      -wehby

      posted in Corner Bar
      W
      wehby
    • RE: Car rental from San Francisco

      Hey guys,

      I'm flying into San Jose 9:59p.m. on the 10th, flying out of San Jose 8:25p.m. on the 13th. I'm not sure what hotel I'm staying in, yet. I hope to have my hotel reservation in the next couple days. Are any of the Google/Entourage Arts block of rooms still available?

      Still open to splitting a room if anyone is interested.

      -wehby

      posted in Corner Bar
      W
      wehby
    • RE: 3D Basecamp 2008 Car Arrangement

      I will post my schedule as soon as I know something. I'm looking at flying in on Wednesday morning, and flying out on Friday night. I'm not sure if I'll be flying into San Francisco or San Jose, yet. I'm trying to do this thing "on the cheap." It is an extra un-anticipated expense this year, but I did not want to miss another Basecamp. I'm super excited!

      Thanks for setting this up, Coen.

      -wehby

      posted in Corner Bar
      W
      wehby
    • 1 / 1