Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

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
  • Bugsplat Upon Opening

    4
    0 Votes
    4 Posts
    448 Views
    CadFatherC
    i see, in these cases i always start from scratch - if you want, you can download my rubyset. it is a collection of many plugins (for pc but may work on mac) - maybe you'd find it useful. http://www.quarr-it.com look in resources (i'm also working on an updated set coming out sometime 'soon')
  • Balustrade components

    10
    0 Votes
    10 Posts
    2k Views
    rodrigonotorR
    Work now! I think maybe a old version of balustrade.rb is installed in my plugins folder, erase and install balustrade_components.rb and work fine, more later I will try a test whit the component option. Thank you for this great plugin. Saludos [image: 2lfn_balustrade.jpg]
  • Layer Manager Problem

    3
    0 Votes
    3 Posts
    403 Views
    S
    that did it! Thanks. I'm sure I must have messed it up somehow.
  • About 'intersect_with' method

    8
    0 Votes
    8 Posts
    2k Views
    EdsonE
    didier, my mouth was watery after i saw the animation! i wish you find a way of making it public. it would be a success, for sure. congratulations.
  • Context menu Submenu

    12
    0 Votes
    12 Posts
    2k Views
    R
    @tony bombata said: question - does organizer work with encrypted scripts? Yes and no. It will load encrypted scripts, but the script's menu location won't change unless the author has adopted the Organizer menu code (it's very easy, but no one seems to want to do it).
  • [HowTo?] Find Instance parent's Instances

    6
    0 Votes
    6 Posts
    720 Views
    M
    That is exactly what I was looking for ! Thank you Marcio Obs: A new documentation for SU7 Ruby APIs could be nice. It could be a kind of open Wiki so we all could help improve it, as write documentation is ... boring.
  • Math functions and SU7

    3
    0 Votes
    3 Posts
    541 Views
    M
    Without "include Math" statement (directly from Ruby's console or from any autoloaded plugin), it does not work here. With "Math included", it works fine. Marcio
  • The best

    3
    0 Votes
    3 Posts
    687 Views
    C
    Thanks David that was very helpful
  • Rotate a texture

    9
    0 Votes
    9 Posts
    2k Views
    thomthomT
    I'm working on mirroring the texture and UV mapping of front faces to the backside. Anyone got any idea on how to do that?
  • Randomise textures

    6
    0 Votes
    6 Posts
    800 Views
    thomthomT
    Well, ... I just dived into SU ruby because I wanted to create a ruby that mirrored the texture from the front side of faces to the back side of faces. I've been digging in the docs to try to work out how to position textures. I only managed to position a texture in 2d reliably. Even then I'm not sure I'm 100% sure what's happening. I haven't managed at all to get any info from the front face UV co-ordinates that makes any sense. I had hoped that I'd find some good info on this forum. But seeing that the general consensus on SU Ruby texture mapping is confusion I'm now worried to what task I've let myself into. I'd like to try to prompt some of the SU dev team to shed some light to this matter of UV coordinates.
  • [IDEA] Fish skin

    6
    0 Votes
    6 Posts
    1k Views
    S
    Yes it is better to displace it in rendering process. But if you wish to present it in SU than modelling becomes an option. It would be very nice to have kind of populate script to work within given/chosen surface (including curved). One would be able to choose other surfaces/shapes to populate with. I supose one need to have some parameters; ie density (how much the shapes are allowed to overlap if any) and how do you treat intersection with given surface....Probably it would be useful to have "try again" if one is not happy with solution. It might be plugin already which can do this, or not.
  • Windows and Mac...are the Ruby the same for both?

    8
    0 Votes
    8 Posts
    844 Views
    C
    Thanks for everyones input. I'll pass it on to my friend.
  • WebDialogs: To sub-class or not?

    3
    0 Votes
    3 Posts
    379 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
  • Ruby challenge 2 ?

    18
    0 Votes
    18 Posts
    3k Views
    M
    WHOA, So I have to give a try to the free versionof SU7, but, I think my computer will begin to say ARRGHH... (quite old... )
  • Help with Copy Along Path....

    13
    0 Votes
    13 Posts
    1k Views
    C
    Done in 4 pcs.... [image: ZOfu_hose.jpg]
  • REQ: ANother camera

    31
    0 Votes
    31 Posts
    3k Views
    O
    hey guys.. you think that i'm crazy??
  • Joint Push Pull Question

    2
    0 Votes
    2 Posts
    372 Views
    ToboboT
    I think Fredo6 is the best to answer this question. I would post it here http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=6708&st=0&sk=t&sd=a&hilit=joint+push+pull
  • Sketchup game

    3
    0 Votes
    3 Posts
    572 Views
    chrisglasierC
    @dhruv said: How can I load different .skp files to my game from webdialogue?(I want to do this cause I dont want to go every time to drop down menu from plugins and load the map) Not truly professional I'm sure but this works #RUBY @dlg.add_action_callback("load") {|d, p| a= p.split(",") subDir ="Components/NamesetComponents/" fileName = a[0]+".skp" model = Sketchup.active_model entities = model.active_entities theX = Integer(a[1]).mm theY= Integer(a[2]).mm theZ = Integer(a[3]).mm point = Geom;;Point3d.new theX,theY,theZ txyz = Geom;;Transformation.new point path = Sketchup.find_support_file fileName, subDir definitions = model.definitions componentdefinition = definitions.load path instance = entities.add_instance componentdefinition, txyz theDegrees = Integer(a[4]).degrees theAxis = a[5] rv = Geom;;Vector3d.new(0,0,1) if theAxis == "z" rv = Geom;;Vector3d.new(0,1,0) if theAxis == "y" rv = Geom;;Vector3d.new(1,0,0) if theAxis == "x" tr = Geom;;Transformation.rotation(Geom;;Point3d.new(instance.bounds.center), rv, theDegrees) instance.transform! tr } //JAVASCRIPT function loadSkpFile(){ param = new Array(theFile,theX,theY,theZ,rz,theAxis) param = param.join(",") window.location.href = 'skp;load@'+param } @dhruv said: How can I open a web - browser by left clicking on the model? (Something like onclick function from maybe dynamic components) As I understand it, you can do it with a selection observer, but I haven't figured out the code for that. Hope this is useful. Chris
  • WebDialog crashes Sketchup

    5
    0 Votes
    5 Posts
    706 Views
    A
    Hm OK, you see me surprised. Till now I have used an HTML code similar to the following for my "Update" button: <input type="button" onClick="javascript&#058;window.location = 'skp;foo@'; return false" value="Update"> After I changed it to: <input type="button" onClick="javascript&#058;window.location = 'skp;foo@bar'; return false" value="Update"> Sketchup doesn't crash any longer. puts "Well, and now I'll clean up my Ruby code." what the f... =begin azuby =end
  • Is it possible...

    7
    0 Votes
    7 Posts
    964 Views
    TIGT
    @whaat said: Is it possible to enter 'component edit mode' with Ruby? Is it possible to prompt the user to browse for a file folder (not a file)? If not, consider these requests for the next service release of SU. Thanks. I used a trick to edit groups [PC only] - components could be done similarly... require 'sketchup' require 'win32ole.so' def edit_group ### an example of access SUp tools not otherwise available... ### make shortcut here if NOT set already = ctrl+alt+shift+G ### check that you have one group selected and if so do this... WIN32OLE.new("WScript.Shell").SendKeys("+^%{g}") end#def ### run it from within other tools ### the menu here for test only... if(not file_loaded?("edit_group.rb")) UI.menu("Plugins").add_item("Edit Group"){edit_group} end#if file_loaded("edit_group.rb") ### This is how I find a directory - you do need to pick a file in it though... require 'sketchup.rb' #----------------------------------------------------------------------------- def materialimporter model= Sketchup.active_model materials= model.materials model.start_operation ("Import Materials") ###undo - see commit at end pwd= Dir.getwd.split("/").join("\\")+"\\" ### fix for SU drctry= UI.openpanel "To Pick this Directory; Pick Any Image File + OK...", pwd , "*.???" return nil if not drctry drctry= File.dirname(drctry) return nil if not drctry cwd= Dir.chdir(drctry) images= Dir["*.{jpg,png,tif,bmp,gif,tga,epx}"]### for all supported image file types for image in images imgname= image.split(".")[0..-2].join(".") ### removes .jpg etc from end mat= materials.add(imgname) mat.texture= image end#for image### model.commit_operation ###undo all if needed end#def### .

Advertisement