🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download
  • Component inst to component Def in a Selection

    5
    0 評價
    5 貼文
    485 瀏覽
    P
    Looks interesting. I think i can use this in a loop we have analyzes all objects and can contain several instances. Thx
  • Exporting to STL for 3D printing direct from SketchUp..???

    4
    0 評價
    4 貼文
    561 瀏覽
    M
    Thanks for the info, sounds promising.. All the best Matt
  • Wanted: Rotate Texture 90d Icon

    3
    0 評價
    3 貼文
    406 瀏覽
    G
    @genma saotome said: I not a programmer... I find myself rotating a selected texture 90 degrees all the time and the default GUI menu is pretty inefficient: select the texture and then menu Texture/Position/Rotate/90/Done. Does anyone know where I might find those functions programmed as icon? You know, select the texture, click the icon, and it's done. 7 mouse clicks reduced to 1. Ummm, and if it's not already written and is dirt simple to write, might someone write the code? I think it's one of those little things many people would like. pretty much looking forward to this ... 7 clicks to 1 ...
  • Video textures

    5
    0 評價
    5 貼文
    443 瀏覽
    tbdT
    what about Bridge ?
  • Select at Start-Rick

    4
    0 評價
    4 貼文
    590 瀏覽
    R
    @bellwells said: Thanks, Rick. Both startup.rb and smustard-app-observer.rb are in my SU6 Plugins folder. I'll reinstall again. Obviously, I never had it with SU5. Sorry you had to research my silly non-problem; I'm slightly embarrassed. No problem, really - I just wanted to make sure I hadn't written something I forgot about (it has happened!)
  • Global transformation of a selected nested face

    10
    0 評價
    10 貼文
    1k 瀏覽
    C
    It depends on what you mean by "where the user is". If your user has just clicked on something you can find out the top level instance and then figure out the transform of the object in that instance. If your user has "opened" the object its a little trickier but you can find the top instance through an observer.
  • Rotating into XY plane

    6
    0 評價
    6 貼文
    1k 瀏覽
    fredo6F
    Then, you can use a reverse Axis transformation. [image: VgWn_Transformxyplane2.jpg] The following code would for instance transform any given face to be in the XY plane, with its barycentre at the Origin. axes = face.normal.axes origin = face.bounds.center t = Geom;;Transformation.axes(origin, axes[0], axes[1], axes[2]).inverse Sktechup.active_model.entities.transform_entities t, face The drawback of the above method is that the orientation of the transformed face in the XY plane is not predetermined. So, if you wish to have a privileged direction, for instance an edge of the face to define the X axis, then use the following code instead, which will ensure that the selected <edge> defines the X axis, and that the Origin corresponds to the Start vertex of the edge. origin = edge.start.position xvec = origin.vector_to edge.end.position zvec = face.normal yvec = zvec * xvec t = Geom;;Transformation.axes(origin, xvec, yvec, zvec).inverse [image: 23wv_Transformxyplane.jpg] Note that you can use the transformation <t> to calculate the coordinates of points to reconstruct a copy of the face, instead of transform it. entities = Sketchup.active_model.entities face.loops.each do |loop| f = entities.add_face loop.vertices.collect { |v| t * v.position } entities.erase_entities f unless loop.outer? # for holes end Hope this help! Fredo
  • Ruby scripting interface

    9
    0 評價
    9 貼文
    874 瀏覽
    TIGT
    NotePad++ [ http://notepad-plus.sourceforge.net/uk/site.htm ]
  • How do I create a rb file

    3
    0 評價
    3 貼文
    400 瀏覽
    A
    What does it mean: "It don't work." Maybe you're using Windows and have enabled hiding file extensions. You should disable this in Windows. azuby
  • [Plugin] Hide all Edges

    3
    0 評價
    3 貼文
    1k 瀏覽
    A
    Maybe my HideEdges Ruby script could also be a good choice. It can work on all or only on selected entities (but unfortunately not on component instances). A toolbar button isn't included, but a right-click menu item. (see my signature) azuby
  • Socket Programming in sketchup

    4
    0 評價
    4 貼文
    1k 瀏覽
    J
    See this post also...
  • [help] can we access styles from ruby?

    4
    0 評價
    4 貼文
    277 瀏覽
    CadFatherC
    Thanks, there is hope then!
  • Change the color of only one instance

    13
    0 評價
    13 貼文
    967 瀏覽
    TIGT
    http://groups.google.com/group/SketchUp-Plugins-Dev/web/Ruby-ComponentDefinition.html#name= .
  • Hidden or soften edge on a face?

    3
    0 評價
    3 貼文
    373 瀏覽
    C
    Cool, Merci Matt!
  • Invert Selection - No Shortcut Key

    12
    0 評價
    12 貼文
    3k 瀏覽
    CadFatherC
    solved - i needed to add a plugin menu item - with icon and context menu only i get that registering bug. Thanks for all the help though!
  • Install script options- help needed

    7
    0 評價
    7 貼文
    448 瀏覽
    garydornG
    I understand what you say about the text not matching so I played round with changing them so they matched, and after non-working numerous iterations, it finally worked! its now home = File.expand_path "~" myrubyscripts = File.join home, "MyRubyScripts" require_all(myrubyscripts) I think it worked because I eventually removed the spaces around (myrubyscripts)? thanks for your help Jim may this be of assistance to other Mac users.
  • Ruby - PushPull to map size or proportion?

    5
    0 評價
    5 貼文
    744 瀏覽
    J
    PushPull does use the Unit Snapping length, if it is set and so it will snap to the distance set there.
  • shell plugin?

    9
    0 評價
    9 貼文
    1k 瀏覽
    J
    I know this is an old topic, but CADSpan's free plugin has this "shell" feature. http://www.cadspan.com/tools
  • Mouse middle-button: Orbit vs MyTool

    3
    0 評價
    3 貼文
    441 瀏覽
    M
    Yes, the onMButtonDown API when used inside any new tool "is broken". I already included a fix for that on the "WishList" stick. But now I realized the need of more than that. Something that works above the level of the tools - where onMButtonDown is. Maybe a new API like "Sketchup::onGlobalMButtonDown" that allows to associate my new Orbit tool to this trigger (and so, disassociate the default Orbit tool from that). I would like to know if there is any workaround (maybe change something on CameraOrbitTool class - where is this class?) before include this "Sketchup::onGlobalMButtonDown" on the WishList. Thank you.
  • Group.make_unique (possible Ruby bug)

    3
    0 評價
    3 貼文
    402 瀏覽
    TIGT
    A Group is a single Instance of a Definition - and of course there should only ever be one of them, but sometimes SUp with Ruby thinks that a copy of a Group is another Instances. The way round it in Ruby is to use make_unique on the copy of the group (instance) as you go. It will return an error but it should work anyway... It might get fixed one day...

Advertisement