⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Installation of Ruby applications

    6
    0 Szavazatok
    6 Hozzászólások
    368 Megtekintések
    T
    Hey Al. I was hoping I could post again before you saw my terse update. I was going to expand on my post to give you the info you are asking for now. Right now, I zip everything up into a single file. Doing this on Windows works fine for Macs. I haven't done the reverse, but I suspect it would work fine too. After reading the first hit on the link I posted, creating the .dmg seems pretty straight forward. However, I want to go a step further from that for now on, and actually create an installer app as part of the .dmg. I'm now researching what it would take to do this. I would be happy to share it with you when I am done (as long as you don't mind a "powered by Smustard.com" label at the bottom of the dialog... Todd
  • Dynamic Components vs Rubies

    3
    0 Szavazatok
    3 Hozzászólások
    278 Megtekintések
    Chris FullmerC
    DC's just make parametric modeling available to non-ruby programmers. Anyone could make their own version if they wanted to.
  • Help from coders needed

    20
    0 Szavazatok
    20 Hozzászólások
    1k Megtekintések
    pilouP
    @unknownuser said: Subdivision modeling Seems you are making a SUZ_brush
  • 360 Camera

    22
    0 Szavazatok
    22 Hozzászólások
    23k Megtekintések
    C
    Here is a try combining the Web Exporter with a fly through path. i am working on it still but I guess you can see the intention already http://www.cad-addict.com/2009/01/sketchup-adding-camera-control-to-web.html
  • Radom Rotate

    3
    0 Szavazatok
    3 Hozzászólások
    296 Megtekintések
    S
    Component spray has random rotation.
  • Copy along path

    2
    0 Szavazatok
    2 Hozzászólások
    433 Megtekintések
    boofredlayB
    Here is a free script that does this called PathCopy. http://www.smustard.com/script/PathCopy (moved topic to Ruby Discussions).
  • [Solved] My script keeps bugsplatting :(

    19
    0 Szavazatok
    19 Hozzászólások
    2k Megtekintések
    M
    Yep. Iterative method can save time compared with the recursive method... But recursing is much more beautiful !!
  • File.copy() not working?

    11
    0 Szavazatok
    11 Hozzászólások
    569 Megtekintések
    T
    I figured it out by downloading the full ruby install, so I could learn and use Ruby outside of SU (and follow existing tutorials), and after seeing what it expanded to, it was obvious that the full install doesn't come with SketchUp.
  • [ruby-doc]The missing Sample Code scripts compilation

    4
    0 Szavazatok
    4 Hozzászólások
    523 Megtekintések
    thomthomT
    Ah! Great! I really wish Google would sort out the SU API docs... grumble
  • Small script that deletes all text in a drawing

    4
    0 Szavazatok
    4 Hozzászólások
    405 Megtekintések
    Didier BurD
    Hi, Alternatively, you could use my "quick selection" script: it can filter objects by type in the drawing to make a selection. Here: http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/quick_selection.zip Regards,
  • Point to point move?

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    JClementsJ
    Builder, In case you are not aware, there is a Glue feature in SU. If a selection is giving me problems while trying to move it, I'll right click on it to see if "UNGLUE" is available in the context menu. If so, then I'll do an Unglue. ===================================== Moving or drawing geometry across large distances can be tedious. A method I often forget to practice, but which is very helpful, is to zoom into the "target point", then Zoom to Extents, then zoom to your "start" point, select your geometry or intiate a drawing tool, then utilize the "Zoom Next" and "Zoom Previous" functions available in the Camera Toolbar.
  • Is it possible to retrieve the font settings using Ruby?

    3
    0 Szavazatok
    3 Hozzászólások
    329 Megtekintések
    A
    Todd, There is a lot about colors in the hash but, alas, nothing about font attributes.
  • Combo Ruby for Reveals

    5
    0 Szavazatok
    5 Hozzászólások
    1k Megtekintések
    D
    BooTools at work Thanks to EarthMover for the boulders. Exploded and then grouped. Union and re-texture from boulder material list. Good way to build a large rock form for we the lazy.[image: sjPj_HappyBoulderIsland-2.jpg] dtr
  • Frontface&subsmooth on Mac ( solved )

    17
    0 Szavazatok
    17 Hozzászólások
    2k Megtekintések
    ton baetenT
    Edson, Well, maybe that is correct, but my SU6 folder is about 16MB (138 files), includes almost all big ones (alvailable for mac) and many, many smaller ones. My SU7 folder is still rather empty, only a few rubies, since I have decided to check them all, get rid of duplicates, the once a hardly ever use and to get back any overview, before moving them to SU7. I will see whatever happens to my user/etc....folders, no big deal for me. I will keep you informed if I encounter a ruby making an extra unexpected ruby-folder.
  • Specify Font Size of Leader Text or Screen Text?

    3
    0 Szavazatok
    3 Hozzászólások
    353 Megtekintések
    daikuD
    Thanks, Todd. I'll add it to Scott's wish list.
  • Run windows .exe and wait for completion

    3
    0 Szavazatok
    3 Hozzászólások
    590 Megtekintések
    Al HartA
    I was finally able to do this using Win32API and a function I call "call_and_wait". def self;;call_and_wait(scommand_line) cp_params = 'LPLLLLLLPP' create_process = Win32API.new('kernel32','CreateProcess', cp_params, 'I') startinfo = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].pack('LLLLLLLLLLLLSSLLLL') # place holder for results procinfo = [0,0,0,0].pack('LLLL') trace("scommand_line; %s", scommand_line) cp = create_process.call(0, scommand_line, 0, 0, 0, 0, 0, 0, startinfo, procinfo) trace("create_process returned; %s", cp) if (cp == 0) return end#if # get process if of process we created hProcess = procinfo.unpack("LLLL")[0] trace("hProcess; %s waiting...", hProcess) if (hProcess == 0) return end#if waitForSingleObject = Win32API.new("kernel32","WaitForSingleObject",['L','L'],'L') a = waitForSingleObject.Call( hProcess, 0xFFFFFFFF ) # wait forever trace("waitForSingleObject returned; %s", a) end#def The WaitForSingleObject waits for the task to complete without using up resources. The ruby command system(command_line) runs the commands and waits for it, but uses up 1/2 of the resources of the machine in a tight loop checking to see if the command is done yet.
  • Activate toolbars automaticly

    5
    0 Szavazatok
    5 Hozzászólások
    542 Megtekintések
    dazzaD
    @sepo said: I don't know if making new template will solve your problem but I have managed to sort out toolbars randomly moving with making new template. This was on PC though. I agree with Sepo, arrange your toolbars as needed and then save as a template. Worked like a charm!!!
  • Something like SubdivideAndSmooth

    3
    0 Szavazatok
    3 Hozzászólások
    1k Megtekintések
    R
    Here you go: http://www.smustard.com/script/Subdivide Like i said before, its pretty buggy. If you want to do any real work with subd stuff youd be a lot better of buying whaats script.
  • Calling all plug-in developers!

    6
    0 Szavazatok
    6 Hozzászólások
    539 Megtekintések
    GaieusG
    Yes, it was but due to some privacy policy demands,this is not possible any longer. You can see all that is displayed there (with one exception) here, on the right anyway.
  • MaterialsObserver

    3
    0 Szavazatok
    3 Hozzászólások
    418 Megtekintések
    A
    So I checked the instance methods, to see if the exposed methods correspond to the API. I'm not sure if it should or not, my ruby knowledge is thin here for sure (extending classes where methods may get called but are / aren't defined in the base class). However, I checked the instance methods of every single observer class and they match the API exactly (some have additional methods, but all have at least what the API says. Except MaterialsObserver. Sketchup;;MaterialsObserver.instance_methods ["MaterialUndoRedo", "onMaterialRemoveAll", "MaterialSetCurrent", "MaterialChange", "onMaterialAdd", "MaterialRefChange", "MaterialRemove"] Sorry, but this is a serious "what the hell?!" moment. Most of the methods completely lack the "on" part. Yet, onMaterialChange does get called rarely, so the method is being used, even if the base material observer doesn't define it. Attempting to override "MaterialChange" instead of "onMaterialChange" never gets called. Am I off base or is this a Google Fubar? None of the other observers have any methods that don't start with "on", or differ at all from the API.

Advertisement