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

    josephkim626

    @josephkim626

    10
    Reputation
    1
    Profile views
    57
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    josephkim626 Unfollow Follow
    registered-users

    Latest posts made by josephkim626

    • RE: Group Axis moving... Want Constant Axis.

      @tig said:

      Gai's link is to fix components.
      The default axes [aka origin or insertion-point] of a group [or component] always go at its geometry's bounds.min corner [bottom-left-front].
      If you want them to be at the model's ORIGIN for a group you must include something at the origin as you can't change a group's axes through the context-menu [unlike with a component].
      It is possible to code something to reset groups' axes to the model's ORIGIN...

      <span class="syntaxdefault">module TIG<br />  def TIG</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">originateselectedgroups</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">    model</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model<br />    ss</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">selection<br />    return nil unless ss</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">    model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">start_operation</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"TIG.originateselectedgroups"</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    ss</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">each</span><span class="syntaxkeyword">{|</span><span class="syntaxdefault">gp</span><span class="syntaxkeyword">|<br /></span><span class="syntaxdefault">      next unless gp</span><span class="syntaxkeyword">.class==</span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Group<br />      gp</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">make_unique </span><span class="syntaxcomment">### forced - deprecated messages are API error!<br /></span><span class="syntaxdefault">      gents</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">gp</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">entities<br />      tr</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">Geom</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Transformation</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">translation</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">gp</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">transformation</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">origin</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">vector_to</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">ORIGIN</span><span class="syntaxkeyword">))<br /></span><span class="syntaxdefault">      gp</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">transform</span><span class="syntaxkeyword">!(</span><span class="syntaxdefault">tr</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">      gents</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">transform_entities</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">tr</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">inverse</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> gents</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">to_a</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">    model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">commit_operation<br />  end<br />end</span>
      

      Put all of this into a plain text file file in the Plugins folder named say ' TIG-originateselectedgroups.rb'. Restart Sketchup so it auto-loads.

      Select some stuff including some groups and type in the Ruby Console:
      TIG.originateselectedgroups
      All groups will have their axes relocated at the ORIGIN.
      Nested groups locate at the container's origin - which will be the ORIGIN, IF the container was processed earlier...
      Ignore the make_unique error messages, you can't have duplicate groups and hope for them to both be right [Bugsplat!], so it forces all groups to become 'unique'.
      🤓

      TIG! Thank you so much for this.

      Would it be possible to have the same function done for both components and groups?
      I tried mixing the code, but my thin knowledge in programming doesn't cut it!
      Also, would it be possible to target all nested components and groups?

      posted in Newbie Forum
      josephkim626J
      josephkim626
    • RE: Sketchup 2018 - Retaining Workspace Problems

      Had done clean uninstall as well as admin install. Uninstall all plugins. However, the settings still did not stick. If I just keep changing the settings, it seemed that it will eventually stick, but it was at least 1 or 2 tries before it did.

      One thing I have noticed is that "SketchUp Application" can run even after closing SketchUp. You can confirm that behavior in the "task manager".

      I do not know what is causing the application to hang even after closing, but I suppose user preferences are being saved at that point, and if you open another instance of SketchUp, you just won't see the settings saved.

      For the times I have seen it hang and run on task manager, I have waited for it to close, then opened SketchUp, settings were stuck.

      Hope this is at the least useful for some other users.

      posted in SketchUp Discussions
      josephkim626J
      josephkim626
    • RE: Sooo slow when copy-pasting or importing large models

      Will do, and see if it makes any difference.

      posted in SketchUp Discussions
      josephkim626J
      josephkim626
    • RE: Sooo slow when copy-pasting or importing large models

      I too have this issue which is new in 2017 version.

      I suspect it has to do with lines and faces having their own identification, but not sure as my knowledge is limited. Any way I can bypass or force the process to be quicker?

      posted in SketchUp Discussions
      josephkim626J
      josephkim626
    • RE: [Plugin] Texture Resizer (1.5.6) — updated 15.05.2013

      It doesn't seem like this is in works with 2017 version.

      Any plans for being updated?

      posted in Plugins
      josephkim626J
      josephkim626
    • RE: [Plugin] Material Tools

      It does not have a toolbar icon, if that is what you mean.
      It will show up in the menu however.

      Look under:
      Extensions > Material Tools.

      posted in Plugins
      josephkim626J
      josephkim626
    • RE: [Plugin] Originate component axes

      In addition to making this work on groups as well as the components, It should have option to work on all nested groups and components?

      Also, perhaps way to choose which axis to change to. Not limited to the world only, but perhaps to the axis of the currently active component or group?

      I hope this makes sense.

      posted in Plugins
      josephkim626J
      josephkim626
    • RE: [Plugin] Lines to tubes

      @pilou said:

      Seems bugged! 😉
      Or works only for curves ?
      Seems working only from polys of 5 segments! 😉

      [attachment=1:17is50ip]<!-- ia1 -->GIF_bugged.gif<!-- ia1 -->[/attachment:17is50ip]

      Indeed it behaves funny when it is run on rectangles.

      But it seems fine for some others.

      [attachment=0:17is50ip]<!-- ia0 -->tube.gif<!-- ia0 -->[/attachment:17is50ip]


      tube.gif

      posted in Plugins
      josephkim626J
      josephkim626
    • RE: [Plugin] Lines to tubes

      @pilou said:

      Does it possible to modify the plugin
      for have a rotation input?

      Now we have this!
      As you remark there is an Up Orientation!
      [attachment=1:1rui9dug]<!-- ia1 -->GIF_tube.gif<!-- ia1 -->[/attachment:1rui9dug]

      Wanted! 🤓

      [attachment=0:1rui9dug]<!-- ia0 -->squares_w.jpg<!-- ia0 -->[/attachment:1rui9dug]

      Sdmitch has his own plugin that does what you are describing.

      http://sdmitch.blogspot.co.uk/

      find "Edge To Tube"

      posted in Plugins
      josephkim626J
      josephkim626
    • RE: [Plugin] ExtrudelineTool Update

      @tig said:

      There is actually a separate thread discussing this too...

      Ah, sorry. I wasn't aware that there is another thread.

      Thanks for all the work TIG!

      posted in Plugins
      josephkim626J
      josephkim626