Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Scene.removeNode() Sloooow [SOLVED]

$
0
0

Hi,

It looks like deleting by script an object with many assets with Scene.removeNode takes forever. It is confusing as it takes one second if you do it manually in DAZ Studio's scene.

For example if I load G8F in the scene, it takes me 11 seconds. If I delete her with a simple script it takes... 25 seconds

The same script is much faster with simple objects.

Any idea of what's going on and if there is a solution?

 

for( i = 0; i < Scene.getNumNodes(); ++i ) {
	var n = Scene.getNode(i);
      if(n.isRootNode())Scene.removeNode( n )
      }

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>