🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • Skp to off format... plugin

    6
    0 Votes
    6 Posts
    635 Views
    V
    can anyone write the plugin and give me... i am a newbie to both ruby and sketchup api... thanks..
  • How to draw rectangles on a cylinder

    3
    0 Votes
    3 Posts
    393 Views
    P
    @thomthom said: Tools on Surface: http://forums.sketchucation.com/viewtopic.php?f=323&t=11212 Thanks a lot. I don't understand why, but I lost it. Hans
  • Tool History Dialog/Recall?

    2
    0 Votes
    2 Posts
    268 Views
    Dan RathbunD
    @earthmover said: Would it be possible to create a dialog window that shows the a running tab of the last 10 or so tools or plugins used and allow you to recall them? The $" array holds a list of every ruby script that was loaded by the require command, but those scripts are usually ones we only wish to load once anyway. (Which is the purpose of the array in the first place, require checks the array so as not to reload scripts that have already been loaded.) I say this because, the feature you desire would need a similar array, but it must have all files loaded by the load command, except those that are in the $" array. (Tricky because require passes it's file argument to load if it decides a script needs to be loaded.) I hate to think about this, but one solution would be to override load; not desirable because it's already been overriden by Google to handle the .rbsfiles. It may be better to create a new run command, that mantains the 'history' array and then passes the filename argument on to load. So the 'rule' would be if you want a script in the history, use run, if not use load directly. A webdialog could be made easily once the maintenance of the history array was solved. Heck.. even a Inputbox with a dropdown list would work, but a webdialog would be better (single click and it could remain open, the list could be updated continuously. An Inputbox would be 3-click, open it choose script, click OK.)
  • Problems with Sketchup Classes

    4
    0 Votes
    4 Posts
    441 Views
    L
    Thanks for the replies guys! @unknownuser said: That is correct. Most methods of classes are instance methods. You should be able to call them from inside the class (ie another method of the same class,) using it as a private method. Yes it is an instance method, but it seems to have no effect on objects created in the sketchup ui, presumably because they have their own read-only/inaccessible templates/classe for creating objects? And yet I still fail to see why rewriting the instance variable declaration (if that's what it's called!) for x, y, z has an effect on yaml. Have they not already been declared? I just have a funny feeling that something weird is going on under the hood. I actually had no real purpose when extending those classes, except to try and get them to expose x, y, z values to yaml. It worked in that instnce, I have no Idea how, and was unable to do anything similar for other types. The workaround only partially worked (ie, it does not work on objects created in the sketchup ui). @unknownuser said: You can do anything you want FOR YOUR OWN USE. BUT Google OWNS the Sketchup, UI, and Geom Namespaces. The Terms of use prevent you from causing other people's installations of Sketchup to be degraded or broken or such. The license agreement is at: http://sketchup.google.com/intl/en/download/license.html At the very least, if you wanted to extend Sketchup classes (and release those extensions,) you'd need to have Google Sketchup Team consent AND Sketchup Developer Community approval. You might join the SKX project, or monitor the SKX forum. Normally I would have given up trying to get yaml to work and come up with my own alternative way of transmitting the object information via text through stdio, but I have thought of another interesting concept, the possibility of using other languages such as python or java with sketchup... with yaml. If there is no interest in that, and I can't find a quick fix to this problem I have with yaml, then I'll drop that Idea! I think I need to learn how yaml works (on the inside) in order to find out why it struggles with sketchup. I did have one Idea for a work around, and that was to deep copy the objects created in sketchup to what I have dubbed (if my theory is correct) a "True Ruby Object" and then use the .extend method to append the yaml methods on the objects. In order to do this I guess it would be easiest to make the change to the way yaml works (otherwise I may as well just copy all the attributes manually!). By having my own copy of the objects, and then using the .extend method will I still be voiding this license aggreement? A big problem I think I can see with that Idea is performance. Having a copy of every object doesn't seem like good, common sense to me!
  • Questrion for script developers on textures

    3
    0 Votes
    3 Posts
    266 Views
    TIGT
    I don't know of a script to do this, but if your tiles are faces or groups / component instances with an applied material, then there is a built-in way. Select one with that material. Right click and in the context-menu choose 'Select' and 'All with Same Material'. Right click again and in the context-menu choose 'Entity Info'. The dialog that opens will report the number of things now selected with that material. If the objects are faces it also reports their area in current units. If the things are 'instances' it will only report their number. If the tiles are instances of a component with the material applied 'internally', then you can count the number of them in the model this way... Open the Component Browser and click the Model-tab [small-house] and right-click over the tile component you want. In the context-menu choose 'Select Instances'. All instances of that component are now selected. 'Entity Info' will again give the count of those tiles now selected. [Of course this might all be different wording in your 'locale' version] I'm guessing you are Spanish? Don't worry, your English is quite good... Merry Christmas
  • Unit Testing, Test-Driven Development?

    7
    0 Votes
    7 Posts
    487 Views
    Dan RathbunD
    @jim said: ... but how to incorporate it into the development cycle without imposing a performance penalty in the release version? Definately, any Test or Debug module would be something we would ONLY load during testing. We should not expect someone (ie the average user,) to have those modules loaded when they are just running and using Sketchup and the plugin (once it passes tests and is released.) If you were testing a plugin on a model that was very big and had alot of textures, I'm sure performance would be reduced. That's only during testing tho. Another option, is to cut up a Test or Debug module into smaller modulettes so only that which a tester needs is loaded. Perhaps take advantage of the autoload method, to do it automatically.
  • How to detect duplicate edges?

    7
    0 Votes
    7 Posts
    413 Views
    TIGT
    @richmorin said: TIG- If you'll look at my code extract, you'll see that I'm already doing what you suggest. pph is a hash of "point pairs", indexed by the vertex positions (encoded as strings, to avoid object issues). However, my code isn't detecting any clashes, even though SU does (later) when it tries to save the model. That's why I suggested instead of inspecting the points you inspect the edges already made...
  • Can we improve ExtrudeEdgebyRails? (add options)

    21
    0 Votes
    21 Posts
    2k Views
    D
    hi Tig, just a thought, I and it seems quite a few people use fredo's polyline segmentor before using eebyrails, loft, blend, etc.. so, would it be possible to simply call up that tool from within EER2 if a potential problem is found? john
  • ExtJs Dialogs in Podium 2 Beta

    2
    0 Votes
    2 Posts
    214 Views
    thomthomT
    hm.. I've been using jQuery... never seen this lib before. interesting.
  • Wire frame to pipe?

    4
    0 Votes
    4 Posts
    504 Views
    TIGT
    PipeAlongPath with inner/outer radius== or TubeAlongPath will make a 'tube' along a set of connected edges BUT they can't branch - however, the 'ends' junctions are tidied up. You'd need to selected a number of connected edges/curves [end-to-end] and use the tool several times to make a partially tidied frame. Lines2Cyl etc will make all selected edges into separate cylinders... Some manual tidying up will be inevitable with branching forms...
  • Problem plugins/rubys-scrips su7 OSX 10.5

    2
    0 Votes
    2 Posts
    204 Views
    jeff hammondJ
    @b-o said: am i doing something wrong? any clue what i can try? SketchUp.app/Contents/plugins is where google places it's exporters. the proper location for ruby plugins is in the following location: MachintoshHD/Library/Application Support/Google SketchUp 7/SketchUp/plugins try placing the .rb file there instead then restart sketchup
  • New to Ruby / Sketchup

    2
    0 Votes
    2 Posts
    283 Views
    thomthomT
    You must URL encode the data you put into URLs. Not all charactered are allowed.
  • Feasibility of this occurring?

    3
    0 Votes
    3 Posts
    288 Views
    Dan RathbunD
    I posted an informative reply on this topic at the Sketchup Developer's Google group. (I guess I'll just Carbon Copy it here.) @unknownuser said: Is there any possibility of using Google Sketchup within a website ...? GoogleGroup Topic: To Run Google sketchup within website I believe you must export models as Collada(.DAE) files for use on websites. The website would use Google O3D pluginto VIEW the model. Visitors would need to download and install the plugin. Interaction can be done on the model by the website visitors, thru Javascriptprogramming. Such as changing colors, or materials, moving objects around, etc. But all these things I think must be drawn in Sketchup. There is no basic editing / modeling capability in O3D. Only manipulation of components. O3D Technical Overview http://code.google.com/apis/o3d/docs/techoverview.html O3D Developer's Guide http://code.google.com/apis/o3d/docs/devguideintro.html Working Webpage Examples: Smart Designer by SmartFurniture.com http://www.smartfurniture.com/smartdesigner Smart Designer is a new online application that enables consumers and businesses to design and order their own furniture products. They can then interact with those customized products in the context of a 3D space that simulates their homes or offices. Home Configurator (Firefox only) http://o3d.googlecode.com/svn/trunk/samples/home-configurators/homedesigner.html .
  • Where's my circle's face?

    3
    0 Votes
    3 Posts
    237 Views
    TIGT
    The add_circle returns an array of its edges, so circles_edges=entities.add_circle(......), to make a face simply use circles_edges[0].find_faces...........
  • "Tell me what's goin' on. I ain't got a clue!"

    28
    0 Votes
    28 Posts
    1k Views
    TIGT
    'Above' in this context is on the side of the face's front. If the face is flat and it were facing upwards your hand would be above it. The that face were facing downwards then your hand would be underneath it...
  • Copy Array Along Path tool...have a look.

    46
    0 Votes
    46 Posts
    119k Views
    simon le bonS
    Hi NotaReal! You are greatly helping me for my first feet steps with Kerkythea. Here are some renders dedicated to you [image: clay_tstD003_th.jpg] [image: clay_tstD004_th.jpg] [image: clay_tstD005_th.jpg] [image: clay_tstD006_th.jpg] [image: clay_tstD007_th.jpg] [image: SuspBridge003_th.jpg] ++simon
  • Plugins Clash - LibFredo6 / Smustard Organizer

    4
    0 Votes
    4 Posts
    879 Views
    fredo6F
    For whatever reason, Organizer prevents LibFredo6 to load (hence all the messages from the other scripts). I am not familiar with Organizer (I don't have it actually), so I don't know what exactly it does under the hood. I understand that normally you must execute a command on each script you want to put into the Organizer context, and that this command may alter the code of the targeted script. If so, then, it is normal that it does not work, since LibFredo6 and my other scripts rely on their own loading environment. Thanks to advise if what I described is correct. Anyway, maybe Rick could have a quick check to the problem, if you describe how you apply Organizer to LibFredo and my other scripts. Fredo
  • ASCII format for .skm?

    10
    0 Votes
    10 Posts
    520 Views
    J
    It would be a sibling (neighbor?) of the Plugins folder on Windows.
  • Scaled array

    33
    0 Votes
    33 Posts
    54k Views
    pilouP
    Seems only Grow is necessary! Just make in 2 parts! [image: qE5o_grows.jpg] Select the previous group "growed" and grow again Not a big deal [image: hwov_grow2.jpg]
  • Redraw DC

    3
    0 Votes
    3 Posts
    292 Views
    B
    Thanks, This works. The problem I'm facing now is that I have added this "target" redraw capacity in a class function which extends DC functions but it appears they can't be referenced in a mouseclick interaction. Only in formulas. I have to find another work around. The redraw() function only refresh the DC which calls it. Any idea about a work-around ?

Advertisement