Forum

Just one last question to finish...(two questions)

10 March 2018 21:23
I thought i could maybe use "Page Redirect" "url" node to direct the user to find a local file in the hard drive.
Just to clarify: what i would really like is to have a cylinder or sphere clicked in the scene that would launch a file browser…but any solution below could help, as long as it allows me to place it "in front of the scene" (the <input…in html was getting behind the scene(disappearing once the scene loads)…

1) As asked before, my goal is to have the viewer to click a button or an object in the scene and the file browser will open so they can load a picture of a certain size in the background.

Would it be nice if I could just use the logic nodes for that? Well I HAD THE IDEA TO USE PAGE REDIRECT file:///localHost…or
file:///c: It would do the trick if it was to work….
I tried with the page redirect url node and it didnt work.
Alexander gave me <input file type…. which does not load in front of the scene (pardon my coding ignorance please)….any suggestions?? also I want to try the code snippet for custom anchors using the generic type….but that sounds complicated. But i will try anyway. Please let me know…..
Cant say enough thanks to everyone………

2) what can I do if i want to add a button that will print(copy) the objects in the scene to a separate browser, or .pdf pre formatted form? in other words I would like to output/export the objects to an external formatted page…? obviously im working on acquiring B4W for that. Any suggestions?
12 March 2018 17:43
Just to clarify: what i would really like is to have a cylinder or sphere clicked in the scene that would launch a file browser…but any solution below could help, as long as it allows me to place it "in front of the scene" (the <input…in html was getting behind the scene(disappearing once the scene loads)…
You can use css and z-index to change your html-elements "depth"

Would it be nice if I could just use the logic nodes for that? Well I HAD THE IDEA TO USE PAGE REDIRECT file:///localHost…or
file:///c: It would do the trick if it was to work….

You should use JS. See this link.

what can I do if i want to add a button that will print(copy) the objects in the scene to a separate browser, or .pdf pre formatted form? in other words I would like to output/export the objects to an external formatted page…? obviously im working on acquiring B4W for that. Any suggestions?
You can use screenshoter
Alexander (Blend4Web Team)
twitter
 
Please register or log in to leave a reply.