sketchucation logo sketchucation
    • Login
    1. Home
    2. Jim
    3. Topics
    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!
    πŸ”Œ Easy Offset | Offset selected faces in SketchUp in positive and negative offsets. Download
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 406
    • Posts 4,216
    • Groups 2

    Topics

    • J

      Baby Instructions

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      7
      0 Votes
      7 Posts
      409 Views
      PixeroP
      That was funny.
    • J

      Registry Entries / SketchUp-Ruby Dos and Don'ts

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      352 Views
      No one has replied
    • J

      SketchUp Ruby Dos and Don'ts (Best Practices)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      2k Views
      Dan RathbunD
      @morisdov said: @jim said: Please add your own "Do and Don't" recommendations for writing SketchUp Ruby code. DO wrap your plugin in a module (namespace) to avoid clashes. DON'T use another person's registry keys, namespaces, or attribute_dictionaries. The problem is you dont know who might have used what "name" , there are far too many other people out there for one to research their obvious common sence choices of keywords. NO .. it's actually easy. If you stay in YOUR namespace, you can have your Plugin module(s) be any name and they will not clash. Then.. use the namespace nesting to construct a unique registry key: module Author module Widget # Construct a registry key to save the plugin options under; # @@opt_key = "Plugin_#{Module.nesting[0].name.gsub(/(;+)/,"_")}" # Remove whitespace and non-word chars (just in case.) @@opt_key = @@opt_key.gsub(/\s+/,"_").gsub(/\W+/,"") # the key will be; "Plugin_Author_Widget" end end Then you can use the registry key also as a prefix for any AttributeDictionary objects that this plugin uses: module Author;;Widget @@dictFlags = "#{@@opt_key}_Flags" # create the dictionary @dict = ent1.attribute_dictionary( @@dictFlags , true ) # the dictionary will be; "Plugin_Author_Widget_Flags" end #module Obviously,.. you replace the word "Author" with your own namespace identifier, and choose the name of your own plugin sub-modules, and their dictionary names.
    • J

      Detect Ctrl outside a Tool

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      15
      0 Votes
      15 Posts
      2k Views
      fredo6F
      Too bad, as I thought we had a method to provide a utility libraries based on operating system, but portable between PC and Mac. I guess this is possible, but we just need to package to offer the same interface, even with different code and binaries underneath Thanks anyway for this contribution. I'll try to have a closer look whenever I have some time left.
    • J

      Mouse Utilities

      Watching Ignoring Scheduled Pinned Locked Moved Hardware, Software & Gadgets
      1
      0 Votes
      1 Posts
      395 Views
      No one has replied
    • J

      SketchUp-Ruby Resources

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      29
      0 Votes
      29 Posts
      121k Views
      Dan RathbunD
      ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |--<<< RUBY RESOURCES >>>--| ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Ruby Newbie's Guide to Getting Started viewtopic.php?f=180&t=10142&start=15#p298780 TUTORIALS & PRIMERS ~ Ruby (Generic) ~ Introduction to Ruby http://www.ruby-doc.org/docs/Tutorial/ Ruby User's Guide by Mark Slagell, Iowa State University http://www.rubyist.net/~slagell/ruby/ Ruby Study Notes by Satish Talim http://rubylearning.com/satishtalim/tutorial.html Learn to Program by Chris Pine http://pine.fm/LearnToProgram/ ~ Sketchup Specific ~ Edges to Rubies - The Complete SketchUp Tutorial by Martin Rinehart http://www.martinrinehart.com/models/tutorial/ Ruby Tutorials SketchUcation Forums http://forums.sketchucation.com/viewtopic.php?p=52665#p52665 Tutorial Index SketchUcation Forums http://forums.sketchucation.com/viewtopic.php?f=18%26amp;t=8767 BOOKS ~ Offline (PDF, CHM, TAR, etc.) ~ The Book of Ruby by Huw Collingbourne ** PDF http://www.sapphiresteel.com/IMG/zip/book-of-ruby.zip The Little Book of Ruby by Huw Collingbourne ** PDF http://www.sapphiresteel.com/IMG/pdf/LittleBookOfRuby.pdf Mr. Neighborly's Humble Little Ruby Book by Jeremy McAnally ** PDF http://www.humblelittlerubybook.com/book/hlrb.pdf Programming Ruby - The Pragmatic Programmer's Guide, 1st Ed. (aka "The Old Pick-Axe Book" circa Ruby ver 1.6.x) by David Thomas and Andrew Hunt ** TAR archive of website http://phrogz.net/ProgrammingRuby/ProgrammingRuby_20061016.tar.gz ** CHM edition file is included w/ Win 1.8.6 One-click install see your /ruby/doc directory OR [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=10142%26amp;p=431798#p431798:23sdyhrr]download from SketchUcation[/url:23sdyhrr] Extending Ruby 1.9 - The Pragmatic Programmer's Guide by David Thomas [url:23sdyhrr]http://media.pragprog.com/titles/ruby3/ext_ruby.pdf[/url:23sdyhrr] Ruby Best Practices by Gregory T. Brown ** PDF http://sandal.github.com/rbp-book/pdfs/rbp_1-0.pdf Automatic SketchUp by Matthew Scarpino, Eclipse Engineering LLC [url:23sdyhrr]http://www.autosketchup.com/downloads/Automatic_SketchUp.pdf[/url:23sdyhrr] ~ Online ~ [i:23sdyhrr]Ruby Essentials[/i:23sdyhrr] Techotopia [url:23sdyhrr]http://www.techotopia.com/index.php/Ruby_Essentials[/url:23sdyhrr] Programming Ruby - The Pragmatic Programmer's Guide, 1st Ed. (aka "The Old Pick-Axe Book" circa Ruby ver 1.6.x) by David Thomas and Andrew Hunt [url:23sdyhrr]http://phrogz.net/ProgrammingRuby/frameset.html[/url:23sdyhrr] OR [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=10142%26amp;p=431798#p431798:23sdyhrr]download from SketchUcation[/url:23sdyhrr] ~ Previews of Ruby Books for Sale ~ [i:23sdyhrr]Learn to Program, 2nd Ed.[/i:23sdyhrr] by Chris Pine (expanded from the original tutorial) [url:23sdyhrr]http://www.pragprog.com/titles/ltp2/learn-to-program-2nd-edition[/url:23sdyhrr] [i:23sdyhrr]Programming Ruby - The Pragmatic Programmer's Guide, 2nd Ed.[/i:23sdyhrr] (aka "The New Pick-Axe Book" circa Ruby ver 1.8.x) by David Thomas, with Chad Fowler and Andrew Hunt [url:23sdyhrr]http://pragprog.com/titles/ruby/programming-ruby[/url:23sdyhrr] [i:23sdyhrr]Programming Ruby 1.9: The Pragmatic Programmers' Guide[/i:23sdyhrr] by David Thomas, with Chad Fowler and Andrew Hunt http://pragprog.com/titles/ruby3/programming-ruby-1-9 [i:23sdyhrr]The Ruby Programming Language[/i:23sdyhrr] by David Flanagan and Yukihiro Matsumoto http://books.google.com/books?id=jcUbTcr5XWwC%26amp;lpg=PA98%26amp;ots=fHGordbwjC... TECHNICAL REFERENCES [i:23sdyhrr]Ruby Cheatsheet[/i:23sdyhrr] [url:23sdyhrr]http://www.zenspider.com/Languages/Ruby/QuickRef.html[/url:23sdyhrr] [i:23sdyhrr]Ruby Base Classes - circa ver 1.6.x[/i:23sdyhrr] (but most still OK for 1.8.x which has more methods) [url:23sdyhrr]http://phrogz.net/ProgrammingRuby/builtins.html[/url:23sdyhrr] [i:23sdyhrr]Ruby Core Documentation[/i:23sdyhrr] (may be ver 1.9.x) [url:23sdyhrr]http://www.ruby-doc.org/core/[/url:23sdyhrr] [i:23sdyhrr]RDoc Documentation[/i:23sdyhrr] [url:23sdyhrr]http://rdoc.rubyforge.org/[/url:23sdyhrr] [i:23sdyhrr]RubyGems User Guide[/i:23sdyhrr] [url:23sdyhrr]http://rubygems.org/read/chapter/1[/url:23sdyhrr] [i:23sdyhrr]RubyGems Manuals[/i:23sdyhrr] [url:23sdyhrr]http://docs.rubygems.org/[/url:23sdyhrr] INDEXES [i:23sdyhrr]Resources[/i:23sdyhrr] (SketchUp Sage) [url:23sdyhrr]http://sites.google.com/site/sketchupsage/resources[/url:23sdyhrr] SKETCHUP SPECIFIC ~ API ~ [i:23sdyhrr]SketchUp Ruby API Cheatsheet[/i:23sdyhrr] by Alex Schreyer [url:23sdyhrr]http://www.alexschreyer.net/cad/sketchup-ruby-api-cheatsheet/[/url:23sdyhrr] [i:23sdyhrr]SketchUp Ruby API[/i:23sdyhrr] [url:23sdyhrr]http://code.google.com/apis/sketchup/[/url:23sdyhrr] [i:23sdyhrr]SketchUp Ruby API - Class Index[/i:23sdyhrr] [url:23sdyhrr]http://code.google.com/apis/sketchup/docs/classes.html[/url:23sdyhrr] [i:23sdyhrr]SketchUp Ruby API - Method Index[/i:23sdyhrr] [url:23sdyhrr]http://code.google.com/apis/sketchup/docs/methods.html[/url:23sdyhrr] [i:23sdyhrr]SketchUp Ruby API - Class Diagram[/i:23sdyhrr] [url:23sdyhrr]http://code.google.com/apis/sketchup/docs/diagram.html[/url:23sdyhrr] [i:23sdyhrr]Sketchup Ruby API Class Diagrams[/i:23sdyhrr] by Jim Foltz [url:23sdyhrr]http://sketchuptips.blogspot.com/2008/08/sketchup-ruby-api-class-diagrams.html[/url:23sdyhrr] [i:23sdyhrr]Google SketchUp API Blog[/i:23sdyhrr] [url:23sdyhrr]http://sketchupapi.blogspot.com/[/url:23sdyhrr] [i:23sdyhrr]PickHelper - Visual Guide[/i:23sdyhrr] by Thomas Thomassen [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=30232%26amp;p=266685:23sdyhrr]http://forums.sketchucation.com/viewtopic.php?f=180&t=30232&p=266685[/url:23sdyhrr] [i:23sdyhrr]WebDialogs - The Lost Manual[/i:23sdyhrr] by Thomas Thomassen [url:23sdyhrr]http://forums.sketchucation.com/download/file.php?id=36664[/url:23sdyhrr] ~ Indexes ~ [i:23sdyhrr]SketchUp-Ruby Resources[/i:23sdyhrr] [url:23sdyhrr]http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=10142[/url:23sdyhrr] ~ BBs / Forums ~ [i:23sdyhrr]Developers Forum - Google Groups[/i:23sdyhrr] [url:23sdyhrr]http://groups.google.com/group/google-sketchup-developers[/url:23sdyhrr] [i:23sdyhrr]Developers Forum - SketchUcation Community Forums[/i:23sdyhrr] [url:23sdyhrr]http://forums.sketchucation.com/viewforum.php?f=180[/url:23sdyhrr] ~ Code Snippets ~ [i:23sdyhrr]Code Snippets Index - SketchUcation Developers Forum[/i:23sdyhrr] [url:23sdyhrr]http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=28846[/url:23sdyhrr] ~ Plugins ~ [i:23sdyhrr]Plugins Index (by author) - SketchUcation Plugins Forum[/i:23sdyhrr] [url:23sdyhrr]http://forums.sketchucation.com/viewtopic.php?f=323%26amp;t=28782[/url:23sdyhrr] [i:23sdyhrr]Plugins Visual Index - SketchUcation Plugins Forum[/i:23sdyhrr] [url:23sdyhrr]http://forums.sketchucation.com/viewtopic.php?f=323%26amp;t=16909[/url:23sdyhrr] [i:23sdyhrr]Trimble SketchUp - Plugins (Download Page)[/i:23sdyhrr] [url:23sdyhrr]http://www.sketchup.com/intl/en/download/plugins.html[/url:23sdyhrr] [i:23sdyhrr]Trimble SketchUp - Ruby Scripts (Download Page)[/i:23sdyhrr] [url:23sdyhrr]http://www.sketchup.com/intl/en/download/rubyscripts.html[/url:23sdyhrr] [i:23sdyhrr]Jim Foltz SketchUp Plugins[/i:23sdyhrr] [url:23sdyhrr]http://sketchuptips.blogspot.com/2007/09/plugin-index-page.html[/url:23sdyhrr] [i:23sdyhrr]Ruby Libray Depot[/i:23sdyhrr] ! URL Removed due to too many outdated plugins ! [i:23sdyhrr]Smustard(TM) - Plugins and Scripts[/i:23sdyhrr] [url:23sdyhrr]http://www.smustard.com/scripts/[/url:23sdyhrr] [i:23sdyhrr]JohnJ - Plugins for Sketchup[/i:23sdyhrr] [url:23sdyhrr]http://www.johnj.com/drawing/sketchup/ruby-plugins-for-sketchup/[/url:23sdyhrr]
    • J

      [ruby doc] Menu.add_item

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      423 Views
      No one has replied
    • J

      Free nVidia Gelato Renderer

      Watching Ignoring Scheduled Pinned Locked Moved Hardware, Software & Gadgets
      5
      0 Votes
      5 Posts
      918 Views
      J
      @cloverleaf said: Jim, how do you use that? It's specifically made to take advantage of nvidia hardware. I guess it's geared towards Maya and Max, as plugins are provided for these applications. But that also means a SketchUp plugin is a possibility. As Lewis says, it's probably not practical to use with SketchUp at this time.
    • J

      [Plugin] Custom Toolbars Plugin

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      121
      0 Votes
      121 Posts
      65k Views
      yanrothwellY
      Hopefully this works jf_custom_toolbars.zip
    • J

      Common UI API

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      12
      0 Votes
      12 Posts
      2k Views
      tbdT
      plot-paris: possible. is what Adam referred with radial menu
    • J

      Aviary: Online Media Tools

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      2
      0 Votes
      2 Posts
      299 Views
      L
      very interesting
    • J

      Google Sites

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      10
      0 Votes
      10 Posts
      627 Views
      J
      Just out of curiosity, I created 3 sites - now it won't let me create the site I really wanted! It says you can't create any sites at this time, try again later. It's been a full day, so maybe I need to wait longer.
    • J

      Loop object in Selection?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      829 Views
      R
      There's a strange ...something... in SU that adds all kinds of non-geometric stuff to the selection set. Todd and I requested it be "fixed" (at least changed), to only add geometric objects to the selection set. After all, who wants to filter out loops, materials, etc., when all we really need to deal with are edges, curves, and faces? So far, no internal fixes, so we're left to filter objects.
    • J

      Query Tool Toolbar Button

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      914 Views
      A
      That error does not come from this download, but from "utilities/utilitiestools.rb" that comes with SketchUp. Probably it can't find some resources. You should have a file "…/Google SketchUp 8/resources/en-US/utilities.strings" (or different language code), does this file exist?
    • J

      [Plugin] Name Group on Creation

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      49
      0 Votes
      49 Posts
      31k Views
      TIGT
      I think the issue is in the way a standard 'inputbox' handles the 'values'. The last value always has focus, unless there are 'lists' in the values, then the last value that has a list has focus - irrespective of where it is ! It's a limitation of the standard API interface. The 'Tab' will key step through the various values [and the two buttons] in turn starting at the first value, if that would be quicker than clicking the mouse in a dialog itself... If a list has focus then typing the first letter of the desired item [the list jumps to that item] and/or using the up/down 'Arrow-keys' to step through the list from the current item can be useful if the list is too long to be fully displayed on screen in one go !
    • J

      Beveling Script

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      538 Views
      No one has replied
    • J

      WebDialog Closes Mysteriously

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      1k Views
      J
      Thanks for the comments, everyone; and especially to TBD. It seems obvious now, but the variable that is referencing the dialog is local to the method. When the method is finished, so is everything else in the same scope. And so sooner or later the variable will get cleaned up by Ruby's garbage collection, and the dialog "mysteriously" goes away. So for the code I posted, a global variable will solve the problem. You could also use an instance variable. Please, correct any mis-understandings I have about what's happening.
    • J

      Ruby Forum Changes/Posting Scripts

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      2k Views
      K
      @juju thanks sir i appreciate ur concern....but if u get to know the name of that ruby please let me know
    • J

      Idea: Crayon Style

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Components, Materials & Styles sketchup
      4
      0 Votes
      4 Posts
      2k Views
      S
      Dont know if this was what you were asking for, Jim, but to create objects that seems to be painted with different colors, you can do this: Turn on "Color by layer", face style "Hidden line" and line color "By material" in your standard crayon style, and get a result like the one attached. As far as I know, this works with all styles, and I have this as my default style when working on floor plans and such (though not crayon style ), and each type of object in a separate layer (chairs in one, tables in another and so on). // Olle [image: 1rp5_Crayon.png]
    • J

      [ruby doc] Undocumented send_action commands

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      536 Views
      J
      Not that I am aware of.
    • 1 / 1