Tree.SetProperties

Tree.SetProperties ( 

string ObjectName,

table  Properties )

Example 1

Tree.SetProperties("Deciduous", tProperties);

Sets the properties of the "Deciduous" tree object to those found in table "tProperties".

Example 2

tProps = Tree.GetProperties("CanYouSeeMe");

if tProps.Visible and tProps.Enabled then
   -- The tree object is both enabled and visible
else
   -- The tree object is either not visible, not enabled, or both
   tProps.Visible = true;
   tProps.Enabled = true;

   -- Apply the new properties to the tree object.
   Tree.SetProperties("CanYouSeeMe", tProps);
end

Checks the properties of the "CanYouSeeMe" tree object to see if it is enabled and visible. If it is not both enabled and visible, it is made to be both enabled and visible.

See also:  Related Actions