Quick question about the browser plugin

Is it possible to pass variables (e.g. url get data) to an panda application embedded in a webpage?

Yes. Anything about the page that you can query via JavaScript you can query in Python. This includes the URL.

David

Could I see an example of how this is done?

Have you seen the manual, under the section “Advanced scripting techniques”, in particular “The appRunner.dom” object?

There’s no example there of actually using JavaScript; the manual assumes you are already familiar with web programming via JavaScript. You could see my example at ddrose.com/~drose/plugin/scripty.html .

David

Thanks, that was just what I needed. I am also running into an additional error, in my /bin directory of Panda, there is a packp3d.exe, but no .p3d file. The exe errors looking for it.

No such file: /c/Panda3D-1.7.0/bin/packp3d.p3d

I tried a reinstall with no success.

That’s a bug in 1.7.0. discourse.panda3d.org/viewtopic.php?p=54431

David

:slight_smile: Thanks.