Class: Sketchup::Page
Overview
The Page class contains methods to extract information and modify the properties of an individual page.
Note that inside the SketchUp user interface pages are called 鈥淪cenes鈥.
Instance Method Summary # collapse
-
#axes ⇒ Object
The axes method returns the drawing axes for the page.
-
#camera ⇒ Object
The camera method retrieves the camera for a particular page.
-
#delay_time ⇒ Object
The delay_time method retrieves the amount of time, in seconds, that a page will be displayed before transition to another page during a tour.
-
#delay_time=(seconds) ⇒ Object
The delay_time= method sets the amount of time, in seconds, that a page will be displayed before transitioning to another page during a tour.
-
#description ⇒ Object
The description method retrieves the description for a page as found in the Scenes manager dialog.
-
#description=(description) ⇒ Object
The description method sets the description for a page as found in the Scenes manager dialog.
-
#hidden_entities ⇒ Object
The hidden_entities method retrieves all hidden entities within a page.
-
#include_in_animation=(include) ⇒ Sketchup::Page
The #include_in_animation= method controls whether the page should be included when exporting an animation from the model.
-
#include_in_animation? ⇒ Boolean
The #include_in_animation? method determines whether the page should be included when exporting an animation from the model.
-
#label ⇒ Object
The label method retrieves the label for a page from the page tab.
-
#layers ⇒ Object
The layers method retrieves the non-visible layers associated with a page.
-
#name ⇒ Object
The name method retrieves the name for a page from the page tab.
-
#name=(name) ⇒ Object
The name= method sets the name for a page's tab.
-
#rendering_options ⇒ Object
The rendering_options method retrieves a RenderingOptions object for the page.
-
#set_visibility(layer, visibility) ⇒ Object
The set_visibility method sets the visibility for a layer on a page.
-
#shadow_info ⇒ Object
The shadow_info method retrieves the ShadowInfo object for the page.
-
#style ⇒ Object
The style method retrieves the style associated with the page.
-
#transition_time ⇒ Object
Get the amount of time that it takes to transition to this page during a slideshow or animation export.
-
#transition_time=(trans_time) ⇒ Object
The transition_time= method is used to set the transition time.
-
#update(flags) ⇒ Object
The update method performs an update on the page properties based on the current view that the user has.
-
#use_axes=(pagesettings) ⇒ Object
The use_axes= method sets the page's axes property.
-
#use_axes? ⇒ Boolean
The use_axes? method determines whether you are storing the axes property with the page.
-
#use_camera=(setting) ⇒ Object
The use_camera= method sets the page's camera property.
-
#use_camera? ⇒ Boolean
The use_camera? method determines whether you are storing the camera property with the page.
-
#use_hidden=(setting) ⇒ Object
The use_hidden= method sets the page's hidden property.
-
#use_hidden? ⇒ Boolean
The use_hidden? method determines whether you are storing the hidden property with the page.
-
#use_hidden_layers=(setting) ⇒ Object
The use_hidden_layers= method sets the page's hidden layers property.
-
#use_hidden_layers? ⇒ Boolean
The use_hidden_layers? method determines whether you are storing the hidden layers property with the page.
-
#use_rendering_options=(setting) ⇒ Object
The use_rendering_optoins= method sets the page's display settings property.
-
#use_rendering_options? ⇒ Boolean
The use_rendering_options? method determines whether you are storing the rendering options property with the page.
-
#use_section_planes=(setting) ⇒ Object
The use_section_planes= method sets the page's section planes property.
-
#use_section_planes? ⇒ Boolean
The use_section_planes? method determines whether you are storing the section planes property with the page.
-
#use_shadow_info=(setting) ⇒ Object
The use_shadow_info= method sets the page's shadow info property.
-
#use_shadow_info? ⇒ Boolean
The use_shadow_info? method determines whether you are storing the shadow info property with the page.
-
#use_style=(style) ⇒ Object
The use_style= method sets the style to be used by the page.
-
#use_style? ⇒ Boolean
The use_style? method determines whether storing a style with the page.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
↑ #axes ⇒ Object
The axes method returns the drawing axes for the page.
↑ #camera ⇒ Object
The camera method retrieves the camera for a particular page.
↑ #delay_time ⇒ Object
The delay_time method retrieves the amount of time, in seconds, that a page will be displayed before transition to another page during a tour.
The default delay time can be modified in the Model Info > Animation panel of the SketchUp User Interface. If this method returns -1, the default delay time is used.
↑ #delay_time=(seconds) ⇒ Object
The delay_time= method sets the amount of time, in seconds, that a page will be displayed before transitioning to another page during a tour. If you set the delay for a page to be -1, the default delay time will be used.
The default delay time can be modified in the Model Info > Animation panel of the SketchUp User Interface.
↑ #description ⇒ Object
The description method retrieves the description for a page as found in the Scenes manager dialog.
↑ #description=(description) ⇒ Object
The description method sets the description for a page as found in the Scenes manager dialog.
↑ #hidden_entities ⇒ Object
The hidden_entities method retrieves all hidden entities within a page.
↑ #include_in_animation=(include) ⇒ Sketchup::Page
The #include_in_animation= method controls whether the page should be included when exporting an animation from the model.
↑ #include_in_animation? ⇒ Boolean
The #include_in_animation? method determines whether the page should be included when exporting an animation from the model.
↑ #label ⇒ Object
The label method retrieves the label for a page from the page tab.
↑ #layers ⇒ Object
The layers method retrieves the non-visible layers associated with a page.
↑ #name ⇒ Object
The name method retrieves the name for a page from the page tab.
↑ #name=(name) ⇒ Object
The name= method sets the name for a page's tab.
↑ #rendering_options ⇒ Object
The rendering_options method retrieves a RenderingOptions object for the page.
↑ #set_visibility(layer, visibility) ⇒ Object
The set_visibility method sets the visibility for a layer on a page.
↑ #shadow_info ⇒ Object
The shadow_info method retrieves the ShadowInfo object for the page.
↑ #style ⇒ Object
The style method retrieves the style associated with the page.
↑ #transition_time ⇒ Object
Get the amount of time that it takes to transition to this page during a slideshow or animation export. If this value is -1, it means to use the default transition time.
↑ #transition_time=(trans_time) ⇒ Object
The transition_time= method is used to set the transition time.
↑ #update(flags) ⇒ Object
The update method performs an update on the page properties based on the current view that the user has. Which parts of the Page get updated are controlled via an integer whose bits represent which parts to update. You can determine the integer you need to pass by adding these numbers together:
- 1 - Camera Location,
- 2 - Drawing Style,
- 4 - Shadow Settings,
- 8 - Axes Location,
- 16 - Hidden Geometry,
- 32 - Visible Layers,
- 64 - Active Section Planes.
The bit code values are added together to provide the flags value. For example, to update the Camera Location, Axes Location, and Active Section Planes properties, the flag would be 73 (1 + 8 + 64).
↑ #use_axes=(pagesettings) ⇒ Object
The use_axes= method sets the page's axes property.
↑ #use_axes? ⇒ Boolean
The use_axes? method determines whether you are storing the axes property with the page.
↑ #use_camera=(setting) ⇒ Object
The use_camera= method sets the page's camera property.
↑ #use_camera? ⇒ Boolean
The use_camera? method determines whether you are storing the camera property with the page.
↑ #use_hidden=(setting) ⇒ Object
The use_hidden= method sets the page's hidden property.
↑ #use_hidden? ⇒ Boolean
The use_hidden? method determines whether you are storing the hidden property with the page.
↑ #use_hidden_layers=(setting) ⇒ Object
The use_hidden_layers= method sets the page's hidden layers property.
↑ #use_hidden_layers? ⇒ Boolean
The use_hidden_layers? method determines whether you are storing the hidden layers property with the page.
↑ #use_rendering_options=(setting) ⇒ Object
The use_rendering_optoins= method sets the page's display settings property.
↑ #use_rendering_options? ⇒ Boolean
The use_rendering_options? method determines whether you are storing the rendering options property with the page.
↑ #use_section_planes=(setting) ⇒ Object
The use_section_planes= method sets the page's section planes property.
↑ #use_section_planes? ⇒ Boolean
The use_section_planes? method determines whether you are storing the section planes property with the page.
↑ #use_shadow_info=(setting) ⇒ Object
The use_shadow_info= method sets the page's shadow info property.
↑ #use_shadow_info? ⇒ Boolean
The use_shadow_info? method determines whether you are storing the shadow info property with the page.
↑ #use_style=(style) ⇒ Object
The use_style= method sets the style to be used by the page.
↑ #use_style? ⇒ Boolean
The use_style? method determines whether storing a style with the page.