Pryme8 Posted April 3, 2016 Share Posted April 3, 2016 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. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 3, 2016 Share Posted April 3, 2016 use setEnabled(false or true). It is the most efficient way of mothballing meshes render cpu wise, and it does the kids too. Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted April 3, 2016 Author Share Posted April 3, 2016 that is awesome thank you, I was just setting the visibility of my widgets, and in the back of my mind I was like ohh man thats a lot data... Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted April 3, 2016 Author Share Posted April 3, 2016 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.