index out of range getselected

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 ?

  • Richard HaseltineRichard Haseltine Posts: 100,843

    Your script behaves as described for me, deselecting the primary selection.

Sign In or Register to comment.