sketchucation logo sketchucation
    • Login
    1. Home
    2. azuby
    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
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 23
    • Posts 305
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Plugins Drop Down menu is wrong

      Anybody programming Sketchup extensions should use the Extension class. A good way to program an extension with this class could be: Use a "loader", which should be saved directly to the Plugins / Tools directory. In this file you set up your Sketchup extension. Put your Sketchup extension code to another file in a subfolder of the Plugins / Tools folder. If you would put it diretly to Plugins / Tools, it would be loaded automatically. But with the subfolder and the Extension Ruby class Sketchup can decide whether to load your Sketchup extension. This is needed for extensions, which can be switched on and off via menu "Fenster > Voreinstellungen > Erweiterungen" (should be: "Window > Preferences > Extensions"). Switching off extensions take effect after a Sketchup restart. This way you do not need to edit the file name of the Sketchup extensions as Gaieus mentioned.

      Code for the "loader":

      require 'sketchup.rb'
      require 'extensions.rb'
      filename = File.basename(__FILE__)
      if(not file_loaded?(filename))
        ext = SketchupExtension.new "EXTENSION NAME", "SUBFOLDER/FILE.rb"
        ext.description = "DESCRIPTION"
        ext.creator = "YOUR NAME"
        ext.copyright = "COPYRIGHT"
        ext.version = "VERSION"
        Sketchup.register_extension ext, true
        file_loaded filename
      end
      

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: [Tutorial] Create a (TIN) from Surveyed Pts - using SU only

      Open a simple Editor (not Word! It is NOT simple ๐Ÿ˜‰ ). You can find one in Start > Programs > "Zubehรถr" (sorry, don't know how it is named in English) > Editor. Open the file "points_cloud_triangulation.rb", search for "./delauney2.rb" and remove "./" Save the file. You're done.

      azuby

      posted in SketchUp Tutorials
      A
      azuby
    • RE: It's raining.

      You need an excuse to open a beer? Where do you live ๐Ÿ’š

      azuby

      posted in Corner Bar
      A
      azuby
    • RE: Google Groups

      OK, clear thing: You buy my software and I'm buying you. Funny ๐Ÿ˜ž Much fun in the GPF, but here's more what is called "community life"

      azuby

      posted in Corner Bar
      A
      azuby
    • RE: Support of Language translation - LibTraductor.rb

      I've used LanguageHandler in some of my extensions. The bad thing with it are the changes Google makes from version to version. And they do not tell about.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Support of Language translation - LibTraductor.rb

      Why not using LangHandler? In this case the translations only would need people translating from English (keys) to the desired language (values) in a separate text file. With your script you need to edit the strings in all including scripts to support a new language, with LangHandler you only have to provide a new text file and the person translating for your script

      • does not need to edit the code
      • can't inspect your code
        This also works fine for later string (UI) modifications also if the script is scrambled.

      -> divide et impare

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: ...und ein gutes neues Jahr!

      Es kann fast nur noch besser werden.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Google Chart API

      WOW! I really do need this. Till now I have used SVG (Scalable Vector Graphics), but there are some problems with different browsers, SVG plugins and HTML formats.

      Thank you for this information!

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Gesegnete Weihnachten

      Kalt genug dafรผr isses, aber Schnee??? Hier??? In der Bundeshauptstadt???

      "Gesegnete Weihnachten" - na ja, werden wir noch sehen ...

      azuby

      posted in Deutsch
      A
      azuby
    • RE: 3Dconnection Space Navigator PE cheap

      Well, that remembers me on the Ejakulator (excuse me for that word, it's not mine) of a famous German Rock(?) star, Udo Lindenberg.

      Next thing would be working with a HMD ...

      azuby

      posted in Hardware
      A
      azuby
    • RE: 3Dconnection Space Navigator PE cheap

      ๐Ÿ’š ๐Ÿ’š ๐Ÿ’š

      ...erm please excuse me...

      azuby

      ๐Ÿ’š

      posted in Hardware
      A
      azuby
    • RE: 3Dconnection Space Navigator PE cheap

      You also can use the Space Navigator as a kind of mouse in Windows - look here for the drivers: http://rbc.duckinegg.com/ (and see the thread linked from the word "here"). But you will come in conflict with the Sketchup extension when using it together.

      It's very fast when using as a mouse. Left and right click would be nice with the push and pull function. Scrolling is possible with turning (turning? hmm...). Because I'm using a Marble Mouse (trackball) with bad scroll function, it's nice to have such a large scroll "button", which also can be really fast.

      azuby

      posted in Hardware
      A
      azuby
    • RE: Help with Observers

      Also have a look for the Sketchup::AppObserver - it's a good point to start with for understanding how they are working. You write your own class, which inherits from the Sketchup::AppObserver. Sketchup::AppObserver provides some empty methods, which will be called, when

      • a new model gets opend
      • a model gets loaded
      • on program exit

      These methods do nothing by default. But in your class you can overwrite (redefine) them. Because objects of your class also are Sketchup::AppObserver, they will be notified on changes. So i.e. a model gets opend, all Sketchup::AppObservers get the message "model opend" (their method for that is called by Sketchup).

      You need to register your Sketchup::AppObserver object to Sketchup with the line

      Sketchup.add_observer <MY_OBSERVERCLASS>.new # for simple constructors
      

      That's all.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Loading Error Question

      Looks, that it has something to do with Sketchup LangHandler.rb

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Reverse faces

      Could be done automatically:

      Don't know whether you can add material to the faces in the other program. If it is possible, do it. If the import in Sketchup also includes the materials on the faces AND the material is only on one side (i.e. outside of a cube), you can use the FFlipper plugin (see my website).

      OR

      It is possible to write an extension for doing it automatically. How to program?

      • Ask the user to select a face which is in right direction.
      • Get the normal of this face.
      • Recursively get all faces which are connected to the chosen face and check their normals against the normal of the chosen face.
      • (some more investigation on the "if" for flipping the face - YES, my knowledge in mathematics is a bit rusty)

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Video textures possible in SketchUp

      Looks good. Together with Lighting Plugin the project of developing a Game in Sketchup comes closer ๐Ÿ˜„

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Sketchup.get_locale in .rbs files, LangHandler

      Well, I wrote my own, stable, tested language handler.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Ruby Tutorial

      ... and most Ruby programmers own this book:
      http://www.pragprog.com/titles/ruby - The Pickaxe

      But be warned: Sketchup includes Ruby 1.8.0 as far as I know. AND Sketchup does not come with most of the libraries mentioned in the book.

      If you can read German, search the old Sketchucation Sketchup forum for the German section / my topics. I've tried to introduce Sketchup-Ruby to a programming newby.

      azuby

      posted in Developers' Forum
      A
      azuby
    • Sketchup.get_locale in .rbs files, LangHandler

      Hey folks,

      I use Sketchup 6.0.1099 (German version) and have noticed, that the method Sketchup.get_locale stops evaluation of .rbs files at the point the method is called. Can anyone reproduce this effect?

      And can anyone give some advices on how to use the (new) langhandler.rb (NOT LangHandler.rb). Seems to be much more difficult to use it as in old Sketchup versions. For me it do not work. I'm thinking about writing my own lang handler because since Sketchup 5 there were enough changes to get version insecure plugins and extensions. And these changes do not seem to bring features to Sketchup, just leave angry programmers.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Where can I find standard rubies?

      ... and have a look on my website where I also provide some (hopefully) useful free extensions (click the "English description" links ๐Ÿ˜„ ).

      azuby

      posted in Developers' Forum
      A
      azuby
    • 1 / 1