⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • How to launch a ruby script with OnClick?

    8
    0 Votes
    8 Posts
    1k Views
    chrisglasierC
    @martinrinehart said: The message could also be actual Ruby code to execute, but there's a 2KB length restriction. I am sorry but I think this is misleading and my mother tongue is English. Is this what you are talking about? http://code.google.com/apis/sketchup/docs/ourdoc/webdialog.html @unknownuser said: Note that you're sending data down to Ruby as a single string that's passed via the window.location bar. In Internet Explorer on PC, there is a length limit of 2038 characters for this bar, so if you're needing to pass large data down you might consider using get_element_value to pull in a longer string from a hidden input field in the HTML.
  • Attributes object skectchup in a char variable in Ruby?

    3
    0 Votes
    3 Posts
    241 Views
    P
    Y i want create a script who can put in a ruby variables some attribute of my dynamic object when i click on him, but i don't know how to do this... I know c, c++, java, php 5 but sketchup and ruby is new for me . If you can help me, it's nice. thx
  • How to batch export (and reduce in size) multiple textures??

    6
    0 Votes
    6 Posts
    369 Views
    ArcA
    Didier Bur's plugin: [Plugin] Very fast texture writer http://forums.sketchucation.com/viewtopic.php?f=180&t=6386&p=156132&hilit=Very+fast+texture+writer#p40025
  • Triangulating points

    5
    0 Votes
    5 Posts
    446 Views
    A
    I use clouds.rb for generating terrain meshes and I am wonder if there is anything which will smooth the result ... ! Right now I think the GPS I am using is not very precise or maybe all GPS are creating some wrong points... and that's why a circular (aprox) path I am tracking is it than(after translating to 3d points) shown as a iregular path... any hint ?
  • Lights in su2pov3

    3
    0 Votes
    3 Posts
    547 Views
    A
    This download helped me too Didier ! Merci... With kind regards Petronel
  • WebDialogs - tabs sample !

    6
    0 Votes
    6 Posts
    402 Views
    J
    Great example. It's usable as it is, or can be built on if needed. Thanks.
  • Transformations

    23
    0 Votes
    23 Posts
    16k Views
    J
    One of the reasons I asked was that I wrote this LDraw importer. But the LDraw axes system does not match SketchUps, and I really want the importer to correct this on import. You can see the import works, but I haven't been able to figure out how to trasnform the geometry during the import so it uses a SketchUp axes that people are familiar with using. [image: l2Tt_019.jpg]
  • WebDialog - how to make tabs?

    7
    0 Votes
    7 Posts
    988 Views
    D
    I found a page. That has some very interesting things in html. http://www.dhtmlgoodies.com/index.html?page=dhtml-suite greetings
  • Developer Forum Sticky Links

    2
    0 Votes
    2 Posts
    4k Views
    P
    thx!
  • Output Text ?

    8
    0 Votes
    8 Posts
    461 Views
    J
    @tpoz said: is there anything fancy i can do with entity info if i label everything? On the serious side, you could do a shade analysis to see if the plants are goig to gt enough Sun. How about blending the color of the tomatoes from green to red as time passes? http://code.google.com/apis/sketchup/docs/ourdoc/color.html#blend Or (making the plants "grow" (scaling the plant size) as the growing season progresses? Sounds like a fun application of SketchUp!
  • Make PDF-s with RUBY

    4
    0 Votes
    4 Posts
    364 Views
    Chris FullmerC
    I think it looks very interesting. I don't currently have a need to make pdf's, but now that I know it might be possible, I might try to find reasons Chris
  • Ruby's global nightmare!

    26
    0 Votes
    26 Posts
    1k Views
    M
    jessejames, @jessejames said: Am i moving to quickly for ya? Having written code in Python, Ruby, C#, Java, JavaScript, various dialects of Basic, and C++, probably not. Also, having a CompSci prof in the late '70's always wax on about the elegance of Pascal conditioned me to the large distinction between 'elegant' when finished, vs easy to reach 'finished.' The Python features you’re referring to would be considered simple syntax conventions by most programmers, and, hence, trivial. I'll respond anyway. Namespaces – Lets say I'm working on a real project, and production code will be a minimal set of files. As the code is being created, it's often helpful to have the code being worked on by itself, in a separate IDE container. Once complete, it's moved into another container that has finished code. Often, that IDE container is a file. I don't want the namespace changing if I move code between them. End vs indent – I've written code where there may be a lot of end statements, one after the other. Also, indenting is commonplace today. Hence, it would seem that Python's removal of statements like 'end' would be helpful, even though almost all other languages use them. Conversely, when writing code, I often leave test/debug statements on the left margin as a marker that I can delete them when the code works. I can't do that in Python. I might suggest that you read a few books like 'Design Patterns' by the 'Gang of Four' to get an idea of what the real distinctions are in programming languages. Real distinctions affect whether a framework can be moved/ported to another language, as opposed to simple syntax conventions. I might also suggest that there's plenty of others forums for your concerns. This one is for Ruby used in SketchUp. BTW, I'm ignoring the flame, otherwise we might get into that layman concept... Greg
  • Core ruby policies

    12
    0 Votes
    12 Posts
    654 Views
    C
    @chris fullmer said: There is a good chance they are part of the Dynamic Components. yeah. they are part of dcutils.rbs
  • Find the ObjectID for an array?

    4
    0 Votes
    4 Posts
    8k Views
    Chris FullmerC
    @jim said: 100 references to the same Array, but not 100 arrays. I know, I'm being pedantic. Its ok, its good for me. And is there a difference between .object_id and .id and .id ? And I saw a hint at :name - what is that? I couldn't get it to work. And in your example, what does ||= do? I'm guessing it creates an empty array at [index] if there is not an array there already? Thanks Jim. Chris
  • MIRROR 2d - plugins idea

    10
    0 Votes
    10 Posts
    700 Views
    D
    thanks for your reply
  • Clear the ruby window

    11
    0 Votes
    11 Posts
    602 Views
    Chris FullmerC
    Anyone want to configure Jim's plugin for 64bit? Chris
  • Unit plugin not work in SU 7.1 ?

    17
    0 Votes
    17 Posts
    2k Views
    CadFatherC
    got it Jim, it was something to do with the path to the icons - the ruby console is great but not when you forget its existence, Thanks!
  • How to add components to another component? [ruby]

    6
    0 Votes
    6 Posts
    540 Views
    TIGT
    If you want to 'select' something ... ### Let's assume you have an array [list] of the items to add to the component, called 'list'... ### If you have selection made that has 'raw' faces in it then add those faces' edges too to the list, if those edges then have other faces those faces and edges too - '.all_connected. ??? ### This is what causes bugsplats - when parts of 'connected things' are put into different entities sets... model=Sketchup.active_model selection=model.selection selection.clear selection.add(list) ### OR list.each{|e|selection.add(e)} ### then the code... g=model.active_entities.add_group(selection.to_a) inst=g.to_component inst.name="MyInstancesName" defn=inst.definition defn.name="MyComponentsName" ### check it hasn't incremented; using dname=defn.name; compare dname to "MyComponentsName", e.g. it might now be "MyComponentsName#1" ### etc...
  • I thought I understood groups and components!

    3
    0 Votes
    3 Posts
    210 Views
    TIGT
    It's one of those glitches thet we just work around for now... Make it unique... When it's fixed it won't matter...
  • Iron Ruby?

    7
    0 Votes
    7 Posts
    817 Views
    G
    @cjthompson said: Ruby in Steel just allows you to type .rb files in VS, although I think I misunderstood you. Are you trying to find an IDE to write scripts or are you trying to find a way to connect .NET Applications with Sketchup? First: I would like to use the best IDE for the job. A Good Debugger with the ability to step througb code and hopefully a level of intellisense. VS should provide both. Even if I have to write pseudo modules that mimic the SU API I feel I would be miles ahead of using a text editor. Second: Of course I would like to find a way to drive Sketchup from VS. If it means I can use other VS languages so much the better. If it means I have to learn Ruby in VS... Less desireable from my standpoint but not out of the question. I've been poking around the Iron Ruby forum and it looks like IR is based on the Dot.NET framework and requires it to function. It also appears that Iron Ruby is not really ready for public consumption within VS at this time. They are still working toward version 1.00 Cheers,

Advertisement