Legacy Documentation

Dynamic Visualizer (2008)

This is documentation for an obsolete product.
Current products and services

Documentation / DynamicVisualizer / Information Functions /

5.3 Object Lists

In this section, object refers to any Dynamic Visualizer object: a model, camera, or graphics object.

A reference to the last object created in Dynamic Visualizer is stored in $LastVisualizerObject.

In[6]:=

Out[6]=

Referring to objects in Dynamic Visualizer.

An object is selected when a user clicks its shape. The model and camera can be selected if the model's bounding box or camera icon are displayed. From Mathematica, we can find out if any objects (Object3D, Model3D, or Camera) have been selected in Dynamic Visualizer using $SelectedVisualizerObjects.

In[7]:=

Out[7]=

This sets the color of the currently selected object to a random hue.

In[8]:=

You can test for a specific object's existence using the VisualizerObjectQ function.

In[9]:=

Out[9]=

For example, you can check that the last object created still exists.

In[10]:=

Out[10]=

Testing for the existence of a graphics object, camera, or model.

You can get a complete list of all objects in Dynamic Visualizer using the VisualizerObjects function.

In[11]:=

Out[11]=

Finding and listing objects in Dynamic Visualizer.

To list all objects, models, or cameras, simply include this as the first argument. For example, VisualizerObjects[] lists all graphics objects.

In[12]:=

Out[12]=

To list all objects contained inside a model, simply specify the model.

In[13]:=

Out[13]=

Objects cannot contain other objects, so the command returns an empty list.

In[14]:=

Out[14]=

If the specified object does not exist, VisualizerObjects returns an empty list.

In[15]:=

Out[15]=

Additionally, you can list all objects whose names fit the supplied string.

In[16]:=

Out[16]=