Right View
-
Hi all!
Anyone knows how to make it an isometric view, or left, right etc ? And without Sketchup.send_action of course !!Thank you !
-
Hi,
Extracted from my ADO tool:def ado_create_axo_pages( render_type, shadows, transparency) # Default values #default values $ortho_pages = "Yes" if not $ortho_pages $axo_pages = "Yes" if not $axo_pages $render_pages = "Hidden Lines" if not $render_pages $shadows_pages = "No" if not $shadows_pages $trans_pages = "No" if not $trans_pages $angle_azimuth_pages = -45.0 if not $angle_azimuth_pages $angle_hauteur_pages = 45.0 if not $angle_hauteur_pages # Current params model = Sketchup.active_model pages = model.pages num_pages = pages.count view = model.active_view camera = view.camera t_rot_plus_pis2 = Geom;;Transformation.rotation([0.0,0.0,0.0], [0.0,0.0,1.0], deg2rad( 90.0 )) # Compute camera viewpoint position = $camera_position (ado_camera_position $angle_azimuth_pages, $angle_hauteur_pages) # Front-Left view camera.set [$vec_camera_position.x,$vec_camera_position.y,$vec_camera_position.z] , [0,0,0], $vec_up, false view.zoom_extents new_page = pages.add "Front_Left" (set_rendering_option $render_pages, $shadows_pages, $trans_pages) view.zoom_extents view.invalidate new_page.update # Front-Right view $vec_camera_front_right = $vec_camera_position.transform(t_rot_plus_pis2) $vec_up_front_right = $vec_up.transform(t_rot_plus_pis2) #camera.set [1000,-1000,1000], [0,0,0], [-1,1,1], false camera.set [$vec_camera_front_right.x,$vec_camera_front_right.y,$vec_camera_front_right.z], [0,0,0], $vec_up_front_right, false view.zoom_extents new_page = pages.add "Front_Right" (set_rendering_option $render_pages, $shadows_pages, $trans_pages) view.zoom_extents view.invalidate new_page.update # Rear-Left view $vec_camera_rear_left = $vec_camera_front_right.transform(t_rot_plus_pis2) $vec_up_rear_left = $vec_up_front_right.transform(t_rot_plus_pis2) #camera.set [1000,1000,1000], [0,0,0], [-1,-1,1], false camera.set [$vec_camera_rear_left.x,$vec_camera_rear_left.y,$vec_camera_rear_left.z], [0,0,0], $vec_up_rear_left, false view.zoom_extents new_page = pages.add "Rear_Left" (set_rendering_option $render_pages, $shadows_pages, $trans_pages) view.zoom_extents view.invalidate new_page.update # Rear-Right view $vec_camera_rear_right = $vec_camera_rear_left.transform(t_rot_plus_pis2) $vec_up_rear_right = $vec_up_rear_left.transform(t_rot_plus_pis2) #camera.set [-1000,1000,1000], [0,0,0], [1,-1,1], false camera.set [$vec_camera_rear_right.x,$vec_camera_rear_right.y,$vec_camera_rear_right.z], [0,0,0], $vec_up_rear_right, false view.zoom_extents new_page = pages.add "Rear_Right" (set_rendering_option $render_pages, $shadows_pages, $trans_pages) view.zoom_extents view.invalidate new_page.update end
P.S.: à voir les paramètres à modifier, les variables, etc.
A+ -
Wow
Thank you Didier ! I will read that !!! Excellent work... I Didon't know this script !
Advertisement