Place proxy object at all scene camera locations
-
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?
-
@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)) }
-
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.
-
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.
Advertisement