Seeking function
All  1-4  5-6

Previous
Next
 From:  Michael Gibson
11709.5 In reply to 11709.4 
Also re:

> When setting the hidden property to FALSE I found that I had to do the same
> for all sub-objects for the object to be displayed.

Shouldn't normally be needed to do that unless you've set hidden = true on all the sub objects yourself.

For example, start with a blank scene, draw a box, and hide it (using regular UI).

If you then run this script it should show the box, by only setting .hidden = false on the top level box object only:

var box = moi.geometryDatabase.getObjects().item(0); box.hidden = false;

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  fcwilt
11709.6 In reply to 11709.5 
Hi Michael,

Thanks for all the information about how the hidden property works.

I will re-visit my code and see what I did wrong, to require "un-hiding" all of the sub-objects.

You should setup a "tip jar" for all of us folks that learn so much from you.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-4  5-6