sketchucation logo sketchucation
    • Login
    1. Home
    2. kyyu
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 150
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] BezierSpline - v2.2a - 22 Apr 21

      @unknownuser said:

      @kyyu said:

      Hi Fredo6,

      First of all, thank you very much for this wonderful plugin! πŸ˜„ I would like to report a small bug with the "Convert to Catmull Spline" feature. One of the segments is always left out of the conversion.

      -Kwok

      You need to explictly close the loop, by hitting the Key F9 (or via contextual menu).

      Fredo

      Thanks, that worked perfectly!

      -Kwok

      posted in Plugins
      K
      kyyu
    • RE: [Plugin] BezierSpline - v2.2a - 22 Apr 21

      Hi Fredo6,

      First of all, thank you very much for this wonderful plugin! πŸ˜„ I would like to report a small bug with the "Convert to Catmull Spline" feature. One of the segments is always left out of the conversion.

      -Kwok

      Convert to Catmull Spline bug.png

      posted in Plugins
      K
      kyyu
    • RE: [Plugin] Delete Interior Faces

      Hi Thomas. Thanks for the welcome. It feels good to finally have something to share. πŸ˜„

      -Kwok

      posted in Plugins
      K
      kyyu
    • [Plugin] Delete Interior Faces

      This is a plugin, I've been trying to figure out for a few months. Just got the "Automatic Sketchup" book last week, which helped alot. Like the name saids, deletes all interior faces. Just select and use right click context menu. Look in submenu [kyyu].

      @unknownuser said:

      Copyright(C) 2010, kyyu
      All Rights Reserved

      Name: Delete Interior Faces
      Version: 1.0
      SU Version: 7.0
      Date: 05-04-2010

      Description: This plugin deletes all Interior Faces of a part(s)
      Usage: Select the parts and right click context menu ( [kyyu]/Delete Interior Faces )

      History:
      1.0 (05-04-2010) - first version

      Before

      After

      v 1.0

      sketchup test file

      -Kwok

      posted in Plugins
      K
      kyyu
    • [Plugin] Key Rotate

      This is the first plugin I wrote. I just wanted a simple plugin to rotate groups 90 degrees in all 3 axis. Got tired of doing it by dragging stuff with the mouse. I use it alot. I was totally clueless, at the time, so credit goes to TBD and his Rotix plugin. The structure will look similar. I deleted alot of stuff and added a few things. Though after writing the PushPull&Group plugin, I imported some extra picker logic back as improvement.

      To use, just hover over a group to auto select and hit the following keys to rotate 90 deg. Arrow keys for x,y and Home/End for Z. I normally just reach over with my left hand. It might be disorienting at first, but you should quickly get the hang of it. Z should be no problem. A tip for x,y is; line yourself up on the standard position, facing the xy plane. And imagine the arrows on the surface of the part. And imagine pushing on an arrow, will push that edge down.

      You can see me using it at ~6 minute mark in the F15 video: http://forums.sketchucation.com/viewtopic.php?f=323&t=28072#p243453

      @unknownuser said:

      Copyright(C) 2010, kyyu
      All Rights Reserved

      Name: Key Rotate
      Version: 1.02
      SU Version: 7.0
      Date: 05-04-2010

      Purpose: This plugin helps with the assembly of 3D models & puzzles for 1/4" sheet stock.
      Description: Mouse over a group and use keyboard keys to rotate group 90 deg (about their center)
      Usage:

      Right & Left arrow keys => rotate about the green (Y) axis direction

      Up & Down arrow keys => rotate about the red (X) axis direction

      Home & End arrow keys => rotate about the blue (Z) axis direction

          # ** Hold Shift Key to add to selection
      

      Credits: I learned alot buy studying TBD's Rotix plugin. Thanks you, for making it!
      History:
      1.0 (05-04-2010) - first version
      1.01-2 added to description text

      v 1.02

      -Kwok

      posted in Plugins
      K
      kyyu
    • RE: [Plugin] PushPull & Group

      TIG,

      I was able to get it to work your way, by leaving the drawing full size instead of scaling it down to 1/4" slots. Got no clue what the difference is. I drew a rectangle and got a face covering everything. But it's still very slow, even with the intersection method. So it might just be a large number of edges (~5800) and my old pentium 4 computer.

      -Kwok

      posted in Plugins
      K
      kyyu
    • RE: [Plugin] PushPull & Group

      TIG, I wouldn't have though of that in a million years. It will sure come in handy. It does take a long time to make faces, but also the video recording slowed it down alot. 2 or 3 time slower, I think. I did try you method on that dxf data and there is unforeseen problems. Dragging a large rectangle around all the parts, the face did not form. But did form on one of the small parts. 😲 I suspect the data is not 100% flat. Anyway, I've grown to hate importing dxfs, as there are always problems.

      rclub24, thanks for the lesson on embedding. As far as the metric question, It's not just metric. The VCB input can't do much of anything right now, like even fractions which I am used to. I had assumed the conversion was built into the VCB, like in all the standard sketchup tools. But seems not. If anyone has the VCB code or can direct me to an example, I would be happy to put that in.

      -Kwok

      posted in Plugins
      K
      kyyu
    • [Plugin] PushPull & Group

      Hello all,

      I've been lurking here a few months soaking up the info, to learn to write plugins. Though I would give something back, starting with this one. My background is wanting to learn cnc. And I found the phlatboyz, who use sketchup and their phlatscript plugin to generate cnc gcode directly from sketchup. Lots of the interest is making models and puzzles out of sheet foam. That's how I started using sketchup. So my 1st few plugins, I wrote to make drawing easier. So here is the plugin:

      @unknownuser said:

      Name: Push/Pull & Group
      Version: 1.0
      SU Version: 7.0
      Date: 05-04-2010

      Purpose: This plugin helps with the drawing of 3D models & puzzles for 1/4" sheet stock.
      Description: *As Tool: Push/Pull and group(optional), all with one click of the mouse.
      *Or Select multiple parts and right click context menu
      Usage:

      Automatic face picker - just hover mouse over face (I found it useful for selecting faces to delete also)

      Left mouse button => perform the Push/Pull & Group

      Right mouse button => toggle group or don't group (check for message on status bar)

      Hold down Shift Key => add to selection

      Hold down Contol Key => reverse the direction of Push/Pull

      If you change height (default=0.25"), the value is remember for the entire sketchup session.

      VCB will only except decimal inch values.

      Can be used from right click context menu, also.

      Credits: I learned alot buy studying TBD's Rotix plugin. Thanks you, for making it!

      You can see it in action in the following video where I build a F15 display puzzle in 3D from a dxf plans. At about 3 minutes, I use it to mouse over and delete faces. And about 5 minute mark, I use it to push/pull & group. I have since added the feature to simply select all the parts and use context menu to push/pull. You also see another plugin used to rotate with keystroke's. And recently, I did write a plugin to delete all interior faces. If there is any interest, I could release those as well.

      http://www.youtube.com/watch?v=5NZ2Ea5-7LU
      [rclub24 has embeded the video, 2 post down. Thanks.]

      V 1.0

      -Kwok

      posted in Plugins
      K
      kyyu
    • RE: Align Zaxis of plane to Azimuth and Altitude Coordinates

      This should get you started. I really can't help you more. It just happens, I am researching something similar, so familiar with the rotation commands. I am starting from your 2nd picture and assuming the plane normal is the green axis. The simple script just rotates whatever is selected with the assumed normal. About the origin, 30 deg and then 50 deg. So just select the parts, and type this into the ruby console to run the script (correct the path to where you have the script):
      load 'c:/Rotate_Plane_example.rb'


      Select parts and run the script in the Ruby Console


      Rotate_Plane_example.rb


      Rotate_Plane_example.skp

      posted in Plugins
      K
      kyyu
    • RE: How do I use linetool.rb script?

      @mgianzero said:

      @thomthom said:

      @mgianzero said:

      But how do I convert these x, y coordinates into something useful, like RGB (or true x,y,z) cartesian coordinates? I know is has something to do with the InputPoint method.

      Yes - you create in InputPoint object and call the .pick method with the x and y arguments given from the Tool's mouse events. After the pick you can extract the various data you want. For X,Y,Z use inputpoint.position.

      Thanks for the comments. But could you please show exactly what you mean by example? Perhaps using my code above and modify it.

      Sorry but I find that I can follow these suggestions better when I have a piece of code I can work off of.

      Hi Marc,

      I have just started leaning ruby and not a programmer, so can't help with programming info. But look at Plugins\Utilities\utilitiestools.rb as an example. You have to activate the extension "Utilites Tools". You use the tool from the Tools menu in sketchup => Tools/Utilities/"Query Tool". It displays cursor position in the bottom title space and the VCB.

      Using that as an example, helped me to write a plugin. With a little cut and paste and trial/error. My plugin just rotates everything, that is initially selected, to be parallel with an axis. You select, two points to indicate a line. And the line provides the angles for the rotation.

      -Kwok

      posted in Plugins
      K
      kyyu
    • 1 / 1