Getting current nodeID through JS API

Q&A about the latest versions
Post Reply
ffurger
Posts: 69
Joined: Mon Mar 24, 2014 11:45 am

Getting current nodeID through JS API

Post by ffurger » Thu Feb 23, 2017 5:44 pm

Just upgraded Pano2Vr from 4.x to 5.
I was really excited to discover that v5 now has a JS API. Thank you so much guys, you can't even begin to imagine to hoops I have been making with v4 in the past. So I tried to get the current nodeID with this code:

var currentNode;
currentNode = pano.getCurrentNode();
console.log(currentNode);

I did enable direct node access in the normal.ggt and in the Preferences also selected "Show internal node ID". However, I haven't been able to make this work.

What am I missing?

Thank you for your help,
Franco

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 14 guests