30 60 Degrees Perspektif
-
@tig said:
This will do it......
Thanks TIG. And you didn't even take a break for coffee? Amazing how you guys put these things together!!! All my attempts to grasp ruby have been without success so far. Gaieus, we are in the same corner.
Now let's see if I can get it to work to see what it does to my PC.
Wo3Dan
-
Remember that after setting the axo or iso view you can only zoom in/out and pan, orbiting will mess up the view.
So it's a good idea to set the axo or iso then pan/zoom to the required view and save it as a Scene tab. Then you can mess around orbiting etc to make the model, but return to the axo or iso view by clicking its Scene tab...
-
This will do it
### 2010 (c) TIG ### paste code into a file in Plugins folder as 'axo+iso.rb' ### sets camera to 30/60 axonometric view and zooms extents require 'sketchup.rb' ### def axo3060 model=Sketchup.active_model view=model.active_view camera=view.camera eye=Geom;;Point3d.new(-25.3259,-5.00502,463.851) target=Geom;;Point3d.new(10.9614,15.9032,41.225) up=Geom;;Vector3d.new(0.862238,0.496811,0.0986113) perspective=false newcamera=Sketchup;;Camera.new(eye,target,up,perspective) view.camera=newcamera Sketchup.send_action("viewZoomExtents;") end ### sets camera to 30/30 isometric view and zooms extents def iso3030 model=Sketchup.active_model view=model.active_view camera=view.camera eye=Geom;;Point3d.new(-219.18,-239.658,258.471) target=Geom;;Point3d.new(72.869,52.1777,-23.5562) up=Geom;;Vector3d.new(0.398992, 0.398701, 0.825738) perspective=false newcamera=Sketchup;;Camera.new(eye,target,up,perspective) view.camera=newcamera Sketchup.send_action("viewZoomExtents;") end ### ###
To use it type
axo3060
in the Ruby Console - it sets the camera and zooms extents...
The axes are set at 30/60 degrees [G/R], perspective is 'off' and the verticals [B] are vertical...
OR typeiso3030
in the Ruby Console and the axes are set at 30/30 degrees [G/R] etc...
-
Tanks TIG - and of course, Wodan, too. -
I didn't realize he was asking for Axonometric. I thought it was just a standard 30 /60 perspective. My bad.
-
@unknownuser said:
I didn't realize he was asking for Axonometric. I thought it was just a standard 30 /60 perspective. My bad.
IF he did then your method is dead easy... just draw guide or line parallel to a side and rotate it 60 degrees... stand you camera on the line and everything is as you showed...
-
i've been looking for something like this for quite some time now. Works a treat.
Would it also be possible to have it show a 45 45 axonometric view? -
@d_r_i_x said:
i've been looking for something like this for quite some time now. Works a treat.
Would it also be possible to have it show a 45 45 axonometric view?It would be axo4545 and also axo6030 - however they are the end of a list right now...
-
in addition to what i mentioned, the ruby file by Tif, the red and green lines are right, but the vertical blue line is wrong (the view is wrong), but i dont know how to fix that???? anybody??
just need to change the vertical view in axo like the one in iso in the code, but i dont know how -
i download TIF's ruby code, it works perfect for the green and red axis, but
-
Latecomers wild guess. Do you need SU to be in "parallel projection view"?
-
@elaohu said:
in addition to what i mentioned, the ruby file by Tif, the red and green lines are right, but the vertical blue line is wrong (the view is wrong), but i dont know how to fix that???? anybody??
just need to change the vertical view in axo like the one in iso in the code, but i dont know howPlease explain how it is 'wrong' - a screen-shot could help...
-
I did it. Thank you
But Only, axo3060 and iso3030 view ?
Can we make more choice ?
Axo4545 etc... ?
Advertisement