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

    Place proxy object at all scene camera locations

    Scheduled Pinned Locked Moved Plugins
    4 Posts 2 Posters 513 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.
    • P Offline
      Phil Rader AIA
      last edited by

      Is there a plugin for sketchup that places a proxy or dummy group or component at the x,y,z coordinates of all of the scene camera locations? I don't need the camera view frustrum or camera paramenters, just a proxy object (dot) that is named the same as the scene tab.

      does this exist already?

      http://www.philrader.com

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

        @unknownuser said:

        Is there a plugin for sketchup that places a proxy or dummy group or component at the x,y,z coordinates of all of the scene camera locations? I don't need the camera view frustrum or camera paramenters, just a proxy object (dot) that is named the same as the scene tab.

        does this exist already?

        This code will place a component containing a single ConstructionPoint at the camera location for each scene in the model. The component definition is give the name of the scene.

        @mod = Sketchup.active_model
        @ent = @mod.active_entities
        @sel = @mod.selection
        @vue = @mod.active_view
        @mod.options["PageOptions"]["ShowTransition"]=false
        @mod.pages.each{|p|
         @mod.pages.selected_page=p
         cd = @mod.definitions.add(p.name)
         cd.entities.add_cpoint(ORIGIN)
         @ent.add_instance(cd,Geom;;Transformation.new(@vue.camera.eye))
        }
        
        

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

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • P Offline
          Phil Rader AIA
          last edited by

          wow thanks for this. I found Adam Billyards Scene Tweaker plugin....but it does not create an object at the camera location. http://sketchucation.com/forums/viewtopic.php?t=29964

          I'll give your script a try.

          thanks again for the freaky fast response.

          http://www.philrader.com

          1 Reply Last reply Reply Quote 0
          • P Offline
            Phil Rader AIA
            last edited by

            works great now to see if I can create a ruby with an icon so the script can be run by clicking an icon. I also may want to add an identifier tag to the components IE: VR-Scene name or even VR-cam-## and then the numbers would be progressively created based on the scene order.

            We are trying to create an import script for Unity that would create jump or teleport positions based on SketchUp scene cameras. So when a model is exported in FBX format and then Imported into Unity the unity script would automatically place a teleport location at each "proxy" for a camera. This way if you have a SketchUp file with scenes for kitchen, dining, bedroom, hall, basement, etc. when exported and then imported into Unity we can use the Xbox controller on the Rift to teleport you to those preset camera locations in the model.

            I'll see if I can take it from here but I may come back and ask for your help.

            thanks again for getting me this so quickly.

            http://www.philrader.com

            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