sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [Request]Axis Rotate

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 291 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      andre51
      last edited by

      Hi, I've imported a whole lot of obj files and they came out well but the blue axis need to be rotated 90deg without the model rotating. I know I can do that one at a time but maybe some plugin can automate the process?

      Many Thanks, Andre

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        Andre, I had a simuliar problem recently and I solved it by exploding and re-creating the components which gives them the default axis orientation with the code below

        def reset_axis
          mod=Sketchup.active_model
          ent=mod.entities
          sel=mod.selection
          comps=[]
          if !sel.empty?
            sel.each{|e| comps.push e if e.class==Sketchup;;ComponentInstance}
            for i in 0...comps.length
              dump=comps[i].explode; sel.clear
              dump.each{|e| sel.add e if (e.is_a?(Sketchup;;Face) || e.is_a?(Sketchup;;Edge))}
              grp=ent.add_group sel
              grp.to_component
            end
          end
        end
        
        

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • A Offline
          andre51
          last edited by

          Hey thanks sdmitch! will give it a go..

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement