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

    Posts

    Recent Best Controversial
    • RE: [Plugin] Center on Origin UPDATE May 23, 2013

      Hi Chris,
      Tried to enter the patch script at the start of this thread, but the the ruby script is different than what you quoted:

      And here's another option. If you want it to reset the component rotation and scale, edit the ruby file in a plain text editor (like Notepad for example) and after the line:

      if comp.typename == "Group" || comp.typename == "ComponentInstance"

      add the two following lines:

      t = Geom::Transformation.new comp.transformation = t

      This is it now:
      sela.each do |e| if e.is_a?(Sketchup::Group) || e.is_a?(Sketchup::ComponentInstance) to_move << e end
      ...
      I need to zero out the components rotation/scale
      What's your thoughts?

      Terry

      posted in Plugins
      T
      tsurfing
    • 1 / 1