sketchucation logo sketchucation
    • Login
    1. Home
    2. driven
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 43
    • Posts 2,966
    • Groups 2

    Topics

    • D

      Preventing add_curve curves exploding...

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      477 Views
      D
      I'll post the code here, because it's where I searched for a solution first and couldn't find one... [image: 8ARS_working_edges_centre.gif] I striped out the colouring but left the selection add, as a progress bar substitute... # with Tig's advice from PM ... model = Sketchup.active_model sel = model.selection ents = model.active_entities view = model.active_view mats = model.materials # cylindrical sine wave pair on a unit radius with 24 sides... wave = [[1.0, 0.0, 0.0], [0.9659258262890683, 0.25881904510252074, 0.050799999999999984], [0.8660254037844387, 0.49999999999999994, 0.08798818102449896], [0.7071067811865476, 0.7071067811865475, 0.1016], [0.5000000000000001, 0.8660254037844386, 0.08798818102449898], [0.25881904510252096, 0.9659258262890682, 0.05080000000000003], [6.123233995736766e-17, 1.0, 1.2442411479337108e-17], [-0.25881904510252063, 0.9659258262890683, -0.05079999999999998], [-0.4999999999999998, 0.8660254037844388, -0.08798818102449893], [-0.7071067811865475, 0.7071067811865476, -0.1016], [-0.8660254037844385, 0.5000000000000003, -0.087988181024499], [-0.9659258262890682, 0.258819045102521, -0.050800000000000047], [-1.0, 1.2246467991473532e-16, -2.4884822958674216e-17], [-0.9659258262890684, -0.25881904510252035, 0.05079999999999989], [-0.8660254037844388, -0.4999999999999998, 0.08798818102449892], [-0.7071067811865479, -0.7071067811865471, 0.1016], [-0.5000000000000004, -0.8660254037844384, 0.08798818102449903], [-0.25881904510252146, -0.9659258262890681, 0.05080000000000014], [-1.8369701987210297e-16, -1.0, 3.267705224142925e-17], [0.2588190451025203, -0.9659258262890684, -0.050799999999999915], [0.4999999999999993, -0.866025403784439, -0.08798818102449889], [0.7071067811865475, -0.7071067811865477, -0.1016], [0.8660254037844384, -0.5000000000000004, -0.08798818102449901], [0.9659258262890681, -0.2588190451025215, -0.05080000000000014], [1.0, 0.0, -0.0]] # waves have an additional point to complete the circle... segments = wave.length - 1 # single undo model.start_operation('wave') # Make the empty 'container' group. container = ents.add_group() cont_ents = container.entities # add the empty surf_grp() to cont_ents surf_grp = cont_ents.add_group() surf_ents = surf_grp.entities # Add Surface soft edges and faces using offset points... i = 0 segments.times do f = surf_ents.add_face(ORIGIN, wave[i], wave[i + 1]) view.refresh f.edges.each{|e| e.soft="true" e.smooth="true" sel.add(e) } i += 1 view.refresh end # add the wave to cont_ents... cont_ents.add_curve(wave) # and explode the surface faces... surf_grp.explode sel.clear model.commit_operation EDIT: after getting the other working using add_face I made a few adjustment to this code... john
    • D

      [Plugin] Sine Circle

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      5
      0 Votes
      5 Posts
      897 Views
      D
      should I add this feature? does anyone have any feedback... [image: cP7P_Castlelation_Demo_02.gif] john
    • D

      Mac and Windows 'New Model' differences...

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      17
      0 Votes
      17 Posts
      2k Views
      D
      cheers Tig, the plugin runs my 'selector' tool after new_skp has been cleaned up... the 'selector' can be scaled, rotated or moved before running the cuts... any solids remain solids afterwards... [image: Uj0D_sixSectoins.gif] I need a PC version to attract more testers... john
    • D

      Dialog box showing counter

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      778 Views
      D
      @sawdust_online said: Nevertheless I would have liked to save that bunch of files without blocking SU, webdialog box or not. what type of files are you saving? images, components? I think you can you the same approach as the two geometry making versions I posted... @unknownuser said: the following code seems to do the job! what's your take about it ? may it lead to crash ? for a mac it would be better if you used RUBY_PLATFORM =~ /(darwin)/ ? @dlg.show_modal() ; @dlg.show() bring_to_front doesn't achieve the same thing unless it was show_modal before the any focus change... I don't see why you need the timer, any short wait will happen anyway while the file is being written... BTW. sleep(0.25) will work the same as, but looks more like ruby than the fractional floats to me... john
    • D

      Revert back to saved version

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      4k Views
      TIGT
      Going back several steps .move! works like .transform! without affecting the stack within an animation ?
    • D

      [Plugin] Add_Note [ model_name.txt ]

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      13
      0 Votes
      13 Posts
      2k Views
      TIGT
      http://ruby.sketchup.com/Sketchup/ComponentDefinition.html#refresh_thumbnail-instance_method Refreshes the definition's thumbnail image to show the current view - so set that as you want beforehand...
    • D

      Odd texture position behaviour

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      3
      0 Votes
      3 Posts
      145 Views
      D
      cheers Tig, I always position Textures, so I never noticed until I was making a giff to show how to use 'Position Texture' john
    • D

      [Plugin] Add Icons [for all SU files on mac]

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      47
      0 Votes
      47 Posts
      11k Views
      TIGT
      The latest MAC OS 'Catalina' does not support ANY current SketchUp version. I know that SketchUp is working hard to release a new compatible update for version 2019 asap. BUT no earlier versions will ever be made fully compatible. Some might work, so will not - depending on how you use SketchUp etc. So having an old Plugin updated seems to be the least of your worries ! Please complete your User-Profile so we know more details about your setup...
    • D

      Layout linking in skp?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      282 Views
      D
      cheers tig, I couldn't find one, but thought I was missing something... the best way I found so far is to open the .layout enclosed .skp set up the view you want in the .skp file use that as an icon for the .layout close without saving the .skp... It doesn't appear to break anything... any potential it might? john
    • D

      V2015 Issues...

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      3
      0 Votes
      3 Posts
      200 Views
      D
      cheers, I suspected it was an incorrect memory of something I never do... I was doing a rendering test where it may have been useful... john
    • D

      Yosemite filter code...

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      325 Views
      Dan RathbunD
      @driven said: can I PM you it, to have a look? Sure, John.
    • D

      Mac read_defaults?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      20
      0 Votes
      20 Posts
      625 Views
      Dan RathbunD
      Well on the PC, we have been in the same boat. The API can read only string registry values. Many things are DWORD binary values. Often holding only 1 or 0 for true/false, on/off, etc. Such a simple thing that can not be read. A long time ago, I thought I filed a Feature Request for an application level options hash interface.
    • D

      V-Ray 2.0 for SketchUp for mac...

      Watching Ignoring Scheduled Pinned Locked Moved V-Ray render plugins extensions
      4
      0 Votes
      4 Posts
      796 Views
      dkendigD
      ... that looks like an email from v-ray.com? Am I correct? That isn't the company that makes V-Ray for SketchUp, they're a reseller.
    • D

      WebDialog encoding bug found!

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      44
      0 Votes
      44 Posts
      2k Views
      G
      Sketchup 2014 Mac 10.9.2 testing text in Simplified Chinese [image: 023i_encoding_issue_14.0.4899.png]
    • D

      Document.getElementById ?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      359 Views
      G
      Thank you for the formatting. The splitted version works on PC, IE11, SU 2014.
    • D

      Google translate in a webDialog?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      569 Views
      D
      my thinking is by having the full version open, you can choose to use the 'other' interpretation.. which may make it sightly more accurate? [image: mXNK_2014-03-2809.43.18pm.png]
    • D

      Aborting a .rbz install

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      16
      0 Votes
      16 Posts
      431 Views
      danielbowringD
      @driven said: I'm under the impression Windows will see it as a space and error out Error: #<NoMethodError: undefined methodwindows' for #Object:0x56b89ec>` Depends what encoding you save it in. Western (Windows 1252) gives this: Error; #<SyntaxError; (eval);5231;in `load'; path/to/nbsp.rb;1; Invalid char `\240' in expression> UTF-8, however, will load and work fine windows use = "o.~" puts "Success #{windows use.inspect}" # -> load 'path/to/nbsp.rb' Success "o.~" true Note: Browsers will replace the character in question (160, "non-breaking space") with a regular space (32, "space"), but I did correct for this for this test.
    • D

      Ditto mac unix command

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      553 Views
      D
      I'll start answering my own question... plugs = Sketchup.find_support_file("Plugins")ditto "#{plugs}" ~/Desktop/!plugs`` this duplicates the entire contents folder structure in a new folder on the desktop... not an unknown path insight sooo.... now to write that dropbox plugin john
    • D

      Test array generation...

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      134 Views
      D
      TT added commenting to the original code block to try and explain things better, I can't get the formatting to hold... but this is better. john
    • D

      Fugu

      Watching Ignoring Scheduled Pinned Locked Moved Freeware
      2
      0 Votes
      2 Posts
      2k Views
      mitcorbM
      Very interesting. I don't recall encountering an attachment/insert with active buttons in this forum before. Is this a new feature? I guess I have been sleeping. I have not yet tried the featured application.
    • 1
    • 2
    • 3
    • 1 / 3