Do you like this concept?
Code: Select all
var scene = Space.CurrentScene();
var numTopLevel = Node.SubObjectCount(scene);
HT_PREFERENCES = 5
RsStackView.SwitchStackViewAspect(HT_PREFERENCES);
for(var i=0; i< numTopLevel; i++) {
var item = scene + "/" + Node.SubObject(scene, i);
Search(item)
}
Activity.Run(System.ThisOwner() + "/DeleteORA");
Activity.Run(System.ThisOwner() + "/ShowCameraAndLights");
Activity.Run(System.ThisOwner() + "/CloseORASettings")
With regards to the DeleteORA script...
My thought is this could be backwards compatible and fix scenes that have the orphaned ORA nodes.
A Cleanup if you will.
I am worried about all of the possible Object Hiders out there that are Disconnected
Also wonder if would be possible to make it more efficient.
Instead of running these scripts on every node that has a WldMatrix
Is it possible to check for the ORA and if it exist, make it visible or invisible return, else run D3DView.ShowRenderAttribsForObject('', curNode) all within a try and catch. The previous mentioned error has to be bogus!