sketchucation logo sketchucation
    • Login
    1. Home
    2. jessejames
    3. Posts
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 166
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Module.foobar vs Module::foobar ?

      @thomthom said:

      I still don't understand what the difference between calling a method with :: vs . is... ๐Ÿ˜•

      That because of Tim Toady. When there are so many ways to do the same thing it makes learning the "thing" (in this case Ruby) extremely complicated. In Python we use the "DOT" to call modules, classes, methods, and functions. Also we use the identifier without parenthesis to get a reference to a class, method, or function. (no symbols needed!). Our built-ins have just enough methods and NOT too many for good reason. And we never have more than one method that does exactly the same thing ...like the following (Note: "S" is the Selection instance)

      1. S#at(idx) and S#[idx]
      2. S#count() and S#length() and S#nitems() ๐Ÿคข
      3. S#single_object? and S#length|nitems|count == 1
      4. S#empty? and S#length|nitems|count == 0
      5. S#each{...} and for x in selection...end
      6. S#include?(obj) and S#contains?(obj)
      7. S#first() and begin S#[0] rescue nil end
      8. the unexpected rules for add and remove ๐Ÿ‘Š
        ๐Ÿ˜† ๐Ÿ˜„ ๐Ÿ˜„ ๐Ÿ˜• ๐Ÿ˜ฒ ๐Ÿ˜ฎ ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ž ๐Ÿ˜ข ๐Ÿ˜’

      Just image for a moment if instead of just 'Yield!' signs we also had "Look Out!", "Be Careful!", "Submit!", "Bend Over!", "FIFO", "VIP's first", "Take it Like a man!". Well at least then folks would have an excuse for not reading and obeying the signs!

      posted in Developers' Forum
      J
      jessejames
    • RE: [Tutorial] PickHelper - Visual Guide

      Wow ThomThom this is a tough crowd tonight! ๐Ÿ˜ฒ. My connect speed seems to be on granny mode tonight (or your pdf is really large) but as soon as i can get an eyeall on that PDF i'll let ya know what i think ๐Ÿ˜‰

      posted in Developers' Forum
      J
      jessejames
    • RE: You know you've had too much sketchup when. . .

      @box said:

      1. When you keep trying to Orbit images, web sites and documents!

      I do this all the time in my chrome browser! ๐Ÿ˜†

      When you realize SketchUp is the most ground breaking 21st century modeling tool ever invented...

      However then you realize they forgot to include an API for the most ground breaking 21st century programming language ever invented...
      ๐Ÿ‘Š

      And you lament about it daily...
      ๐Ÿ˜ข

      posted in Corner Bar
      J
      jessejames
    • RE: Saving components so they "open" nicely?

      @richmorin said:

      My impression is that zoom_extents is working, but that the extents aren't getting saved by the save_as method.

      Help?

      I don't know anything about saving components as i've never needed to do that, however there is somewhere a method like "update_thumbnail" or something like that? It might be useful to you...? If i find the correct method i'll edit my post. But remember i'm just purely guessing at this point ๐Ÿ˜‰

      posted in Developers' Forum
      J
      jessejames
    • RE: Question about order in selection

      Copied verbatim from the API docs...

      @unknownuser said:

      Introduction

      SketchUp 6.0+
      A set of the currently selected entities. Use the Model.selection method to get a Selection object. Note that the order of entities (selection[0], selection[1] and so on) in the set is in no particular order and should not be assumed to be in the same order as the user selected the entities.

      However you could create a SelectionObserver and keep your own "nicely ordered" array of selected objects ๐Ÿ˜‰

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @gaieus said:

      Could you guys (me saying this "generalizing" for the time being) take a little break, go out for a walk in the fresh air and come back a bit more relaxed?

      Hi Gaieus,

      I don't think these discussions are heated at all. SketchUp modelers and scripters are by far the most laid back and good hearted bunch of folks I've had the luxury of dealing with. I admit that I myself over react to criticism -- it's human nature. Chris is a very good Ruby scripter and deep down he knows that what we are talking about is real.

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @chris fullmer said:

      I use that syntax Dan. As far as I know, I was the first to try to make multiple plugins all work under the same main sub-menu, so as to not clutter the plugins menu.

      Thats not even what this thread is about Chris. We are talking about namespaces here NOT how many Plugins Menu "commands" your script adds. Your inability to understand what we are talking about is the root of the problem. I don't blame you for learning how to script in a poor manner (namespace wise!) i blame Google and the other pros here who have not stepped up to the plate and made the tough decisions for all of us.

      @chris fullmer said:

      If you have a problem with my coding, you can always PM me, or mention it in a specific plugin thread. But generalizing about all us noobs with bad habits or pros with bad habits, and talking bad about many of us who are trying hard to contribute is just bad taste.

      Sorry Chris but that is NOT how a community works. If i have a problem with your coding style, or if Dan has a problem, or even if John Doe has a problem, we can and should voice our problem publicly. THAT IS OUR RIGHT CHRIS! You made the decision to release public scripts and your public scripts are available for our criticism. If you cannot handle the heat, then get your scripts out of the kitchen!

      You act as if we are just making up lies and i can assure you that is not the case. The problems we speak of are very real and infect this community from top to bottom. Obviously the problem is real because you're acting out in a "knee-jerk" emotional way to real criticism. If we are lying then feel free to offer the truth and correct us.

      @chris fullmer said:

      Knock it off.

      Don't you even dare try to use your moderator status to scare anyone away from free speech Chris. You will never scare me, I can assure you of that!

      However i want you to understand that nobody is picking on you "personally". Heck, believe it not i like you -- even when your insulting me sometimes ๐Ÿ˜„. You have given much to the community however you missed something very important. Everyone in this group is guilty of writing poor Ruby code and I want to fix that. Even i have written poor Ruby code because i did not know any better. So we must reign in this madness or it will get out control and sink the whole ship!

      I would really like for you to get involved with this effort Chris. Bring some real discussion to the table and we can work it out. But instead of getting all emotional -- try to bring some logic next time.

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @dan rathbun said:

      Of course the next campaign.. when we get everyone to wrap there code.
      Is to get them to change their $vars to @@vars.

      Like $my_specific_plugin_menu_is_loaded

      Dan you bring up another very important point. Too many folks have this knee jerk reaction to create a global when they should be creating either class level or instance level variables. And i don't think they realize the danger of such behaviors. There is a reason why we feel pain, it both protects and teaches us.

      I am starting to think that you should be the captain of this lost ship. Too many bad habits are propagating throughout this community. Someone needs to step up and say enough is enough already! ๐Ÿ˜ก

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @thomthom said:

      What plugin was that? People can edit their own posts.

      Hmm, i'll give a clue... the sum of his name is 1264. I'll let the advanced readers decifer the meaning ๐Ÿ˜Ž

      PS: I'm just glad it was not 666 ๐Ÿ˜†

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @dan rathbun said:

      Well yes I have been thinking about this.. but there are isssues. [...snip...]

      Ok Dan, let me make sure i follow you. I going to summarize your post and tell me if i am correct...?

      You want to create a "namespace manager" plugin (for lack of better term?) that works like a typical installation wizard. A user of such plugin would create a script by writing code in a "toplevel" manner without worring about modules or even nested modules. THEN they would run the plugin which would auto wrap their code into a proper nesting of module namespaces with their name being the toplevel module space. So in the end, the scripter no longer has to worry about the confusing aspects of Ruby modules and can concentrate on writing usable code that will be safe from invading outside namespaces.

      Is this correct?

      โ˜€
      Hey, this plugin may even work nicely on a nested folder structure of scripts in which to base it's "module nesting" on..? You create a toplevel folder with your name, then maybe a tools folder full of tools, then maybe a lib folder, and on and and on.

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      Hmm, i was wondering when\if these posts would get moved.

      PS: if you guys need a easier hint to the 1264 thing send me a PM. I fear i may have set the bar too high! ๐Ÿ’š

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @thomthom said:

      Jim did create an alternative to the official API docs, http://code.google.com/p/skx/wiki/ClassIndex one that we could edit ourselves.

      Well my hats off to Jim although i looked over the doc and not much is there. I fear it will suffer the same fate as all the other docs and resourses -- a slow and agonizing death! Multiplicity and mediocrity are very prevalent in the SketchUp Ruby world today. We mush reign in this madness! Too long have stood idle whist the castle is laid siege. We need to yelling with a united voice daily...

      Google we need an official Script Repository!
      Google we need and official tut that can be edited by members!
      Google we need official docs that can be edited by members!

      ... and we need all this information centralized yesterday!

      @thomthom said:

      Which I find more useful than just posting comments and twiddling thumbs, waiting for it to be acknowledged.

      Is this comment directed at Moi? ๐Ÿ˜„

      @thomthom said:

      Haven't had time to use or work on it, but it would be good if he had that, and a wiki at one joint location.

      Wrong! We cannot keep up this multiplicity. We must force Google to do what is needed. You just wasting you time creating more sites that no eyes will see. If you have a suitcase full of money buried in the back yard but you forgot where you buried it then you really DON'T have a suitcase full of money do you?

      @thomthom said:

      It has bothered me that so many resources are wedged in between all the questions and general discussions.

      Yes this too is a major deterrence to learning. Heck i was reading an announcement thread about a new script that had like 200 replies and many revisions to the script. After an hour of reading i just gave up. I could not even find the proper version in all the noise. It would be wise to allow an "announcer" to edit the very first post of his "announcement" indefinitely so he could update links to future versions or add more comments TO THE VERY FIRST POST INSTEAD STINGING INFOMATION THROUGHOUT 200 POSTS ๐Ÿ˜ฒ . Let the following string of thread[2..-1] answer users questions but keep the first post as an editable informational only post.

      @thomthom said:

      The forum is great for gathering knowledge, but no good at organizing it.

      ๐Ÿ‘ ๐Ÿ‘

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @dan rathbun said:

      Hell yeah...!

      Now you're speaking my language Dan! ๐Ÿ‘

      @dan rathbun said:

      I was going to name the method ".parrot" and add it to module Kernel, that way it would be global.

      Hmm, parrot is interesting. And lord knows i parrot off about Python all the time. However the word lacks an intuitive-ness for the action it implements. I don't think you'll find a better word than import.

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @dan rathbun said:

      @unknownuser said:

      I said before we need a style guide. Actually first we need a proper intro tutorial aimed directly at the SketchUp Ruby programmer.

      Well .. the forum [info] and [sticky links] posts are really a stop-gap, quick and dirty means. Temporary at best. (We can have only so many sticky threads.)

      Ah yes, the ol' multiplicity at work again! ๐Ÿ‘Š

      Multiplicity is the hobgoblin of learning recourses. People just give up (rightly so) if they have to search through mountains of dispersed data. We need to gather all the data available into one wiki page (or whatever) that will serve as a single "simple to use" resource for the noob.

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @dan rathbun said:

      The newbies say they've read such and such a book, and still don't understand modules. The old-hands have read several books and coded for years and didn't really understand modules.

      The fault lies with the tutorials and authors of the books. I cannot slap people around, because it's not their fault. (Slap the authors!)

      Well i must agree Dan. If the teacher is teaching improperly then you cannot blame the student. I will admit my words could be taken harshly by the folks around here and that was not my intent.

      I said before we need a style guide. Actually first we need a proper intro tutorial aimed directly at the SketchUp Ruby programmer. One which starts out banging the importance of modules into the heads of these folks. One which promotes a sensible style for all to follow. And most importantly one which is conspicuously placed and easily accessible by every SketchUp Ruby newbie. I would love to be a major player in bringing this into reality.

      But we need not stop there. We can gather all the "community" scripts and re-write them in proper style. We can also (if our voices are loud enough) force Google to open a Official Scripts Repository. They don't need more Google employee's to Run it we can do this. We can't just put this info only at SketchUcation, or only at SketchUp group, or whatever. It MUST be at one official location so every new user can find scripts that are...

      1. written in a high quality using modules.
      2. bug free (as possible).
      3. combined (where applicable).

      This is my dream. I hope we can all agree about the benefit of such a system. We need to stop all the pessimism because we CAN do this. Remember the component browser back button issue? Yea, we made Google fix that conundrum and we can do it again. There is power in numbers that cannot be denied by even the most powerful corporations or goverments. When we speak with a united voice they will have to answer.

      @dan rathbun said:

      Well.. guess what? People are impatient. They don't read the advanced book, or take the second semester course. They jump in and start hacking, and run smack into "coding walls" because they think they are assigning values to variables, instead references that point at objects.

      Exactly!

      @dan rathbun said:

      The filename namespace feature of Python I don't care for, and would not want it to be added to Ruby, UNLESS it was applied ONLY in the event a script was not explicitly module wrapped within the code. (But I can do this with my planned ObjectSpace Police plugin.. it's on my list, believe me!)

      Ok i can accept that, can we make it happen though?

      @dan rathbun said:

      I'm wary about automatic filename namespaces as 80% of everyone I've met, are terrible at naming files. In addition.. such a feature would need to check first if a certain namespace wasn't already in use (and if so difference it.)

      That seems to be the easier part of the problem!

      @dan rathbun said:

      Anyway.. in Ruby (when I get around to it,) such a "filename module" wrapper would not be able to take advantage of the extensibility of Ruby's file spanning modules and classes. This is one of the things that makes Ruby so dynamic and powerful.

      Well thats true because Ruby does not have Python's import mechanism. Just FYI you can span multiple files with one program. If you could not Python would be useless. You just import what you need into the main script namespace. Anyway (back to Ruby) Could we somehow emulate import?

      posted in Developers' Forum
      J
      jessejames
    • RE: [talk] Using Ruby Modules

      @dan rathbun said:


      [talk] Using Ruby Modules

      Please use this thread to discuss issues relating to Using Ruby Modules,
      and not the informational thread: [info] Using Ruby Modules

      @unknownuser said:

      Note i have moved my response from the aforementioned thread to this thread at the request of Dan. And here it is in all its glory...

      @dan rathbun said:

      If you (speaking generally to all readers and especially newbies,) do not understand the importance of modules, then you do not understand how Ruby operates and how code is (and should be,) loaded.

      And i would add to that...

      @unknownuser said:

      You should not write any scripts (note i did NOT say CODE) until you do understand Ruby modules!

      Thanks for posting this info Dan. Not only are almost zero newbies following this advice! Almost none of the more professional guys are following it either! And sadly if you don't instill proper values in a programmer from day one you can NEVER instill them later on! Old dogs cannot learn new tricks. And unlearning a bad habit is SO much harder than learning a good one to start with. Programmers are by nature a lazy bunch, so we need to trick them into good habits from day one.

      Anyway, although i'm probably just wasting my breath... all this module munbo jumbo of "jumping-through-bad-ruby-module-design-hoops" would not be necessary with Python's elegant module system. But i won't replay that broken record here again. ๐Ÿ˜’

      Anyway the real reason i replied is because i would for you and I to create a nice WORKING example of the very nested module system you are referring to. And what better example to use than all the script in the default SketchUp examples folder...

      1. animation.rb
      2. attributes.rb
      3. box.rb
      4. contextmenu.rb
      5. linetool.rb
      6. selection.rb

      The bad thing about a system like this is the fact that if people find it too confusing to implement they will just choose to be lazy instead -- and the last thing we need to do is help spread MORE laziness around this group! I always say a working example is the key to understanding systems like this.

      What do you think Dan? Heck, maybe if we're lucky sudev will actually release it in the next major version -- however don't hold your breath! ๐Ÿ˜‰

      EDIT: Added some post thoughts
      I just wanted to add a small footnote for all the endless drones of whiners who say:

      @unknownuser said:

      Wah! Wah! Rules are not fair and they make my brain hurt! Wah! ๐Ÿ˜ข

      Listen up you little baby. SketchUp scripting is a community effort. Whether you release scripts for fee, or for fee, you have a responsibility to the community to maintain a certain degree of uniformity and style. You do not have the right to crap on every one else by releasing buggy, sloppy, or namespace "slut-ing" code that infects MY namespace with it's bugs.

      You can think of scripting in a community the same as driving in a community. Driving is not a right it's a privilege. If you go out and run stop signs and red lights just because you're too lazy to press the brake pedal (Wah!) then you need your license revoked and your little bottom smacked! (yea then you'll have something to "Wah!" about!)

      Now, if you are writing scripts only for you then by all means be as sloppy as you wish. But don't give me this cry baby Wah crap about how rules will limit your freedom to be lazy because i don't care. ๐Ÿ˜ก

      You do not have a right to be lazy when your laziness causes harm to others. Have you ever heard of involuntary manslaughter?, same thing! When your actions (whether by lack of action or by an accidental action (read as stupid action!)) cause the death of another human being you have committed a crime. Likewise when you choose to write scripts in a lazy, sloppy, and namespace "slut-ing" style you have err'ed against a community. If you enter my namespace you have trespassed on private property.

      Freedom is great, unbridled freedom is the root of all evil!

      posted in Developers' Forum
      J
      jessejames
    • RE: Ruby scripts lack style

      @thomthom said:

      Watch it Jesse - behave yourself. You will get nowhere fast with this attitude.

      What attitude?

      @thomthom said:

      Chris has a very good point: where are your examples? Where is the work you have done for the community?

      Don't try to discredit me by questioning my resolve ThomThom. I have been preaching freedom to slaves on this list for ~1.5 years. I have been trying to open your minds to new possibilities, out of the box thinking styles, clean coding styles, better API, better languages, etc, etc. But most importantly i have tried to bring freedom to the slave mindset around here.

      @thomthom said:

      If you really want to be helpful and guide people - then start producing something yourself. Provide a starting point of what you want to achieve - then you might get people listening.

      Sure i want to help, but with all the negative energy why should i? Instead trying so hard to discredit me, how about saying Yes, i would like to help keep the code base clean and written in a proper style. Yes i would like to make the API better. Yes i would like to make the Docs better.

      @thomthom said:

      Right now, and given your history, I can't help but feel that you are trolling and have no intention do any other than that. I really hope you are not one of these people that are entertained by starting quarrels.

      I can't believe you would call ME a troll. All i have ever done was come here to help. Givin out my spare time and for what? Just because you don't agree with my statements does not mean i am a troll.

      posted in Developers' Forum
      J
      jessejames
    • RE: Ruby scripts lack style

      @chris fullmer said:

      Sounds like its time for me to start encoding my scripts so Jesse will stop trying to read it.

      No need because since your scripts are hosted at the site that promotes corporate greed and selfishness i would never pollute my eyes with the contents of them anyway. And anybody who does is only supporting and giving reason for such a sites existence, sadly though i don't think many realize the contract that they bind themselves into by downloading these scripts.

      @chris fullmer said:

      @Jesse, leading by example 'eh? Where is the goods? Leading by example means doing something good

      And where is your good examples "pot"? Sure you have scripts but are they written in good style. Do they promote proper coding practices or simply contribute to the collective laziness that seems so pervasive around here.

      posted in Developers' Forum
      J
      jessejames
    • RE: Ruby scripts lack style

      @thomthom said:

      @dan rathbun said:

      I'm thinking the world needs a TRUE OpenSource 3D Modeling Application Project that supports multiple scripting engines (Ruby, Python and OpenBasic,) to name a few.

      Blender? Might not support multiple languages - but it's fully open source.

      Blender is a great open source environment for organic modeling, rendering, animation, and more. However for architectural stuff it sucks. And the people who are in charge of Blender have no plans to change that -- believe me i know! Blender is good complement to SketchUp but it will never be anything even close to a replacement for SketchUp.

      PS: Blender has the most bone headed UI every created! This is one of the reasons it will only be a niche toy for a very small group of Blender heads.

      posted in Developers' Forum
      J
      jessejames
    • RE: Ruby scripts lack style

      @dan rathbun said:

      Module syntax is NOT clutter. If you (speaking generally to all readers and especially newbies,) do not understand the importance of modules, then you do not understand how Ruby operates and how code is (and should be,) loaded.

      Modules separate your code from other people's code, and prevent your code from "crapping" on the ObjectSpace (which is the same as "crapping" on everyone else's modules and classes, including Google's and Ruby's.) ANY script that defines methods, instance variables, class variables or constants in the ObjectSpace IS "crap." It does not matter if Google did it in their examples, it is still "crap."

      NO CRAP Dan! ๐Ÿ˜† Don't lecture me about the fundamentals of modules and namespaces. I know first hand the importance of modules. For without them, we would have so many name clashes that nobody could write code that did not blow chunks! The API would fall apart.

      What i am referring to is the fact that Ruby makes you explicitly define module namespace! Wrapping up namespaces between syntax is a complete waste of time WHEN Ruby should create the module from each separate file -- like Python does! Python handles this so much more beautifully.

      In Python, a programmer creates a module simply by writing code in a file. THE FILE WILL THEN BECOME THE MODULE. Do you see the beauty of such a system Dan? Even if you write toplevel code in the file (psst: thats a module Dan!) it does not matter. The code will be insulated from the global namespace by the module's namespace (psst: thats the file Dan!). And guess what else Dan...the FILE NAME then becomes the MODULE NAME. Woohoo! No need for more redundant syntax like Ruby forces on the programmer!

      Ruby's modules are a monkey patch because Matz did not think far enough ahead when designing Ruby. Then he had to pull a "rabbit-out-of-his-hat" and came up with this module...code...end monkey business.

      In Python, when we want to bring in all the names of a module we use the **from module import *** -- That means import everything. It's very much the same as what Ruby does with require HOWEVER, python gives you even more leverage with the from module import name1, name2, ..., nameN. With this statement you can choose to only bring in a few names and not the whole polluting shebang! But thats not all Dan, oh no, you can even import names and give them alias's right on the spot with the syntax from module import X as _X, y as WhyAskWhy, .... You see Dan Python is a far better choice for any scripting environment. Python was built with this very thing in mind from day one.

      @dan rathbun said:

      Not only should you be using A module around your script... you should be using nested modules. The outermost is your TOP_LEVEL namespace, Ex(using your SCF screenname):
      module JesseJames
      Any tool or plugin you create should be in a nested module (submodule,) of your TOP_LEVEL namespace. This allows individual tools or plugins to be removed from memory when they are no longer being used. TOP_LEVEL modules and classes can NOT be removed (by design.) This means the standard Ruby modules and classes, and Google's Sketchup, UI and Geom modules are safe. It also means a malicous coder cannot remove YOUR top level namespace. (It also means Google incorrectly put their modules at the toplevel, when they should have been within module Google. What happens in the future when Layout gets an API, and/or Picasa gets a Ruby API that integrates to Sketchup and Layout?)

      Sadly all this nonsense would be unnecessary if we would adopt Python. Then we could concentrate on actually writing the meat and potatoes of our software instead of constantly worrying about name clashes from a scripting language with a piss poor design philosophy! Ruby is good for personal use and not much else.

      @dan rathbun said:

      Back to indenting... anticpating a chorus of whiney voices, thus:

      Thanks for showing the class about how to maintain proper indention whist keeping the left margin minimal. This was a great and informative piece of text that should be posted some where were all can see and learn from.

      @dan rathbun said:

      Let's save Ruby vs Python for another topic thread, but for now, let me say in regard to your statement:
      @jessejames said:

      ...it would be more elegant to use the file as the module (like Python does)..
      that this CAN be done in Ruby using the wrap parameter of the load method. However it is simplistic and lacks control. The script is loaded into a temporary Anonymous namespace (module,) that is removed from memory when the script ends. So the important lesson here is the lack of controlling the namespace(s) under which the code runs, as well as controlling the persistance of the objects the code may create. Your just better off wrapping the code the namespace(s) ie, modules of your choice, to begin with.

      Well i agree there is not much we can do. Our hands are tied. And not only with extending and patching this API, but also with the Ruby language proper as it too is boxing us in. We are basically surrounded on all sides by asininity and there seems to be no way out of this mess. Well, there is a way but trying to convince Ruby religious fanatics around here that greener pastures exists is almost a fruitless endeavor.

      @dan rathbun said:

      I have been tempted to write a Toilet plugin...<snip>...(And yes Google broke that rule in a few places, but it does not negate the rule. Example: The custom Sketchup Set class is defined at the top level, instead of as Sketchup::Set, and will clash with Ruby's standard Set class, if you load the latter.)

      Ah yes. When the gods lead by bad example then the lemmings will follow them strait off the cliff. We need to do something about this mess Dan. You seem to be a smart, professional minded programmer. We need to get together, have a few beers, and discuss a battle plan for retaking this lost ship.

      Currently SketchUp scripting is a captain-less ship left to the sport of every hacks whim. Someone needs to step in and lead by example. Rule with an iron fist, and kick some major butt around here. In times like these it takes drastic measures to bring about drastic changes. But in the end we will set sail on calmer seas. And graze on greener pastures.

      posted in Developers' Forum
      J
      jessejames
    • 1 / 1