Class: Sketchup::Environments
Overview
An Environments object is a collection of Environment objects. It is used to manage the environments in a model.
An Environment object represents an environment in the model. Environments are used to control the background and lighting of the model. Environments can be used as skyboxes, for reflections, and to link the sun to the environment.
Instance Method Summary # collapse
-
#[](name) ⇒ Sketchup::Environment?
The #[] method is used to retrieve an Environment by name.
-
#add(name, path) ⇒ Sketchup::Environment
The #add method adds an Environment to the Environments.
-
#add_observer(arg) ⇒ Boolean
The #add_observer method is used to add an observer to the environments collection.
-
#current ⇒ Sketchup::Environment?
The #current method is used to get the current environment in the Environments.
-
#current=(environment) ⇒ Sketchup::Environment
The #current= method is used to set the current environment in the Environments.
-
#each {|environment| ... } ⇒ Sketchup::Environments
The #each method is used to iterate over all the environments in the Environments.
-
#purge_unused ⇒ Sketchup::Environments
The #purge_unused method is used to remove unused environments.
-
#remove(environment) ⇒ Boolean
The #remove method removes an Environment from the Environments.
-
#remove_observer(arg) ⇒ Boolean
The #remove_observer method is used to remove an observer from the current object.
-
#size ⇒ Integer
(also: #length)
The #size method retrieves the number of environments in the Environments.
Methods inherited from Entity
#attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
↑ #[](name) ⇒ Sketchup::Environment?
The #[] method is used to retrieve an Sketchup::Environment by name.
↑ #add(name, path) ⇒ Sketchup::Environment
The supported image formats are HDR, EXR and SKE.
The #add method adds an Sketchup::Environment to the Sketchup::Environments.
↑ #add_observer(arg) ⇒ Boolean
The #add_observer method is used to add an observer to the environments collection.
↑ #current ⇒ Sketchup::Environment?
The #current method is used to get the current environment in the Sketchup::Environments.
↑ #current=(environment) ⇒ Sketchup::Environment
The #current= method is used to set the current environment in the Sketchup::Environments.
↑ #each {|environment| ... } ⇒ Sketchup::Environments
The #each method is used to iterate over all the environments in the Sketchup::Environments.
↑ #purge_unused ⇒ Sketchup::Environments
The #purge_unused method is used to remove unused environments.
↑ #remove(environment) ⇒ Boolean
The #remove method removes an Sketchup::Environment from the Sketchup::Environments.
↑ #remove_observer(arg) ⇒ Boolean
The #remove_observer method is used to remove an observer from the current object.
↑ #size ⇒ Integer Also known as: length
The #size method retrieves the number of environments in the Sketchup::Environments.