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

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Create your own sky and ground?

    14
    0 Votes
    14 Posts
    6k Views
    AdamBA
    I initially implemented skyboxes in pure Ruby in SU. # skybox functionality class MyViewObserver < Sketchup;;ViewObserver def initialize(stub) .. build a definition using 'stub' as filepath skybox = Sketchup.active_model.definitions[dname] @skybox = Sketchup.active_model.entities.add_instance skybox, Geom;;Transformation.new @skybox.locked= true end def onViewChanged (view) @skybox.locked= false @skybox.move! view.camera.eye @skybox.locked= true end def remove @skybox.locked= false Sketchup.active_model.entities.erase_entities @skybox end end def add_skybox $skybox = MyViewObserver.new("~projects/Ruby/skybox/space1") Sketchup.active_model.active_view.add_observer($skybox) end ie Sketchup will move the skybox along with your camera. Works OK - only let down by SU crazily aggressive bounds on Z when it draws. Adam @alan fraser said: Texture Maker will generate a cgi landscape and sky and export it in a variety of formats...including a skybox. Screenshot and result attached below. Sky boxes are used extensively in games and work very well. They can be used well in SU, as Adam says, but only really from a very fixed viewpoint....that being the centre of the cube. Games get around this by locking the skybox to the viewer. As you move through a first person perspective shoot-em-up the skybox moves with you, so always appears in the correct perspective and always infinitely distant. This obviously isn't the case in SU. I realise this thread has drifted slightly away from Ruby, but there's a challenge for somebody. Skyboxes can work well in SU, but generally only if you move a few feet...or catch a glimpse out of a window, not up and down streets. Of course you can make them really huge, so that any novement by the viewer is very slight in comparison...but then you get clipping problems. The simplest solution is simply to map a panoramic image around a cylinder. Here is a very old thread from the old forum, now transferred to Google Groups. So old, in fact, that it predates SU's ability to map around cylinders, so I had to do it by slicing the image into sections...but the resulting skps still work ok for most situations.
  • Shuffle-ruby script?

    15
    0 Votes
    15 Posts
    3k Views
    M
    For my purpose/need this density function is just perfect. Thanks again GreyHead! But right now I can't think any other way to benefit from this function when using MatrixProximity script. I will be fine with this unofficial version.
  • Array along a Path

    4
    0 Votes
    4 Posts
    1k Views
    W
    I think it is now called PathCopy.rb and can be found on the Smustard website. Bob
  • TIG's Volume Calculator

    4
    0 Votes
    4 Posts
    749 Views
    W
    Dear TIG, Many thanks for replying. It is a non-urgent request as your V1.8 seems to work fine and is accurate to the stated tolerances. FYI, the model is that of a machine base that is to be cast from polymer concrete. The volume gives me the mass (density 2,300 kg/m^3), and an estimate of the cost. Kind regards, Bob
  • Save As (exporting geometry)

    6
    0 Votes
    6 Posts
    775 Views
    W
    I also want a script to export dwg file with select entities.
  • @ TIG: default layers question

    2
    0 Votes
    2 Posts
    401 Views
    TIGT
    I could give you the complex answer or the simple one... To be honest it's a simple typo !!! Should be "if NOT selection" etc... Sorry... Another typo crept in too ! In the menu so v1.2 is now here... I've re-re-loaded the script here: http://www.sketchucation.com/forums/scf/viewtopic.php?p=46829#p46829 The original thread(s) are deleted...
  • Shadow study using SU2WEB

    2
    0 Votes
    2 Posts
    516 Views
    FletchF
    that's pretty cool, Wikii.
  • The Homer Button

    3
    0 Votes
    3 Posts
    629 Views
    Alan FraserA
    Well you can start with this one, Jim. The wav file is still in the SU code, last time I checked...from an old Easter Egg...but the link has been disabled. ElmerFudd.zip
  • Ruby Community Project Suggestions

    11
    0 Votes
    11 Posts
    1k Views
    J
    @unknownuser said: no. the JS is hard to modify. I would go with this one TBD, looks good, too - let's go with it. Here are the specifications that the image exporter will need: @unknownuser said: The image file names/paths must be carefully prepared to work with the rotation. The names must match the pattern: imgPrefix_α_βimgExt Where α is the rotation step, and β is the tilt angle. You will need combinations of every rotation step and tilt angle that you are using. If you want to use panning, you must make sure that you number the images in the correct direction. Tilt angles assume that 1 is the view from the top (or the highest viewing perspective), and rotation steps assume that progressing from 1 to 2 is motion in a clockwise direction, etc. It is assumed that the rotation steps make a complete circle around the subject. @unknownuser said: You will need numRot x numtilt images in total. My demonstration here use 6 x 3 = 18 images - around 117 KB. For 30 rotation steps, and 15 tilt angles (for a very fluid effect), you would need 450 images (so let's hope you have a good relationship with your camera) 450 images? Ouch, but I would also estimate that is correct.
  • Script Search

    5
    0 Votes
    5 Posts
    760 Views
    Dave RD
    Actually, I think I solved the syntax errors but the script doesn't seem to do what I would like to have happen. Thanks anyway, TIG. Dave
  • NoTwist using Joint PP

    19
    0 Votes
    19 Posts
    2k Views
    D
    erikB Glad to help Of course a no-twist extrude along path would be the real answer but jointPP will work pretty well and glad to have it dtr
  • Eliminate Bluriness on 3D Text

    7
    0 Votes
    7 Posts
    989 Views
    G
    Gaieus, I thank you for your advice. I resolved the problem by defining a new style and setting the line profiles to 1 pixel. Greg
  • Why this error...?

    6
    0 Votes
    6 Posts
    968 Views
    L
    Thanks Didier, I may just unload this puppy unitil I can get a fix.
  • Radius All Cube Edges - Fillet all 12 edges

    9
    0 Votes
    9 Posts
    3k Views
    GaieusG
    Well, if we have already gone off-topic, one would most probably think that a name like "Csaba" (ending with A - generally a sign of female gender in many Indoeuropean languages*) is a female name. I've had experiences... There are exceptions - like Andrea in Italian - but they are generally derivatives of other names (like the Greek Andreas in this case). Oh well, I hope Jim won't notice this OT behaviour...
  • Starting the CylTool in the sample linetool.rb script

    3
    0 Votes
    3 Posts
    1k Views
    J
    Well, it wouldn't have 'been clear in the morning' without your clarification, Jim, but it now is - THANKS. I now see that although the Class CylTool is defined, the function to create the tool is NOT 'def'ined. So my slightly modified code now works to provide Draw menu entries for 'Construction line' and 'Cylinder - on axis' with the addition of just these lines at the end of the linetool.rb script where only the first four lines were originally. These functions provide shortcuts for selecting the new tools def linetool Sketchup.active_model.select_tool LineTool.new end def cyltool Sketchup.active_model.select_tool CylTool.new end Add tools to Draw menu if( not file_loaded?("linetool.rb") ) UI.menu("Draw").add_item("Construction line") { linetool } UI.menu("Draw").add_item("Cylinder - on axis") { cyltool } end file_loaded("linetool.rb") I now just want to add a few refinements, which I can see how to do (following the excellent examples elsewhere in this forum and in the script repositories), to: specify the radius or diameter of the cylinder make the drawn cylinder into a group or component automatically design PNG graphics to indicate which tool is in use, instead of the generic white arrow. Thanks again for such a prompt and helpful response - much appreciated. John McC
  • Component list, dimensions, volume HELP!

    5
    0 Votes
    5 Posts
    3k Views
    G
    Dave, I do believe that's the one I'm looking for. You don't know how much time you've just saved me. Many many thanks Grant
  • Components colors/materials retrieval

    5
    0 Votes
    5 Posts
    960 Views
    Didier BurD
    Yes, I've studied it extensively... But what I didn't noticed before is that when you have a component within another component and when you paint this sub-component globally (by default) you thus modify its definition. That's to say you can't have this sub-component colored with 2 different colors in to separate "parents". I hope that I'm clear, anyway this makes my job a lot easier I must extract an Excel sheet with a global list of top-level furniture components (kitchen cabinets, shelves...), and a detailed list of the components of level 1 whith their colors/materials, themselves made of various pieces of level 2 of various colors/materials. Pfff, furniture manufacturers are complicated people sometimes... P.S. Typo: Bonne chance (thanks)
  • To TIG:random delete

    9
    0 Votes
    9 Posts
    1k Views
    TIGT
    I did upload the correct file... BUT the weirdness of Vista is that it segregates 'compatibility files' when they're inside the Programs Files Folder. I based RandomSelect on RandomDelete. I copied it, renamed it and changed its contents - and when I used it it read the right one and runs fine !!! BUT for some stupid reason Vista uploads the initial unedited copy - although it has the right 'name'... After some efforts I have fixed it and I have now corrected the error in the Depository... http://www.sketchucation.com/forums/scf/viewtopic.php?p=44671#p44671 The old version needs deleting but I can't do it since after a day or so the posts seem to be locked... Can a Mod please fix. EDIT: As of this edit the wrong file/post is gone. Anyone who downloaded the duff version (~24 ?) please accept my apologies, and go and get the corrected one... More haste, less speed...
  • Skin.rb > Clean Selection ?

    2
    0 Votes
    2 Posts
    625 Views
    J
    I think it removes unused lines from the faces in the current selection.
  • Ruby script execution

    3
    0 Votes
    3 Posts
    777 Views
    J
    TBD, any posibility to let sub.exe use stdin and stdout, instead of needing to save an intermediate file?

Advertisement