index out of range getselected
![darkdesire](https://secure.gravatar.com/avatar/a1aa6d396b760e62650021cad4c99414?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2Fa1aa6d396b760e62650021cad4c99414_100.png)
Hello,
i'm trying to write a script which deselect a previous selected node but i have this error:
\src\sdksource\general\dzscene.cpp(6551): Index out of range in DzScene::getSelectedNode()
The script:
var node=Scene.getPrimarySelection();
if (node) node.select(false);
DAZ 4.22.0.15
any idea ?
Thank you
Comments
in the log, it's indicated as a warning:
2024-02-08 07:36:27.239 [WARNING] :: \src\sdksource\general\dzscene.cpp(6551): Index out of range in DzScene::getSelectedNode()
perhaps is it normal ?
Your script behaves as described for me, deselecting the primary selection.