sketchucation logo sketchucation
    • Login
    1. Home
    2. todd burch
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    โš ๏ธ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 55
    • Posts 903
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Web Dialog - how to

      @pixero said:

      I've just started to learn how to make a web dialog and have some questions.
      More will probably follow...

      1. I want to show a default value in the webdialog that the ruby script gets from SketchUp. Something like a points x, y and z coordinates. Is it possible and how do i do it?

      Depends. Are you building the HTML in the ruby script, or using a canned separate file for the HTML? (It's not so much "it depends", as it is what approach you take depends on how easy any given solution is.)

      @unknownuser said:

      1. Can you dim/deactivate/hide certain elements in a web dialog and activate them based on a checkbox state?

      Yes. Standard HMTL applies. (or DHTML, or XHTML, whatever you are using). Look at DOM EVENT programming and javascript.

      @unknownuser said:

      1. Is it possible to change some text (The description of a parameter) in a webdialog based on a checkbox state?

      Yes. See 3.

      @unknownuser said:

      1. How does "ValueChanged" work? Can I have it "executing" the script if I change a numeric value and press enter? (I don't want a OK button.)

      Call me lazy to not look it up, but what is "ValueChanged"? Actually, with EVENT programming, you don't even need to press ENTER. (And, there may be a bug with pressing ENTER on either IE or Safari - and the WebDialog box will go away). You can use any event to validate, or callback to sketchup. For instance, the DOM EVENT onblur() could be used to do a callback to SketchUp when someone TABS out of an inputbox. Lots of possibilities here.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: MacPro: "NVIDIA GeForce 7300 256 MB" or "ATI Radeon X1900 51"

      I have the NVIDIA 7300 in my MacPro (3ghz, 2GB ram). It works OK. Overall, it's acceptable.

      I do remember seeing someone post an issue with the ATI X1900 on this machine some time back. Search the old Pro forums on GGroups.

      Todd

      posted in Hardware
      T
      todd burch
    • RE: SketchUp API Blog

      Not only there an API blog, but all the Ruby documentation is now in a wiki style format.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: RB licensing for scripts in Ruby Script Depository?

      Each script usually contains in it some copyright and/or license clause. Most scripts (if not all) that are available from that website are free to use for personal or commercial use - but read the script itself to be certain. You can open the script with a simple text editor. Occasionally, the author will encrypt a script so you can't read it. If that's the case, then from your perspective, consider it free to use.

      Also, be sure to check out http://www.smustard.com for several commercial grade scripts.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Disability issues

      No can do with Ruby. I bet Google would be interested in hearing this feature request.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Ellipse Ruby-Is there?

      @unknownuser said:

      Godddddd, this is such a great site ๐Ÿ’š

      Kind of like the phrase... "It's not just a house, it's a home"

      Well, for here, it's not "the site". It's "the community".

      And yes, it is amazing.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Ruby Tutorial

      Hi reluma.

      Ruby on Rails is a framework for web site development. It is written in the Ruby Scripting language, and it generates Ruby scripts as well. So, they are really not the same. Think of Ruby on Rails as an application witten in Ruby for folk who create web sites.

      You can start your learning journey by going into Help in SketchUp and selecting "Ruby Help". That will give you some basics of what the Ruby API within SketchUp does and can do. Look at the examples that come with SketchUp.

      There are lots of Ruby Language Tutorials on the web. Search and you'll finds lots of them.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Question - a way to select a set of veritces/end points

      Even right now, there is no limit on the number of points Nudge can move. The hassle right now, for you, is drawing the handles. I drew one and then move/copied it to the other points. For a dozen, no big deal. To move mass quantities, a better selection method is in order. I could do a "create handles from endpoints and then select them all" script if you wanted to grab all vertices within a selection region.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Question - a way to select a set of veritces/end points

      John, will Nudge work for you? How many points are we talking?

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Question - a way to select a set of veritces/end points

      Hi John. Unfortunately, you can't just select vertices so easily. However, some type of inferencing could be done between the user and a script, so as you could communicate which endpoints of which lines you wanted to affect.

      I'm visualizing "handles" of some sort that could be defined, by the script, and placed by you, for you to specify which points you wanted to work with. See attachment. Visualize the red lines as specifiers that those are the vertices you want to lift up or sink down.

      Actually, using the existing nudge script, you can do this. Ease of use however, depends on how many vertices you want to deal with. This takes advantage of SketchUp stickiness.

      Is this what you mean?

      Todd

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

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

      posted in Developers' Forum
      T
      todd burch
    • RE: Question - Can User Defined Axis be recognized in Ruby?

      In Ruby, you can define a new set of axes. However, I have never worked with them and the current documentation is pretty sparse. There have been a few discussions on their use, and I seem to recall that they might not even be working correctly.

      Are you referring to component or group axes? If so, this shouldn't be a problem, the script should be taking those into account.

      Got an example?

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: SU Selection Object

      You are correct. You can count on the order of selected items to be random.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Umlaut in file name

      Yes.

      Bummer.

      Raise a stink.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Umlaut in file name

      Sketchup has issues with ASCII char codes coming in from Ruby that are > X'7F'. I reported this bug when I wrote the 3D Text tool - same issue - German users wanted to use their alphabet and SketchUp hosed the string. Other diactitics failed too.

      In this latest maintenance release, M3, a lot of work was done for internationalization. Perhaps they fixed it. I've downloaded the Mac version, but have not installed it yet.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: WebDialog in MacOSX

      SketchUp on Windows uses IE for webdialogs (not FireFox, not Opera, etc.). Sketchup on the Mac only uses Safari for webdialogs.

      Are you saying that if IE is installed on the Mac, that SketchUp is using IE in preference over Safari? This is new news if this is so. And, a pain in the hiney for webdialog developers, because some of us (err, me!) don't have IE for Mac. I bought a Mac to distance myself away from IE and MS Office.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: .rbs files not loading at all.

      I guessed wrong. There is a Sketchup.require. Use it.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: .rbs files not loading at all.

      Try this:

      Sketchup.load("myscript.rbs")
      Then do the require.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Odd Ruby Error

      try elsif

      Todd

      posted in Developers' Forum
      T
      todd burch
    • [Plugin] TextLabelOverride V1.0 ($)

      This allows you to override the default text when adding Text Notes with Leaders. You can now set the default text to either the Name of the Material, or, you can set it to the Perimeter Length of the face. If you don't click on a face, there will be no change to the default text.

      Tutorial and more info here:

      http://www.smustard.com/script/TextLabelOverride

      Todd

      posted in Plugins
      T
      todd burch
    • RE: Does it exist a "repeat last command" script??

      I would call that "recording of a macro". And as of today - no can do. Sketchup is closer to being able to do this with V6, but there are not enough "hooks" to get there yet.

      It would be a nice feature.

      Todd

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