πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • To the SU team: Is sandbox tools updated for SU7?

    4
    0 Votes
    4 Posts
    371 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
    391 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
    424 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
    360 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
    2k 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
  • Trouble with "group by texture"

    5
    0 Votes
    5 Posts
    455 Views
    R
    I'll look into it. I've had scattered reports of problems, even though it tested fine for me.
  • Search & Replace Name

    6
    0 Votes
    6 Posts
    322 Views
    TIGT
    Open the Outliner and Entity-Info windows and dock them together. Select the Component Instance in question in the Outliner and its Definition-Name AND Instance-Name appear in the Entity-Info window. Edit these as desired. Changing the Definition-Name will globally rename the Definition. Each Instance can have its own name too... However, if you want to replace parts of names within a set of several definitions' names [like "AB" with "XY"], then to do this globally you need something this: ### this does all definitions' AND instances' names; edit 'text_go=/text_in=' to suit... text_go="AB";text_in="XY";Sketchup.active_model.definitions.each{|defn|defn.name=defn.name.gsub(text_go,text_in);defn.instances.each{|inst|inst.name=inst.name.gsub(text_go,text_in)}} ### remove the defn.name... part to leave them alone OR remove the defn.instances... part to leave them alone... I'll leave you to make the app/menu etc...
  • Can't Make Layer Manager Toolbar "stick"

    3
    0 Votes
    3 Posts
    303 Views
    Bob JamesB
    @thomthom said: Contact the maker of the plugin and explain what's happening. Yes, I'd seen mention of the problem elsewhere. I thought first just to modify Didier's ruby, but it is incrypted: so I sent a PM to him. Have not heard back.
  • InputPoint for Inference

    9
    0 Votes
    9 Posts
    403 Views
    A
    @TIG: Mirror3_1 doesn't appear to accept input from the VCB. That's what is causing the problem. Just doing it by mouse click is easy because all the clicks generate IP's. But having to generate pt2 programatically allows only the creation of a Point3d, because InputPoint has no method for setting it's 3D coordinate.
  • (REQ) Model Scrambler, sort of

    4
    0 Votes
    4 Posts
    341 Views
    takesh hT
    And of course, there is TIG's meticulous MatrixProximity (http://www.pushpullbar.com/forums/ruby-scripts/9467-visual-index-ruby-scripts.html#post131588) along with Chris's wonderful ruby.
  • Add_group() method bug ? Need help !

    5
    0 Votes
    5 Posts
    372 Views
    Didier BurD
    Thanks all for yur help. I have encountered very weird things with this 'bug', like: create a new empty group, put a face in it, pushpull the face, and list all the entities of the group. I got several faces and a component instance . @unknownuser said: I think the secret is to make the empty new group AND put something into its entities asap. Yes, I've tried that too, it works most of the time but not 100% Pfff, I'll let you know if I find a way to eradicate this bug. Thank you,
  • Anyone know what's wrong with the linetool example?

    3
    0 Votes
    3 Posts
    219 Views
    I
    Thanks, Whaat. That did the trick. So the reason behind this is that SU was only invalidating a default area of the screen around the first point because I didn't implement getExtents?
  • Script for Report on Name and Amount of Components

    6
    0 Votes
    6 Posts
    352 Views
    TIGT
    @unknownuser said: already had v1.6. works prety good thanks That v1.6 was ComponentReporter+ this is ComponentReporter++ (v1.1) that does slightly different things... It puts the reports in the same folder as the model... You could hack a UI.openpanel() to get the folder from a picked file in it ? I've tried to write it so it's reasonably self-evident - try small tweaks to see if you can do what you want... .
  • Slice and erase

    9
    0 Votes
    9 Posts
    967 Views
    O
    thank you Jeff, and thank you all that tried to help me, and so I'll wait for a new ruby angel...
  • A plug-in to draw baseboard or wall base?

    2
    0 Votes
    2 Posts
    835 Views
    david_hD
    You need WHAAT's Amazing, Collossal Totally Stupendous Profile Builder!!! check it out here
  • Clear PMPI

    4
    0 Votes
    4 Posts
    415 Views
    kenK
    Thanks Remus and Xrok1. Ken
  • Keep a tool running in the background?

    13
    0 Votes
    13 Posts
    705 Views
    fredo6F
    no clue. Never tried actually, but I guess it should help. So you should try it both ways to see what happens. I use myself another technique to cascade tools, because I need more control. Fredo
  • [Code] Tool ID Constants - Rev. 2

    16
    0 Votes
    16 Posts
    4k Views
    thomthomT
    When I tried tested some of the tool IDs and CMD_ constants they where identical on Mac and PC.
  • OnActiveToolChanged - What RubyTool is it?

    9
    0 Votes
    9 Posts
    433 Views
    thomthomT
    @matt666 said: You can identify active tool by its ID. Each tool has its own ID. You can't know its name. Try a look here, I played with tool IDs... But is the id the same across sessions and computers? From my other thread on IDs; the ID of even the native tools might not be consistent. So I have4 mu doubts that ruby tools will have consistent IDs
  • Observers !

    20
    0 Votes
    20 Posts
    4k Views
    H
    @unknownuser said: At least if you have AutoLisp experience exporting the xdata in a usable format for Ruby would be relatively straightforward... Thanks for your thoughts about extending such interface. I had thought about this for myself, but I have to make steps one after another. So first I want to get the structure in place again and then I can thought about adding/transporting more Info. The AutoLisp experience is not the problem, since I am a nearly full-time autolisp-developer and I am really used to do anything with ExtendedEntityData. We have logical propertys and geometric propertys stored in EED and even small chunks of Lisp-code stored there, which gets fired under certain events. So I can imagine I could do similar things in the future with ruby.

Advertisement