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

      New Policy for Posting Scripts

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      324 Views
      GaieusG
      Some sort of solution can be found for sure. I have translated two scripts so far (into Hungarian) but it was dealt with in PM's. On top of all one being commercial so I couldn't even have posted it in public )although it was simple hztml for the webdialog which is not secret).
    • J

      About Modules

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      13
      0 Votes
      13 Posts
      876 Views
      D
      Dear thomthom, all, @thomthom said: It was just that what deerwood said sounded to me that, modules where to be used for a few methods, but classes if you had many. Maybejust me that read it odd. I've seen often in scripts that classes has been used as purely encapsulation and never used as objects. sorry for my late answer, I just had prepared a continuation of my earlier post ... and lost it completely in an editor (notepad++) crash ! Yes, you are right: if one invents a class with only class methods, it makes no real sense at all to instantiate that class, because the instantiated object(s) don't carry any state. The Java Math class is an example. It has a full load of useful class methods, e.g. Math::sin(), Math::cos() etc, all getting in the values to work on by providing them as parameters. But it has no state at all (and no instance methods). In Ruby one would normally use a module for that (independent of the number of modul/class methods, compare the Ruby Math module). But then, it doesn't harm to use a class. Just do not instantiate any objects from it and use it the same way you would use a module, just to have your own namespace. Class/module methods do their work by accessing some commonly available information (e.g. Sketchup.active_model.selection) or some parameters or a combination of both. Though there is more to tell about Ruby modules (later). But the Ruby way of dealing with things is different. In Ruby almost everything is an object. Even simple things like integers are full blown objects. Try this in the Ruby console: 65 >> 65 65.next >> 66 65.chr >> A 65.next.next.chr >> C You just invoked two easy to use methods on a simple integer number object. What is an object, then? Something having a state (a value or some values, individual to each object) and a behaviour (common to all objects of that type). Every integer object in Ruby has it's own state (that integer value) and a common behaviour (next always gives you a new integer object with it's value incremented by one). And chr spits out a 1 character long string object with the ASCII representation of the value. Note, that both methods take no parameter at all ... they use the internal state of the integer object at hand. It would be very inconvenient to have to define the common behaviour of something in all and every object of that sort. Thus OO languages (including Ruby) have classes to define the common code/behaviour for all things of that sort. If the class is in place, you can later instantiate as many objects of them as you need. Every instance/object will have it's own state (using up memory) but share the same behaviour (not using up memory). So, for now (remeber my loss of ready made explanations): if your plugin does not carry around some state (or you save them somehow externally in attributes) you might be fine with just using module/class methods. Still to be continued ... best regards, deerwood
    • J

      Gmail users: Most spam?

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      4
      0 Votes
      4 Posts
      351 Views
      S
      Yeah and they all about Viagra and fake swiss watches.... I go every now and than and permanently delete them.
    • J

      RealXtend Virtual World Platform

      Watching Ignoring Scheduled Pinned Locked Moved Freeware
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • J

      Congratulations Crazy Eyes

      Watching Ignoring Scheduled Pinned Locked Moved Gallery
      5
      0 Votes
      5 Posts
      690 Views
      D
      Jamming CE, Bug blasting gland pack -- I Jack bird dig on that action. Pour a cold one, and finish off the egg nog. Durant "want bugs in my loins" Hapke
    • J

      Transparency

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      1
      0 Votes
      1 Posts
      675 Views
      No one has replied
    • J

      Start_operation backward compatibility

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      475 Views
      thomthomT
      Thanks for the tip. I just made use of it and it's working good. Operation took abtou 2 minutes in SU6 while no more than 30 seconds in SU7.
    • J

      WebDialogs: To sub-class or not?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      330 Views
      A
      a) subclassing and instancing b) instancing If you only need a window to display information, b) would do it. But if your dialog is more complex, subclassing seems to be a good choice, because you can let your class do a lot of things, i.e. generating the HTML by overriding the original set_html method: class AzubyDialog < UI;;WebDialog private def generate_html arg s = '' # TODO; implement your HTML generator code s end public def set_html arg super(arg.kind_of?(String) ? arg ; generate_html(arg)) end end azuby
    • J

      See Component Size in Component Browser

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      3
      0 Votes
      3 Posts
      754 Views
      J
      Oh, I was taking this a different way. I'd like to see the physical size of an object SOMEWHERE, in Object Info, , Component Browser, the bottom of the screen, or something. Sometimes I make something or see something and it takes a bit of work to find out how big it is physically. Thanks, Jim
    • J

      Hide Blue Axis Only

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      2
      0 Votes
      2 Posts
      1k Views
      I
      nice idea Jim. I was also thinking the other day it would be nice also to be able select a function so that faces do not close in. Then if drawing in 2D (eg: construction detailing) may read better and be faster to work with. This coupled with your idea may be a solution to drawing in 2D (with perspective turned off that is). Maybe a 90deg page rotation tool in the 2D direction could work also? I have to leave the working out of this to someone else ofcourse, but what do you think? CHeers Jeff
    • J

      Dynamic Components Collection

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      6
      0 Votes
      6 Posts
      11k Views
      A
      There is also a set of DC's in the "Google Sketchup 7\Components\Dynamic Components Training" folder as part of the installation. However the best way to learn I found was to download this one (http://sketchup.google.com/3dwarehouse/details?mid=ce5eddf19a1cd04d4af4635b6ebb0145) from the warehouse, loads of examples all in one file.
    • J

      WxWindows for SketchUp Dialogs

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      45
      0 Votes
      45 Posts
      8k Views
      T
      @dan rathbun said: That is because in module definitions, the module statement is a block statement so the word module works the same as begin (after all, the module does need an end.) Thanks for the explanation.
    • J

      Interact with SU models in Word, PowerPoint

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      2
      0 Votes
      2 Posts
      274 Views
      GaieusG
      Hm. Interesting. However a little pricy for a PC only IE only application. Thanks anyway - trying out the "samples"
    • J

      Camera Perspective per Scene?

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      5
      0 Votes
      5 Posts
      704 Views
      J
      @gaieus said: Ah, see. It doesn't seem to be posible (at least not for me). You know where to file a feature request, don't ou? Yes of course, I was just double-checking. Thanks.
    • J

      Snippet: Ordering Vertices

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      428 Views
      T
      Thanks Jim for sharing. I need to verify how SU2KT exports vertexes of a face. It looks like normals are correct but order of vertexes in a mirrored face is wrong. I will post modified snipped for faces when done. Tomasz
    • J

      Defining methods inside methods

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      264 Views
      C
      I dont think I have released any plugins that do that. But I have used it a few times to avoid copying a bunch of code into each case of a elaborate if or case statement. I have also used it when debugging to override the behavior of a function like puts
    • J

      SketchUp Plugin for Lively Coming

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      7
      0 Votes
      7 Posts
      636 Views
      MarianM
      Hey Coen, quite a "lively" avatar you have there, not like the other guy's ..and of course Edit: now he changed it...
    • J

      High Quality YouTube Videos

      Watching Ignoring Scheduled Pinned Locked Moved Corner Bar
      9
      0 Votes
      9 Posts
      590 Views
      TaffGochT
      Hi, Jim (et.al.) Last month, there was an article in PC Magazine,... ...How to Upload High-Quality YouTube Videos I haven't tried it myself, but the article might provide the info you need. (It's apparent that vimeo still beats YouTube, hands down.) Taff
    • J

      WebDialogs with Windows Vista

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      394 Views
      daikuD
      The other bug I've noticed with Vista has nothing to do with ruby, but with dialogs in general: http://www.sketchucation.com/forums/scf/viewtopic.php?f=11&t=10719 Not sure if it's affecting your web dialogs. CB.
    • J

      [Plugin] GreyscaleMode

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      133
      0 Votes
      133 Posts
      150k Views
      S
      [quote="bik"] "If your first click on the "Front Face mode" and then (whatever reason) you directly click on the "Greyscale mode", you will lose irremediably your colored model. Impossible to come back, so at this moment, pay attention to not save your model after changed the mode folowing this sequence !" Thanks Bik for pointing this out, it happened to me. So here is the work around. Probably you have saved some preset views and perspectives during the design that you want to preserve. First, Save the model. Then "Save As (model name)BW.skp. In the BW (black & white clone model) make the whole model a component. Then you can apply the Greyscale plugin, with your original donor model secure in the original coloured textures. When the original is further developed, Save that and open your BW clone, right click on the model (which we made a component, remember) and select "Reload" and choose your original donor model. Or you could delete your clone component in the BW drawing, Copy the original donor from its file, and "Edit/Paste in Place" it in your BW drawing. I hope that helps.
    • 1 / 1