Getting current nodeID through JS API

Q&A about the latest versions
Post Reply
Posts: 74
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();

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,

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests