eminsua
(Eminsua)
June 13, 2019, 8:56am
1
I’ve been following the steps on How to embed a ShapeDiver model for API usage, and encounter this issue.
javascript file deployed at:
https://shape-edu.herokuapp.com/js/main.js
website deployed at:
https://shape-edu.herokuapp.com/
if I open the chrome console I see the error:
“This website is not whitelisted”
but I added that domain to the whitelist.
Again in the console I see the error:
“Failed to load resource: the server responded with a status of 404 ()”
for the resource:
https://model-view.shapediver.com/ticket/c7d1ba5ccec2d7748e16881a8b8a78381d8863c2136ecef27f171a0ca135fbe1065b227ffe34375e3014532d69bd28a564d8d92a568f22b8124857034f2cdadf557c3111a7e27cc9effdb7604a4390ed4c5332f5d028f2faef37c25281fe2a2b5304a3edd0fd71d32accdf53430898eb7487fd3d9854-5315062f92ca9c7cc492515f95f7da50
But I see the ticket used is the right one.
mathieu1
(Mathieu Huard)
June 13, 2019, 9:08am
2
I think you need to add modelViewUrl: 'eu-central-1'
in your viewerSettings object. If you don’t specify it, the API will try to use the legacy US server, but your account is setup on the new one.
eminsua
(Eminsua)
June 20, 2019, 9:15am
3
Thanks a lot for this Mathieu it works fine now.
Can I ask you another question.
I’m trying to make the object rotate or a camera spinning around it.
I was trying to use a timer on the grasshopper script but this is not supported by shape diver.
Is there any way I can define a camera path and spin around the object?
thanks a lot in advance
REgards
Eduardo
edsahergom
(Edwin Hernandez)
June 20, 2019, 12:59pm
4
@eminsua you can make your camera rotate around the object by using the “Auto Rotation” parameter in the viewer settings in the camera section.