⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Load Toolbars

    7
    0 Szavazatok
    7 Hozzászólások
    564 Megtekintések
    Dan RathbunD
    @burkhard said: Found a workaround. It needs to be refresh, ... So, if a Toolbar is not loaded, it works after refresh the hash. The Toolbar WAS loaded, but UI::Toolbar references are NOT automatically added into the custom User::ToolbarSet hash. SO.. I created the UI::Toolbar.refresh() method to find any new toolbars (created after the hash was populated,) and add them. I WILL NOT modify the API's UI::Toolbar class constructor method, in a public script, because I feel it is a violation of the API Terms of Use. BUT perhaps we can modify the User::ToolbarSet hash's [] method's error Proc, so that it refreshes the hash automatically. See: http://sketchucation.com/forums/viewtopic.php?f=180&t=51432&p=466742#p466742
  • Test array generation...

    3
    0 Szavazatok
    3 Hozzászólások
    296 Megtekintések
    D
    TT added commenting to the original code block to try and explain things better, I can't get the formatting to hold... but this is better. john
  • [Info] WebDialogs - The Lost Manual on GitHub

    5
    0 Szavazatok
    5 Hozzászólások
    457 Megtekintések
    thomthomT
    @mptak said: I think this will inspire me to finally make the leap fully into github! Excellent! I'd really like to see the SketchUp community making more use of tools such as GitHub and BitBucket etc.
  • Organising namespaces and loading scripts on demand

    7
    0 Szavazatok
    7 Hozzászólások
    583 Megtekintések
    thomthomT
    <span class="syntaxdefault"><br />filter </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> File</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">dirname</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">File</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">dirname</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">__FILE__</span><span class="syntaxkeyword">),</span><span class="syntaxdefault"> </span><span class="syntaxstring">'*.rbs'</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">for filename in Dir</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">glob</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">filter</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">  eval</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Sketchup;;require('#{filename }', TOPLEVEL_BINDING, '#{filename}', 1 )"</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">end<br /></span> ?
  • Ruby script of bezier curves need edit

    5
    0 Szavazatok
    5 Hozzászólások
    2k Megtekintések
    piratebrianP
    I'll post some cut tests shortly, but here is the lovely curve: [image: bezier 160.JPG]
  • Question about Normal vector

    9
    0 Szavazatok
    9 Hozzászólások
    1k Megtekintések
    Dan RathbunD
    this: normal_vector = normal_vector + face.normal will not work as expected, if you set normal_vector to reference the integer object 0, because the integer +() method will get called, and it is not likely that it would know how to handle an argument that references a Geom::Vector3d object. Smarter to create either a unit vector object to start with, or a zero length vector: normal_vector = Geom::Vector3d.new(0,0,0) THEN, when you call the +() method using: normal_vector = normal_vector + face.normal the special vector addition API method will get called. In other words your statement is evaluated as if it were written: normal_vector.=( normal_vector.+( face.normal ) ) This is one of the important things about Ruby... = and + (etc,) are not really operators, they are instance method names.
  • Cleaning up after intersect_with

    9
    0 Szavazatok
    9 Hozzászólások
    641 Megtekintések
    sdmitchS
    This seems to work with or without using intersect_with model = Sketchup.active_model entities = model.entities entities.clear! #Create a group to collect all entities for base cube basegroup=entities.add_group basegroupentities=basegroup.entities base_trans=basegroup.transformation p1 = Geom;;Point3d.new(0, 0, 0) p2 = Geom;;Point3d.new(9, 0, 0) p3 = Geom;;Point3d.new(9, 4, 0) p4 = Geom;;Point3d.new(0, 4, 0) points = [p1,p2,p3,p4] base = basegroupentities.add_face points base.reverse! if base.normal.z < 0 base.pushpull 1 cutgroup = entities.add_group() cut_trans = cutgroup.transformation cutgroup.entities.add_3d_text('Bob', TextAlignCenter, "Arial", true, false, 3.0, 0.0, 0.0, true, 1) transform = Geom;;Transformation.new(Geom;;Point3d.new(0.5,0.5,0)) cutgroup.transform! transform #intersections = cutgroup.entities.intersect_with true, cut_trans, basegroup.entities, base_trans , true, basegroup basegroup.explode dmp=cutgroup.explode;#erase the top and bottom of the letters dmp.each{|f| f.erase! if f.is_a?(Sketchup;;Face) && f.normal.z.abs>0.5} #add faces to 'holes' in the letters dmp.each{|e| e.find_faces if e.is_a?(Sketchup;;Edge) && e.faces.length==1} model.active_view.zoom_extents
  • Get_element_value issue (on Mac)

    14
    0 Szavazatok
    14 Hozzászólások
    3k Megtekintések
    thomthomT
    Surely an instance variable will work just as well? Avoiding the risk to collision of global variables - especially with a common variable name such as args.
  • [WIP]SCF Plugin Repo/Auto Installer

    26
    0 Szavazatok
    26 Hozzászólások
    2k Megtekintések
    mitcorbM
    This is an excellent concept, Rich. Video well done and narrated.
  • Need testers for my Ruby Code Editor

    19
    0 Szavazatok
    19 Hozzászólások
    1k Megtekintések
    alexschreyerA
    @trogluddite said: ...when it comes to testing and de-bugging, this is the bee's knees. Thanks for your comments! Glad to hear you like the editor. I'll look into your suggestions but - as you said - the display just naturally becomes slower with 100's of lines of code simply because it renders everything in JavaScript. Not sure if #3 is already implemented in CodeMirror somehow... have to look. Cheers, Alex
  • Sketchup send action for paste..

    6
    0 Szavazatok
    6 Hozzászólások
    2k Megtekintések
    TIGT
    BUT since there is no ability to change the active-context through the API then paste-in-place is pointless... If you Cut or Copy then Paste with send_action it's sine because the original selected object and the newly copied/cut then-pasted one are in the same context, and the user gets the copy on their cursor to place manually. But let's assume there were a seemingly usable Paste_In_Place send_action available through the API, how would it be of any use ? Say you are in the the model and want to Cut an object, open a Group and then do a Paste_In_Place on the object inside the Group. In the API you can Cut it. BUT you are now stuck as you can't open the Groups context. Paste_In_Paste will simple place the object back where it was, in the current context !!! There IS a way to replicate all of this 'in code'... BUT your Ruby_Cut and Ruby_Paste_In_Place into another 'container' custom code needs to make a group of the selected objects, then find that group's definition and then use container.entities.add_instance(defn, trans) on the other container's entities context, applying the container's transformation onto it [with a .inverse ? I write this 'off-the-cuff'], so that it's kept 'in_place'. Once that is done you explode that newly added group inside the container, then finally you erase the original group so the selection appears to have been cut and pasted_in_place into the other container... If you mimic a Ruby_Copy and Ruby_Paste_In_Place it's similar... except on completion you also explode the original group rather than erasing it, and in that way the selection appears to have been copied and pasted_in_place into the other container...
  • WebDialog on Mac (call to Google SU engineers)

    25
    0 Szavazatok
    25 Hozzászólások
    10k Megtekintések
    jolranJ
    Ahh, missed this addition to this rather old topic. Interesting reading. Might be relative to Didier's recent topic. http://sketchucation.com/forums/viewtopic.php?f=180&t=51350 I wonder if I could get some clarification about this: For ex, let say you have a dozen buttons that each is hooked up to it's own callback to Ruby with "window.location.href" for the callback. Even if the Ruby script is permitted to "finish" it's doing before pushing the next buttons, will there be a sync problem ? I'm having a hard time understanding how this issue behave since I don't have a Mac for testing it out myself. It seams like Arielius has a clever solution, but what if for ex one has a slider performing realtime transformation or such ?
  • Import CSV to extract values

    7
    0 Szavazatok
    7 Hozzászólások
    2k Megtekintések
    K
    @tig said: Ken... I've given you an example in the 'parallel thread' that you started. Yep, got that TIG. Thanks..and sorry for repeating the post.
  • Compile PPC comaptible C Extension on OSX10.8?

    5
    0 Szavazatok
    5 Hozzászólások
    430 Megtekintések
    thomthomT
    Don't have the specs at hand - but I think it's one of the late 2009 Intel Mac Minis.
  • [concept] plugin launcher

    39
    0 Szavazatok
    39 Hozzászólások
    7k Megtekintések
    A
    If your were interested in LaunchUp, don't miss that it is no an official plugin: → LaunchUp – A Quick Launcher for SketchUp
  • SketchUp Ruby API Suggestions

    5
    0 Szavazatok
    5 Hozzászólások
    403 Megtekintések
    A
    Great! Especially since so many issues are scattered over the forums (or burried miles deep under newer bug reports). I sometimes feel by reporting bugs we create the most awesomest bug collection, but the goal shouldn't stay purely contemplative, shouldn't it also be about realizing solutions? This way we can collaborately work on it and "prototype" API fixes and suggest extensions. Also there are so many subtle small issues/infos/experiences that would best be placed directly in the code or at the corresponding method in the API documentation (which we can't edit) – or in this github project.
  • I need a help

    3
    0 Szavazatok
    3 Hozzászólások
    321 Megtekintések
    D
    Hail Jolran Thank you your help. I will read this lots of informations what was linked by you. I start make my plugin. Now i can make input box and i can give the width, lenght and soo on. And after this plugin draw for me. But i don't know yet, how can i save in a storage my "woods", and after i put in the screen only one click? faanyagjo.rb
  • Load Newton.dylib file via Ruby

    2
    0 Szavazatok
    2 Hozzászólások
    245 Megtekintések
    thomthomT
    I moved that post to the Developers forum, and I'm closing this one to keep the conversation collected in one thread.
  • Removing unused commands and shortening toolbars

    8
    0 Szavazatok
    8 Hozzászólások
    681 Megtekintések
    U
    Thanks TIG for the heads up on how to do that - so far I've only needed that small cmd set, and yes I've since realised it's Didiers' plugin not ThomThoms'.
  • Query Tool Toolbar Button

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    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?

Advertisement