getByName & random character issue (Root.204ba79a45804da02860)
Hi there,
I have a PRC file in my PDF.
In the tree view in Acrobat it shows the names of the objects correctly.
If I list them using JavaScript into the console then it gives me the name plus a load of characters. This makes it impossible to reference the nodes or meshes in the scene.
This is the javascript code...
for (var i=0; i < scene.nodes.count; i++)
{
console.println(scene.nodes.getByIndex(i).name);
}
And this is the output
Root.204ba79a45804da02860
Camera.204ba79a45804da02808
Sphere.204ba79a45804da02830
Sphere Model.204ba79a45807b5030204ba79a45804da02830
Cube.204ba79a45804da02858
Cube Model.204ba79a45807b5080204ba79a45804da02858
I am using Adobe Acrobat Pro DC version 15.016.20041.55549.
Does anyone know what these additional characters are?
Since due to these random characters it makes it impossible to use getByName.
IE scene.nodes.getByName("Sphere"); does not return a valid node.
Thanks,
Kent
