sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Changing Model axis?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 277 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.
    • thomthomT Offline
      thomthom
      last edited by

      I wanted to create a plugin which would change the model axis to match the active component. The purpose for this is when modelling building with different axis.

      What I have used to do is make some Scenes which stores only the axis location. But I wanted to make a plugin that would change the model axis when I edit some components.

      But I can not find any ways to set the model axis. Is this the same as Component Axis? A no-go?

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • N Offline
        NewOne
        last edited by

        @thomthom said:

        I wanted to create a plugin which would change the model axis to match the active component. The purpose for this is when modelling building with different axis.

        What I have used to do is make some Scenes which stores only the axis location. But I wanted to make a plugin that would change the model axis when I edit some components.

        But I can not find any ways to set the model axis. Is this the same as Component Axis? A no-go?

        You can not interact with axis from ruby. I had this problem once and I got this solution from CPhillips http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13660#p101752 Adapt it to what you want. Only way to change axis orientation for an object is to redraw all its faces on the new orientation.
        For rotation of axis it might be possible to get inside a component, select everithing inside and rotate around origin, then exit from component and rotate reverse the component with the same value.

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          hm.. that's what I thought of doing for making a Change Group Axis plugin.

          But for this plugin I want to change the model axis, and I don't want to shift all the geometry around to fake it as that will cause other problems, with scenes for examples...

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          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