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: Watermarks with Ruby?

      Methinks there is no way to do it. I'll check.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Keycode with onKeyUp question

      They are different for the Mac and the PC. In your onKeyUp method, simply put in a "puts" to print out the keycode for any key you press. If you need a keycode for the other platform you might not have, ask.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Script icons

      Well, how big of a dumb ass are you?!! There are examples under the doc for Command#small_icon and #large_icon. Cut and paste either of those (they are the same) into a Notepad session and give 'er a try.

      If you need more help, come back for round #3!

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Script icons

      See the Command and Toolbar classes.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Vector (line) from object to object?

      An observer script could be written to "link" objects to accomplish this.

      posted in Developers' Forum
      T
      todd burch
    • RE: Finding a face's azimuth

      Well, that's easy enough to understand with a picture! Thanks azuby.

      So, all that's needed to determine the azimuth is

      1. you have to know the north angle
      2. you need the face normal.

      Right?

      I'm also guessing an azimuth value is worthless without some type of lat-long to go along with it. Is this correct?

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Finding a face's azimuth

      No help here, but I would like to ask a faavor. Can you draw, in SU, an example that illustrates what an azimuth is? And, how an example one would be calculated? I went to wikipedia and I still don't get it.

      Thanks, Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Face width and height in 2d

      Get the vertices of all 4 corners. Use Point3d#distance from any of the 4 points to the other 3. Throw away the longest distance. The two remaining are length & width (assuming you have a rectangle or square).

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Align a face to a plane ..

      Hey, don't feel bad. I've spent hours writing a script, only to learn myself I had just reproduced functionality that was 2 clicks away already.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Align a face to a plane ..

      Just answered that!! In this forum no less!

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Is there any script to get plane align to camera ?

      I'm not really sure there is a need for such a script.

      If you right click a face, and choose Align View, does that do what you want?

      Todd

      posted in Developers' Forum
      T
      todd burch
    • [Plugin] New Commercial script: LinearLength V2.0

      Not a new script, but it's been "off the market" for quite some time.

      Here's the tutorial about what it does: http://www.smustard.com/script/LinearLength

      Thanks, Todd

      posted in Plugins
      T
      todd burch
    • RE: Sketchup.find_support_files

      Yes, there are several posted... in the old Ruby forum... that is now in Google Groups... whose search facilty works... sort of. It will find the posts, but not let you drill into any of them.

      The alternative is to browse through that Ruby forum page by page, one at a time, in sequential order, with no jumping around, in hopes of finding the post sometime before your teeth fall out.

      There are two methods. .find_support_file and .find_support_files. Try the other one.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Image Shadow ?

      I want to add that this script is pretty cool. I've been beta testing the Mac version for Rick, and even though it doesn't work, yet, it is still pretty neat technology.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Plugins folder in different place/path on computer

      Thanks azuby. I also found a description on my Mac by going into Terminal and typing "man ln". I figured that's what they were.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Plugins folder in different place/path on computer

      I have a Mac. What's a softlink?

      posted in Developers' Forum
      T
      todd burch
    • RE: Plugins folder in different place/path on computer

      The plugins folder itself has to live where it currently lives. However, you can set your system up to have an additional folder (or folders) included in the load path that you have authority to write to. To do this, edit the sketchup.rb script to add an additional path in the routine that preloads all the scripts.

      Also, you can always manually load a script from the ruby console, like this:

      load 'full_path/script_name.rb'

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: How to save user settings across sessions?

      Hi Clark. There is a dropdowns.rb script floating around somewhere that shows how to do mutiple dropdowns in a given dialog. (I wrote it, and dashed lines too!) Check the Didier's Depot, or the old SU Ruby Forum.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: How to save user settings across sessions?

      Yes, it works across platforms. In Windows, it goes into the Registry. On the Mac... I don't know. Perhaps the .plist file. I haven't snooped around enough on the Mac yet.

      Windows has issues with certain characters whne saving to the Registry, so test your values that get saved and retrieved. You may need to encode them somehow.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: QUESTION: making a curved face?

      Anytime you create an arc or a circle, you have the opportunity to change the default number of segments. The default is 12.

      As an example, right after you draw an arc or circle, type 24s and press ENTER if you want to use 24 segments for the shape.

      posted in Newbie Forum
      T
      todd burch
    • 1
    • 2
    • 42
    • 43
    • 44
    • 45
    • 46
    • 44 / 46