Urasik Extensions | Lots of new extensions to check out Learn More

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
  • Shortcuts and keys in rubys collide

    9
    0 Szavazatok
    9 Hozzászólások
    922 Megtekintések
    R
    You could capture keystrokes in a modal webDialog - this will override any SU keyboard shortcuts - but beware irritating users who are used to using a shortcut for "select" that effectively cancels any active tool. Either query the shortcut list for the "select" shortcut and use it to cancel your modal webDialog, or create a really obvious "cancel" button or key.
  • Render dimensions

    4
    0 Szavazatok
    4 Hozzászólások
    567 Megtekintések
    M
    Dave, Thanks for the tip, I will try it! I would have never thought solution like this.
  • Developing a specific if statement ?

    2
    0 Szavazatok
    2 Hozzászólások
    296 Megtekintések
    tbdT
    x,y,z = $Vec1.to_a if (-y && x>0) ... do your code end also try not to use global variables (see this discussion)
  • Sketchup web exporter.

    2
    0 Szavazatok
    2 Hozzászólások
    443 Megtekintések
    P
    I'd welcome this as well. I've developed my own manual work-around to essentially create my own images and substitute them for the ones created by the Sketchup web-exporter. Once you generate one web export say for 36 images you can re-use the html code multiple times and simply replace the images with those that you create on your own. see my post here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=10855
  • How do Install SketchUp Ruby API ?

    3
    0 Szavazatok
    3 Hozzászólások
    575 Megtekintések
    H
    Thanks you for your suggestion moris , now I have found the right way
  • Simple Glazing Frame & Exterior Trim tool

    3
    0 Szavazatok
    3 Hozzászólások
    909 Megtekintések
    T
    @jim said: Here's one test.. > if( ($etthick != 0) and ($etwidth != 0) ) > # Both are not zero > # Your code here > end > Thanks: Jim for jumping to the rescue! I will re post this Ruby with your added code, since some members may not know how to cut and paste code snippets into Ruby files. WindowGlassFrame.rb
  • Volume Calculator v2...

    21
    0 Szavazatok
    21 Hozzászólások
    6k Megtekintések
    W
    This is just to show that TIG's V1.8 works well with quite complex shapes (I have posted this before, but what the heck!). The below images show the volume slices for a 1% accuracy volume calculation, which took many minutes to complete. Regards, Bob [image: WaAa_VOLUMEMODEL-VIEW1.jpg] [image: N7Q6_VOLUMEMODEL-VIEW2.jpg] [image: QhGo_VOLUMEMODEL-VIEW3.jpg]
  • Which ruby...?

    6
    0 Szavazatok
    6 Hozzászólások
    498 Megtekintések
    T
    Got it Todd, thanks for the help...and thanks a bunch for the script, worked like a charm!
  • A request to TBD and/or Didier Bur

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    M
    Wow, matrix seems to be a fantastic script. Never heard about it before . And thanks @TBD for cheating this useful randor script. Implementing an option would be a help indeed .
  • How to get original coordinates from imported dxf file

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    V
    Thank you very much!!
  • Attention Didier Projections_V6: Missing files and icons

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    W
    Dear Didier, I cannot seem to get Option 4 to work (drawing a line perpendicular to a face through a point). It draws a temporary line through the centroid, but it won't let me select a point of enter a length. Your perp_line_plane.rb works just fine, and I assumed you had integrated that script into the new collection (hence the 13th icon). Ah, that's it! The 13th Icon!. I like the way your perp_line_plane.rb works: select surface/face and cpoint (on face), then select 'Line perpendicular to face' from Plugins. Enter length in dialogue box and 'bingo', the line is drawn. Beautiful! Kind regards, Bob
  • How Many Observers?

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    J
    I'm getting back to thinking about a single AppObserver that everyone can (hopefully) agree on and use. I want to focus on how to use this observer over how it is implemented, i.e. its interface. In that vein, what about a simple interface as follows? require 'sketchup' require 'sk/app_observer' module SelectToolAtStartup def self.selectSelectTool Sketchup.send_action "selectSelectionTool;" end end Sk;;AppObserver.instance.register(;onNewModel) { SelectToolAtStartup.selectSelectTool } Sk;;AppObserver.instance.register(;onOpenModel) { Sketchup.send_action "selectSelectionTool;" } There would be one and only one AppObserver. The Observer transparently attaches itself when a method is registered, and removes itself when all methods have been unregistered. So any plugin which needs an AppObserver only need require it, and register a method. This same type of interface could be used for all the other "single instance" observers available in SketchUp. I'd like to go ahead and code them all up so plugin devs can start using observers, instead of everyone implementing them individually. I think a library of standard observers would greatly enhance a lot of current plugins, and make writing new plugins with advanced features easier and quicker. But being an amateur, I'd like to hear from more experienced devs on the matter.
  • Wx::DateTime:Class

    8
    0 Szavazatok
    8 Hozzászólások
    754 Megtekintések
    H
    WX probably refers to the WxWidgets namespace. A GUI Toolkit like FoxGUI. I can't really see anything. What type of computer is the client running on?
  • Toolbar.rb plugin command script question

    3
    0 Szavazatok
    3 Hozzászólások
    756 Megtekintések
    T
    Thanks for your fast answer Jim. For what I've seen most of the plugins do generate a direct menu access. I'll modify the code the ones I use who don't. Thanks again for your excellent toolbar plugin
  • (REQ) IMPORTER / EXPORTER

    3
    0 Szavazatok
    3 Hozzászólások
    614 Megtekintések
    W
    A .sat file importer/exporter would be very useful for those using mechanical design software.
  • [Ruby doc] .materialType method

    8
    0 Szavazatok
    8 Hozzászólások
    2k Megtekintések
    T
    It is sad. So maybe SU SDK could help, but it isn't within my abilities to play with it. def SU2KT;;texture_distorted?(e,mat,mat_dir) distorted=false temp_tw=Sketchup.create_texture_writer model = Sketchup.active_model entities = model.active_entities model.start_operation "Group" #For Undo group=entities.add_group group.material = mat g_handle=temp_tw.load(group) temp_handle=temp_tw.load(e,mat_dir) entities.erase_entities group Sketchup.undo distorted=true if temp_handle!=g_handle temp_tw=nil return distorted end Here is what I am doing in SU2KT, but it is slow, memory consuming and dirty. Btw. Todd - have you noticed that .materialType doesn't change from 2 back to 1 if a material is not longer colorized. Am I correct? Thanks Tomasz
  • Plugins Folder

    6
    0 Szavazatok
    6 Hozzászólások
    886 Megtekintések
    J
    Gotcha. That's why some of the icons were not at first showing up, I'd left them in their parent folder in the original Ruby folder. Now hat I've moved the parent into Plugins, they work. If anyone can follow that convoluted English. I've also discovered the embedded tutorials, usually in the Directory folder, which certainly help— they include explanations of where the files go. What a great contribution these coders are making to Sketchup. This explains how a lot of effects are generated. Thanks, folks. Jim
  • Context menu and PipeAlongPath.rb

    4
    0 Szavazatok
    4 Hozzászólások
    712 Megtekintések
    kenK
    TIG Thanks for the quick reply. Not sure where I got the script that is modified. I know I am not capable of modifying the script. I tried you new code, and still have the same results. Thanks for your help. Ken
  • Plugin for Mortise and Tenon Joints

    2
    0 Szavazatok
    2 Hozzászólások
    912 Megtekintések
    J
    Thanks Clark. I copied this to the Ruby Forum so more people will see it.
  • Plugin question. updating plugins.

    4
    0 Szavazatok
    4 Hozzászólások
    447 Megtekintések
    jujuJ
    for scripts that you bought from Smustard you could download their "MySmustard" plugin which will check the installed (paid/bought) plugins against your account. It's the easy way of always being up to date.

Advertisement