πŸ”Œ Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download
  • [REQ] Materials Rename

    2
    0 Votes
    2 Posts
    1k Views
    TIGT
    There is no built in Method to rename Materials... However I have written a new Method 'material-name=.rb' that does that. Search for it in this Forum. Usage: material.name="new_name" It's NOT a script, however if you let the Method load and then call it it will work... e.g. assuming each Component is in a separate Model file... model=Sketchup.active_model model_name=model.title model.materials.each{|mat| mat_name=mat.display_name mat.name=mat_name+"["+model_name+"]" } If you want to make materials specific to Definitions then you' have to do something like... model=Sketchup.active_model model.definitions.each{|defn| name=defn.name defn_mats=[] defn.entities.each{|e| defn_mats<<e.material if e.material.name and not e.material.include?(defn_mats) defn_mats<<e.material if e.back_material.name and not e.material.include?(defn_mats) } defn_mats.each{|mat| mat_name=m.name mclone=mat.clone ### NOTE; mat.clone is non-existent BUT it's quite easy to make it from the mat.name= code which already temporarily clones the material during its rename process... mclone.name=mat_name+"["name+"]" } } ### you might want to purge at the end to remove unused materials... model.materials.purge_unused Note that this code is untried and only a basic outline...
  • [Request]Open layers window

    4
    0 Votes
    4 Posts
    635 Views
    Chris FullmerC
    Oh good, that is a much better way of doing it! Chris
  • [Request} Update to Pipe along Path &gt;&gt; Tappered Pipe

    6
    0 Votes
    6 Posts
    928 Views
    pilouP
    Seems if you use the Simple Loft by Chris Fullmer you can can make that you want Just have a segment missing in the circle, so put it under face There is also this pipe plug by 3Seng by 3Seng [image: QW6u_pipe.jpg]
  • [REQUEST] Multi-weld

    7
    0 Votes
    7 Posts
    1k Views
    TIGT
    @haynesc said: Hi guys .. is there a way to weld multiple lines at once ? RickW's weld.rb welds all connected co-vertexed edges selected. If you want to be able to select several unconnected sets of edges, or sets of edges where say 3 share a vertex point and branch the it is possible... you simply need to: Look at the selection set and extract an array of all_edges=[]. Make an array of each set of connected_edges=[]. Process the connected_edges array doing each connected_edges set in turn. Make an array of all edges in the set with a 'loose end/start' - i.e. not shared with another edge - loose_edges=[]. Take each loose_edge in turn and find each of its connected edges, their connected edges etc ad infinitum... At a >2 edge vertex you branch off down one of the edge sets (could selected the 'longest' branch ?) As you go you remove selected edges from the connected_edges array If the next loose_edge is no longer in connected_edges array then skip it as it's been taken as connected to the sub-set. When there are no more loose-ends check to see if there are any edges left in the connected_edges set - if so they must 'loop' to say a >2 vertex connection, and so they have no loose-ends - pick one and repeat getting connected edges etc... Eventually you will have put all of the connected edges into sub-sets that can be processed by 'weld'. Un-connected array sets are also processed similarly and 'welded'... There's the plan now someone write it... Otherwise, carefully select the edges you'd like to weld so they are continuous and not branching etc and 'weld' each selected set in turn...
  • [REQ]Unested groups or components?[Resolved]

    5
    0 Votes
    5 Posts
    900 Views
    pilouP
    Fredo you are the King! @unknownuser said: the icon is a pink 'U' I see a pink "1" as number one or unique [image: vhx7_one.jpg]
  • [REQUEST] A plugin to load script on demand

    2
    0 Votes
    2 Posts
    557 Views
    alexschreyerA
    Hi orei, This may be of use: http://forums.sketchucation.com/viewtopic.php?f=180&t=17660 No script unloading, though. But you can re-load a script if things get messed up. Cheers, Alex
  • [Request] Macro Push/Pull Library

    3
    0 Votes
    3 Posts
    739 Views
    jim smithJ
    Khai at least for your example, it seems to me that creating a component and making copies or arrays where ever needed would be less memory use/poly creation and maybe quicker.
  • [Request] Select Object &gt; Select All Geometry on Same Layer

    8
    0 Votes
    8 Posts
    1k Views
    thomthomT
    With the SU API it's possible to select items inside groups/components. It's just the SU UI that doesn't do it.
  • [Request] Pipe Alone Path on None connected path

    3
    0 Votes
    3 Posts
    633 Views
    C
    Hey thats great! Cheers!
  • [Req] Sketchup Skins

    2
    0 Votes
    2 Posts
    643 Views
    Chris FullmerC
    Nope, nothing that is open in the API or anywhere that I know of. Maybe some of the more serious "hackers" would be able to figure it out, but its not availabe through the API. Chris
  • [REQ] Roof tile ruby

    5
    0 Votes
    5 Posts
    1k Views
    EarthMoverE
    Yeah, the toolbar Fredo has come up with is amazing. Makes me wish all the coders would collaborate and jointly work on perfecting some of the "must have" tools. Could you imagine how good sculpt tools, shape bender or some of the others would be if it incorporated Fredo's toolbar? As far as a shape tiler ruby goes, I guess the most challenging part of that coding would be fitting the tiled shapes into a defined space and having the edges cut off accurately. It's interesting how LWCAD does it. If you see this video - http://www.wtools3d.com/swf/online_help/LWCAD_30/detailed_sidewalks/detailed_sidewalks.htm It's amazing how you can turn the array of tiled shapes as if it were a texture and have it still fit within the face. I think a ruby like this would have to start maybe as a hatch tool of some kind, and then have the script fill every face in the hatch with the chosen shape. How would you guys perceive a tool like this functioning?
  • [Plugin] Text Tools

    5
    0 Votes
    5 Posts
    14k Views
    thomthomT
    We've got such a method in the SKX library. That reminds me; I've been meaning to get a first release for SKX out for the stable methods we got.
  • [Plugin Idea] Artificial light sources

    3
    0 Votes
    3 Posts
    3k Views
    R
    It is possible to "construct" the shadows (as semitransparent faces) with Ruby, but with great tools like LightUp and Podium that work with SU, I don't think you'll see anything soon (though I could be wrong).
  • [Request] - Dimension tool

    3
    0 Votes
    3 Posts
    589 Views
    M
    @gjenio said: Maybe I don't get your request... but Sketchup can already do dimensions like that! What's the problem? I understand,but to do this taking many time,need draw construction lines? I want it looks like cline tool or something!I need distance between model and dimensions without using construction lines. My english is not so good to explain punctually!
  • [Plugin] CleverClay

    19
    0 Votes
    19 Posts
    18k Views
    PixeroP
    I'm using Vray and it has an option that overrides all materials and make them the same. However transparent materials also gets opaque so thats why I wrote this plugin.
  • XLine2Line?

    5
    0 Votes
    5 Posts
    577 Views
    TIGT
    Infinitely extending xlines can't become lines [edges] - they need a start and an end. 'Short' xlines can become lines [edges] as they have a length... Project2 has 'short' options for some xline operations...
  • [REQ] Align Multi (Res) Drop Multi? Undrop Multi?(Res)

    8
    0 Votes
    8 Posts
    3k Views
    pilouP
    Undrop multiple Funny things (click image) [image: QrQi_Piltigthom.jpg]
  • Combin editor

    28
    0 Votes
    28 Posts
    2k Views
    CadFatherC
    诞!
  • [Plugin] Add Point at Line Face Intersection

    6
    0 Votes
    6 Posts
    12k Views
    utilerU
    Thanks for the reply, TIG. I did try your script over night and yes, it is quite different!!!! Thanks; i think it will be a handy addition..... I love this place.
  • Help With Protrude

    14
    0 Votes
    14 Posts
    2k Views
    J
    I moved all of my development files out of Plugins yesterday. With the exception of the updated file, it is the same os the online version. But here it is again just in case. protrude.zip

Advertisement