sketchucation logo sketchucation
    • Login
    1. Home
    2. todd burch
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 55
    • Posts 903
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Vcb and circles

      Gai's solution will work for integers. A better solution is to make sure one of the numbers you enter contains a .0 to make it a float. To follow his example, although it works in this case, you would change it to 1000/2.0.

      As an example, entering 5/2 will give you a radius of 2.
      Entering 5/2.0 will give you a radius of 2.5.

      Todd

      posted in Newbie Forum
      T
      todd burch
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      Prettttttty cool!

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Look around tool in ruby?

      I should have said "with camera.set by changing the direction and tilt", but I think you understood.

      You say "why doesn't my code work, because I am doing that".

      Now, I have to say, I need to see your code to tell you why your code does not work, intead of trying to guess what you are doing wrong. There are a couple ways to approach this. It's too brain-racking to try and guess.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Look around tool in ruby?

      With Camera.direction and Camera.up.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      Here's some virtual "grass" on top of the grass texture. 😐

      Todd

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture 19.png

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      Gai, it will work with whatever I tell it to work with! LOL!

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      Justin, give me an example of what you mean by "styled." I suspect not, other than a few patterns and several colors (actually, I might be able to get any SU named color).

      I think I can randomize the pattern, color and thickness all in the same view, which might end up pretty crazy looking.

      If you think of the protractor tool and the rotate tool - I can do the same things with pretty much any pattern. A thought cloud could be drawn, or a light bulb with the circular array of light-rays.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      Same purple box with a solid line. Note the corners. Yuk.

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture 18.png

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      It's the PURPLE MONSTER!!

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture17.png

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      By the way, I have the script set up to increase the line thickness by 1 pixel each time the left mouse button is clicked. It appears the max thickness is somewhere between 30 and 35 pixels, which is pretty wide... too wide.

      Right now, the wider the lines get, the more the endpoints don't match up - but that could be compensated for.

      Also, you get your choice of line color (limited) and pattern (also limited). πŸ˜„

      Here's the same box with a hairy green outline.

      Todd

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture 17.png

      posted in Developers' Forum
      T
      todd burch
    • RE: Adjustable Line Widths aka Fat Lines

      It does kinda add a lot of emphasis if you want to bring attention to soemthing.

      Todd

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture 16.png

      posted in Developers' Forum
      T
      todd burch
    • Adjustable Line Widths aka Fat Lines

      I can produce fat lines around geometry with a script. Just select all the faces for which you want a fat edges, and run the tool. No big deal, really.

      Now, they won't File>Print, and they won't come out when exporting to a 2D graphic or PDF. However, on Windows, ALT+Print Screen works, and APPLE+SHIFT+3 or 4 works on the Mac.

      Any need for such a limited use feature?

      A sample comparison is attached. Typical lines on the left (unaltered). It's probably 5 pixels wide, whereas the typical exterior edge is 2 pixels.

      Todd

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture 15.png

      posted in Developers' Forum
      T
      todd burch
    • RE: UI Messagebox within LMB method of a tool

      Can you post your code? It works great for me in the onLButtonDown method, both before and after the view.invalidate call.

      Todd

      If you don't want to post, send it to my fullname, no spaces, to my mac dot com address.

      posted in Developers' Forum
      T
      todd burch
    • RE: UI Messagebox within LMB method of a tool

      The .draw method is called every time you execute the view.invalidate method. Therefore, you control when the screen gets updated.

      I know of no restrictions that UI.messagebox can only be placed in the .draw method. It can be placed anywhere. (I just tested it to confirm in both the onLeftButtonDown and initialize method).

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: 3d interaction objects?

      @unknownuser said:

      is there a new version of sketchup.rb for su pro 6? where can i find it?

      In Google SU V6 (pro & free) it's on your machine already in the /Tools folder. Leave it there - it's just fine. That notice you quoted is telling you to not copy your V5 scripts (those mentioned) to SU V6.

      Yes, the bezier script works fine in SU V6.

      An "observer" is a type of ruby script that "watches" what you do in SketchUp. When you do certain things, the ruby script can act upon it and provide the desired behavior.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Increasing vertices/planes

      When drawing new geometry (curves, arcs, circles) you can increase the number of segments used via the VCB. And, depending on what other geometry touches the geometry you want to modify later, you can use the right-mouse-buttom (RMB) Entity Info context menu to increase the segmentation.

      Todd

      posted in Newbie Forum
      T
      todd burch
    • RE: Question on another Forum.

      They were custom scripts. So, no, I can't point you to them. They are not for public consumption. You can point the guy to Smustard.com
      contact page though!

      http://www.smustard.com/contact/

      Todd

      posted in Newbie Forum
      T
      todd burch
    • RE: Question on another Forum.

      I have written a couple custom scripts in this area, so yes, it can be done. Pretty much any shape can be drawn like this and brought in to SketchUp in an automated fashion. One script was just that - being in cubes and cylinders that were used to represent other entities. The initial "massing" was done with the script I wrote.

      Todd

      posted in Newbie Forum
      T
      todd burch
    • RE: Smustard

      Download problems are fixed. Todd

      posted in Plugins
      T
      todd burch
    • RE: What is wrong with this script?

      The doc is bad. Use .casts_shadows=.

      To see the methods a entities allows, in the Ruby Console, enter (for example, with a face)

      (face.methods - Object.methods).sort.join("\n")

      Todd

      posted in Developers' Forum
      T
      todd burch
    • 1 / 1