ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • [SU2014] character encodings and the Ruby console

    10
    0 Votes
    10 Posts
    289 Views
    OricAtmosO
    Thanks, that might come in handy!
  • Webdialogs for SketchUp ......RIP!

    55
    0 Votes
    55 Posts
    3k Views
    L
    I checked your extensions to invoker c#from ruby at https://github.com/icehuli/suWpfExt. I used to use win32ole to invoke my c# extensions. But since SU2014 and ruby 2.0I could not get anything up and running yet, either icehuli extension or my win32ole calls...
  • Storing and Retrieving Models in the 3D Warehouse

    2
    0 Votes
    2 Posts
    219 Views
    Dan RathbunD
    Al.. I PM'd you an idea.
  • SketchUp 2014 ruby code issue?

    6
    0 Votes
    6 Posts
    322 Views
    T
    @tig said: Never include a space between the method and the opening parenthesis that is enclosing its argument[s]... I was going to tattoo that statement on my arm, but my Wife wont let me. Regardless, I have often wondered what goes through the mind of those that write computer languages. What fantasy world do they live in? It would not be very easy to read a sentence without spaces between words, would it?
  • Transform axes

    6
    0 Votes
    6 Posts
    247 Views
    TIGT
    By default a texture's 'grain' always follows that axis, so your make-the-parts-rotated_and_then-rotate-them-into-place method is a winner. I think in your case it's the best approach... However, FYI you could also change the orientation of a texture for certain faces 'in code' - just like you might when using the manual 'Texture' tool - from the context-menu when a textured face is selected. I [and others] have written several UV / Texture tools - which move, scale and rotate textures - look at their code for ways to transform some UVs and then apply them to a face.material.texture... http://sketchucation.com/pluginstore?pln=TextureRandomizer http://sketchucation.com/pluginstore?pln=TIG-TextureTools
  • How to disabled or Grayed some field in Input box

    10
    0 Votes
    10 Posts
    498 Views
    Dan RathbunD
    Who cares? The second one is not the format given in the API dictionary. Use the first one.
  • Question on =begin and =end

    3
    0 Votes
    3 Posts
    245 Views
    L
    @jim said: Correct, Ruby does not process the lines between. They are typically used for block comments. And if used, the equal sign must be the first character in the line (no whitespace.) Thank you for the answer. that helps me understand a bit more of ruby scripting
  • Guid

    3
    0 Votes
    3 Posts
    342 Views
    K
    Thanks.
  • [SU2014] Install location for "all users"

    9
    0 Votes
    9 Posts
    479 Views
    TIGT
    There is no issue with SketchUcation's AutoInstallers ! IF there are additional folder-paths found in the $LOAD_PATH - either because Fredo's AdditionalPlugisnFolder tool has added them OR because the 'shared' C:/ProgramData../Plugins exists - then these locations are offered as alternative destinations for an SCF AutoInstall [with the User's Plugins folder as the first one listed] - unlike the native Preferences > Extensions > Install which is always into the User's Plugins folder. To reiterate... The C:/ProgramData../Plugins folder is for use when a computer is to use a 'shared' Plugin or Plugins. Such Plugins are then auto-loaded as SketchUp starts for every user on that computer. The default installation location is into the User's Plugins folder - this means that each Plugin a user installs into that folder is only auto-loaded as SketchUp starts for that user. Many users will not want or need a second 'shared' Plugins folder. Even if there is more than one SketchUp user on that computer they may well prefer to keep their own 'User' Plugins separately. Having a shared Plugins folder when it is not wanted/needed imposes unnecessary complexity on a user. If your installer bulldozes across a user's current setup and creates a new 'shared' Plugins folder, then it stands to reason that they might not be happy about it. Automatically creating it and changing things without asking is not a responsible approach [IMHO]. If that shared Plugins folder already exists then there is possibly not change to their arrangements... but even if the shared Plugins folder does already exist, then your automatic installation of things into it is contrary to the normal installation of Plugins, which always auto-install with Preferences > Extensions > Install into the User's Plugins folder, or with the SCF AutoInstallers you are given the choice of folder, defaulting to the User's Plugins folder. After all, the user might not want to share your plugin will all of the other users on that computer: even if the shared Plugins folder is preexisting it is no indicator of the user's desires. So I think your installer should offer two installation destinations: User's Plugins folder Shared Plugins folder If the shared folder doesn't exist, then in fairness you ought to warn that creating a shared folder might affect some aspects of future installations... This approach seems common-sense to me Why do you want to go against the tide
  • Points and directionality

    7
    0 Votes
    7 Posts
    288 Views
    G
    TIG, I didn't need the parallel code. I wanted to return the original pts and the flattened one pt1 = @ip1.position pt2 = @ip2.position p1 = Geom;;Point3d.new(pt1.x, pt1.y, [pt1.z, pt2.z].min) p2 = Geom;;Point3d.new(pt2.x, pt2.y, [pt1.z, pt2.z].min) eye = Sketchup.active_model.active_view.camera.eye ve1 = eye.vector_to(p1) ve2 = eye.vector_to(p2) return [pt2,pt1,p2] if( ve1.cross(ve2).z > 0 ) [pt1,pt2,p1] [image: KvVy_doorsaroundcircle.JPG]
  • AVI format animation with PNG files

    4
    0 Votes
    4 Posts
    233 Views
    B
    There is tiny open source project, that does exactly what you are looking for: http://sourceforge.net/projects/makeavi
  • Getting an object coordinates

    2
    0 Votes
    2 Posts
    206 Views
    Dan RathbunD
    We stay away from using global variables in a shared objectspace like SketchUp Ruby. I will assumed the Box is made of grouped primitives: grp = Sketchup.active_model.entities.grep(Sketchup;;Group).find {|g| g.name="Box" } if grp @pos = grp.transformation.origin end
  • Sketchup2014 - undefined method `GetString'

    12
    0 Votes
    12 Posts
    3k Views
    Dan RathbunD
    @frankn said: As far as using .GetString or [], does .GetString still work in 2014 so that it's compatible with older versions of Sketchup? Yes the renamed the getter method [], then aliased it as GetString.
  • How to add item to a menu created by another plugin

    6
    0 Votes
    6 Posts
    267 Views
    ppoublanP
    @chris fullmer said: I do this with my plugins. They all get installed in a submenu called "CLF Tools" or something. This is what I would like to achieve. @chris fullmer said: It is possible because I know how to check to see if that submenu object exists. Then add to it if it does exist, or create it if it does not exist. Do not understand how you do this if the other plugin is not installed or not already loaded by SU ? But I will have a look at Edge to see if I understand how it works. Thanks for your answer Pascal
  • [Code] Set class fix v0.3.2

    9
    0 Votes
    9 Posts
    2k Views
    tt_suT
    I would recommend using the Standard Library Set class over the one in SketchUp if you can. It's better features and much faster. We might be deprecating the Sketchup::Set class eventually. With the standard lib it doesn't make any sense for anything other than backward compatibility.
  • WebDialog and external Javascript Libraries

    3
    0 Votes
    3 Posts
    204 Views
    tt_suT
    @bomastudio said: Hi all, I'm leraning to use Web Dialogs and Javascript. I would like to use an external Javascript Library, such as Threejs or Kineticjs. But in my Windows 7 64bit I have ie8. I'm planning to install ie11. Any warning? Note that embedded IE is much more conservative than the browser version. If you want to make the webdialog use the new features you need to include a META tag in your HTML header: https://github.com/thomthom/sketchup-webdialogs-the-lost-manual/wiki/Doctype---Quirks-vs-Standard-vs-Superstandard <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  • New things in the API (sketchup 2014)

    7
    0 Votes
    7 Posts
    331 Views
    tt_suT
    @dacastror said: think there had never been so many changes and corrections in a single version! And we're just getting warmed up!
  • [News] Ruby 2.0.0 Released

    14
    0 Votes
    14 Posts
    835 Views
    tt_suT
    @pomelo3d said: a question. For me, as a user of sketchup, are the advantages of ruby 2.0 That plugin can be created with ruby 2.0? It means that developers of plugins have a newer platform with better features to develop for. The inclusion of the standard library is probably bigger than the version bump - but again this is first and foremost benefits for the developer. The immediate advantage for the end user is that Ruby 2.0 finally support handling files with non-english characters - which was a big limitation. This also meant we finally could move the Plugins folder out of Program Files and avoid permission problems which haunted us and users. Oh, and Ruby 2.0 is supposedly faster - though we've not tested this our self.
  • SU2014 - can't load EventRelay.dll

    5
    0 Votes
    5 Posts
    870 Views
    A
    SU2014 supports StandardLibrary, which supports fiddle. You could use it to export DLL functions.
  • Getting Started with Sketchup's SDK

    10
    0 Votes
    10 Posts
    2k Views
    J
    See also https://sites.google.com/site/sketchuptogcode/ http://sketchucation.com/forums/viewtopic.php?t=49346 http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=45496 http://phlatforum.com/xenforo/#sketchucam.8 http://cncutil.org/

Advertisement