Mac User? | Join the Rayscaper Beta for Mac 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
  • Current material in material browser

    7
    0 Votes
    7 Posts
    794 Views
    Chris FullmerC
    Sounds like a plan to me!
  • Opening a custom-made directory with the components browser

    8
    0 Votes
    8 Posts
    917 Views
    R
    TIG- I am on a PC though trying to do a similar thing for the mac. I'll try some observer fun but am sure to be splatted into oblivion Thanks for your thoughts. best, Justin
  • How to remove common edges???

    6
    0 Votes
    6 Posts
    669 Views
    honoluludesktopH
    Oops, came here from "new posts". Got to read those subject titles better. I took a couple of swings at ruby, then put the bat back on the rack before my hands blistered
  • Problem with variables assignement

    10
    0 Votes
    10 Posts
    906 Views
    D
    Thanks!!! Now I can continue with my project!!
  • What is best database solution ?

    3
    0 Votes
    3 Posts
    362 Views
    N
    @chris fullmer said: Are you going to work on a multi-user SketchUp environment where the server database holds the actions of all users and pushes that info back out to all other users simultaneously?????? Eh, noo... not for now. Your idea is nice, anyway . What I need is to store information about materials, dimensions and other characteristics of some predefined objects that will be created. And to be able to alter that data using a webdialog interface. What is this post here? Because I find this http://www.tmtm.org/en/ruby/, but there I could find just linux packages. I don't know what I'm looking for... I just don't want to use a lot of programming languages. It's enough to me that I'm forced to use that ugly JavaScript for webdialog
  • [Obsolete] Tools On Surface - v1.2

    62
    0 Votes
    62 Posts
    34k Views
    Chris FullmerC
    Make sure you've downloaded the most recent version of the script. This thread is for 1.2, which is obsolete now. The current version is 1.3 and its here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=11212&start=0&st=0&sk=t&sd=a Chris
  • Set_attribute and undo operations

    5
    0 Votes
    5 Posts
    696 Views
    thomthomT
    ...correction four... ...now that might come in handy.
  • "Close Opens" script not working

    7
    0 Votes
    7 Posts
    927 Views
    E
    Thank you, TIG. There was a small problematic part I could not handle, so I copied it from your cleaned-up version. And you're right... sometimes I spend too much time looking for a script to automate a task or a 3d warehouse model that suits my needs, when I could have done it manually in half the time. But I highly recommend "extend close lines". It really saved me time with this drawing. And Todd, thank you for checking out this odd case. I'll continue in the Smustard forum.
  • REQ: mass material exporter

    3
    0 Votes
    3 Posts
    505 Views
    TIGT
    It already exists... http://www.sketchucation.com/forums/scf/viewtopic.php?p=40025#p40025 Put the fast_tw.rb file in the Plugins folder: 'fast'=it's the quickest way & 'tw' = TextureWriter To use it you just type fast_tw <enter> in the Ruby Console. Any material textures in the model (whether used or not) are then extracted into the model's folder as jpgs etc...
  • Need help sketchy bevel not showing up in plugin folder

    3
    0 Votes
    3 Posts
    620 Views
    T
    context sensitive
  • "Lux Contour" coloring techniques

    4
    0 Votes
    4 Posts
    834 Views
    A
    Thanks Adam - I am actually trying your program as you speak as an example of what the display could look like and it looks great but I am not looking for a lighting tool. My equivalent "lighting effect" is created by custom radiation functions that depend on the type of source, the distance from the source, and blockage and are not light sources. I am not lookig for photo realism but for a representation of intensity on surfaces. The essence of my question is: what technique could be used to color small portions of the Sketchup drawing? The resolution I am looking for is typically 30 cm square for drawings that are the size of a building. Is there some way to divide up each face of every entity and assign a color to it based on the result of my "radiation function" as the point. Perhaps this is part of the infrastructure you mention? Thanks for your help.
  • !Help Please

    3
    0 Votes
    3 Posts
    361 Views
    R
    Organizer is just trying to load the .rb files it finds in the subfolders of your Plugins menu. The usual fix is to explicitly exclude subfolders that are created by other plugins. You can do this by adding the subfolder's name to the "SmustardOrganizerExcludeFolders.txt" file. If that doesn't fix it, contact me at Smustard and we'll troubleshoot it.
  • Ruby console scrolls to top on commandstart

    2
    0 Votes
    2 Posts
    295 Views
    T
    Yes, it has been that way since the first release of Ruby back in June 2004. We ask every release for that to be fixed. The good news is that with V7, we did get a larger COURIER font for the Ruby Console instead of a smaller ARIAL font or whatever it was. Perhaps I can do some more smooth talking with the Google developers and get them to fix this too. It is quite annoying, and really does slow performance on long running traces. Todd
  • REQ: Palette docking

    21
    0 Votes
    21 Posts
    3k Views
    C
    @thomthom said: I'd be very happy if SU8 focused on stability, bugfixes, GUI and UI improvements pluss more ruby power. I totally agree with you thomthom. Fix the core problems - we can always count on this community to develop cool new features! BTW - I used one 20-inch monitor with SU for a long time and have recently gone to two 22-inch widescreen LCDs at home and must say it is wayyyy more enjoyable now since I can really spread out and put all of my palettes on one monitor and model in the other. Never going back!
  • |e|?

    3
    0 Votes
    3 Posts
    343 Views
    TIGT
    In your example e = edge... there are several ways of doing everything in Ruby... edges.each{|e|e.erase! if e.valid?} # is the same as... edges.each{|edge|edge.erase! if edge.valid?} # is the same as... edges.each{|edge| if edge.valid? edge.erase! end#if } So 'each' of the 'edges' - called 'edge' (or whatever) is processed in turn inside the {}: 'edge' as a variable doesn't survive outside of the {} unless you declare it outside of them later... It's become something of a standard to use |e| as 'entity'... However, whatever text is inside the the || it is used as the variable you are interested in. It CAN be anything 'legal'... Sketchup.active_model.entities.each{|e|puts e.typename; puts "the next entity..."} here 'e' is the same as 'entity' Sketchup.active_model.entities.each{|entity|puts entity.typename; puts "the next entity..."} I comes down to choice and clarity - if you use it briefly the 'e' might be fine, if 'e' is drifting about many lines of code later, then you might have prefer it to have been called 'edge' or something clearer... mats=[];Sketchup.active_model.materials.each{|material|mats.push(material.name)} mats.each{|e|puts e} ...
  • To the SU team: Is sandbox tools updated for SU7?

    4
    0 Votes
    4 Posts
    557 Views
    thomthomT
    Ah... ...was kind of hoping you'd say no here, and we could expect an speed update... oh well. Just had a brainwave while doing some sandboxing.
  • How do I do this?

    6
    0 Votes
    6 Posts
    672 Views
    thomthomT
    You get .php some times because the link goes to a PHP script which redirects you to the download. When that happens you have to link the link instead of Save As.
  • Catch when Paste In Place is performed

    10
    0 Votes
    10 Posts
    877 Views
    J
    @thomthom said: @tig said: EntitiesObserver onElementAdded ? Then I'd have to monitor every group and component definition and the model object. I'm not that familiar with the overhead of Observers. But this sounds like it'd be quite a lot of observers running... Anyone knows what the performance impact of doing this would be? I think it's a worthwhile experiment to create a meta-observer (built on the existing observers) that watches a "class" of entities - such as a GroupsObserver, or something like that.
  • Ruby - WebDialog.set_html() and string with null character

    2
    0 Votes
    2 Posts
    472 Views
    thomthomT
    NULL characters aren't allowed in HTML. And NULL characters are in C (I think) used to terminate a string.
  • [Ruby] Surface

    10
    0 Votes
    10 Posts
    3k Views
    Chris FullmerC
    I think you are stuck with having to loop through the points to find the triangles you want to make faces from. You might be interested in the PolygonMesh class. It looks like it might be able to handle the mesh creation faster than just adding the faces directly. http://code.google.com/apis/sketchup/docs/ourdoc/polygonmesh.html @unknownuser said: The PolygonMesh class contains methods to create polygon mesh structures. This is useful if you need to write a custom importer/exporter in Ruby that works at the level of triangulated polygons. For example, you can determine the triangles that make up a 15-sided SketchUp face by using this class, or write a SketchupImporter that reads a data file, creates a mesh from it, and draws faces based on the mesh. IT also mentions in al old version of the API that you can pre-specify the amount of points and faces that are going to be added to the mesh to speed up the creation process. Glad you can work out the delauney bit, I'm sure you'll get the SketchUp API under control in no time, Chris

Advertisement