NodeMap returns only two nodes

(Mzz) #1

Hello, I'm currently using Sketchfab API for my university project and look like since last viewer API update I'm having problems with reffering to nodes by it's ID. Before that I was looking at node map by using getNodeMap function and setting node ID as constant for future use. Now all I get are 2 nodes with ID 69 and 70, those, as I understand are root objects, but there are no children nodes, so I can't find node that I want to rotate/translate. Old ID that was used in project causing exceptions

So question is, how can I find ID of some node, since there're none in nodeMap? Thanks.



Could you share the model link so I can have a look?


(Mzz) #3

Sure, it's "7w7pAfrCfjovwykkEeRFLGw5SXS" I'm using example from


I think you have to wait until after the viewerready event fires to get the full node map or scene graph.