Jump to content

visibility inherent from parent


Pryme8
 Share

Recommended Posts

I might be mistaken, but it seems like it the case that if I make a parent objects visibility false then the children stay visible.

Now I am wondering is there a method of setting the parents visibility and having that also effect the children hopefully there is a method for that and not a loop through the children.

Link to comment
Share on other sites

parent.poles.X.visibility = true;
parent.poles.Y.visibility = true;
parent.poles.Z.visibility = true;
parent.caps.X.visibility = true;
parent.caps.Y.visibility = true;
parent.caps.Z.visibility = true;
parent.dualAxis.XY.enableEdgesRendering(1-0.000000000000001);	
parent.dualAxis.YZ.enableEdgesRendering(1-0.000000000000001);	
parent.dualAxis.ZX.enableEdgesRendering(1-0.000000000000001);

turned into:
parent.poles.parent.setEnabled(true);

My god your a boss, just say a HUGE increase in efficiency and was able to cut about 18 lines of script out.

and every widget had its own stuff like that so yea huge help thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...