publish VRED-Go - issues with URL of frontplates and WebEngine html

publish VRED-Go - issues with URL of frontplates and WebEngine html

tomsindelar
Contributor Contributor
1,781 Views
7 Replies
Message 1 of 8

publish VRED-Go - issues with URL of frontplates and WebEngine html

tomsindelar
Contributor
Contributor

Hello All !

 

I made a project in VRED which contain one frontplate with html page, and one WebEngine interface in the scene. When I try to export them as VRED-Go, the frontplates and WebEngines are missing, but I can´t modify the URL's they look like this:

 

file:///D:/SHARED/Test/VR/control_panel/index.html 

 

I need to remake them to: 

 

file:///control_panel/index.html  - but I canot rewrite them, when I try it, it automatically rewrite them to file:///D:/SHARED/.........

 

because with the first one URL it not working on different PC. I tried about 10 diferent exports, change the links, rename files but nothing helps. One time the frontplate was exported right, but the WebEngine page was missing, other export find the WebEngine page, but the frontplate was missing.

 

Thank a lot for help

 

Tom

 

0 Likes
Accepted solutions (2)
1,782 Views
7 Replies
  • VRED
Replies (7)
Message 2 of 8

Christian_Garimberti
Advisor
Advisor
Accepted solution

Hi, maybe following this thread you can manage your webengine problems.

https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9799281#M8174

 

But for frontplates the problem if that you cannot use variable so or you always have what you need in the same position (local or web), or you have to inline your code so it is everything inside your vred scene.

https://forums.autodesk.com/t5/vred-forum/vred-go-html-overlays-complete-code-has-to-be-inlined-into...

https://forums.autodesk.com/t5/vred-forum/html-sceneplate-in-vred-go/m-p/9482138#M7597

 

 

But i think that to use Vred Go the best choice is to inline everything so your executable will be standalone at 100%

 

Best

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Message 3 of 8

seiferp
Community Manager
Community Manager
Accepted solution

@Christian_Garimberti you can also use

$VRED_CURRENT_PROJECT_DIR

to set the file path next to your VRED .vpb file for front-plates in VRED Pro.

 

Another possibility when using Pro would be to host your files on GitHub for example and use an URL This would obviously require internet access.

 

Anyhow, the communication port for VRED GO is limited on purpose. Displaying sth. that is hosted online would work but as soon your front-plate communicates with the scene you must inline everything into your file using VRED HTML Editor.

 

0 Likes
Message 4 of 8

Christian_Garimberti
Advisor
Advisor

You @seiferp are always a step beyond...

But i remember to have asked for it (but maybe it was in the beta program.... 😁) and it doesn't worked.

 

Now i know that i have also this option to use, also if i think that for sharing Vred go, the inline option for me is the best choice.

 

Thank you

Chris

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Message 5 of 8

tomsindelar
Contributor
Contributor

Hello,

 

thank You for reply

I tried it with this variable you post:

 

$VRED_CURRENT_PROJECT_DIR

 

 it worked for vpb file, but it doesn´t work for VRED-Go .exe

 

Finally i managed it thanks to "examples files" in VRED and just replicate the structure. Put the whole html code "inline" to VRED, but another problem happend, the pictures from CSS styles, were missing, they were defined with local url path, but it doesn´t worked too. So I had to convert it them all to the data: base 64........and inline them to the page. It was quite frustrating day, 😅 it would be great to implement this info somewhere to "help section" of VRED, when you want to publish VRED-Go, because you spend about 2-3 days of searching forums and experimentating with it.

 

Thank you all for help, "inline everything" absolutely works great ! 😉 

 

Best

Tom

0 Likes
Message 6 of 8

seiferp
Community Manager
Community Manager

If you have some custom images than yes they have to be converted to base64 code. If we are talking about the thumbnail previews from the variant sets you can also request them from VRED via getVariantSetPreview() and use them in your HTML directly.

 

Here is a nice script that auto generates a frontplate menu from your scene you than can pulish with VRED GO...

 

https://github.com/simonnagel/VRED-autoGenerateHTMLOverlay

 

Message 7 of 8

MartinDK1993
Contributor
Contributor

Hi.

 

I'm experimenting a bit with VRED, and used this script, in order to be able to make a VREDGo File with a Vset menu. 

I modified the HTML Code slightly, in order to get the expressions i wanted, and define the different groups of variables. 

 

 Trying to save the file as a VRED Go, the saving failed. - Further more, after a couple of minutes, the program started not responding, and crashed. Afterwards the original project file is corrupted!.

I spent close to two day, making this scene. - Is there any way to reestablish the file?  

0 Likes
Message 8 of 8

MartinDK1993
Contributor
Contributor
No worries, found a backup in incremantalsave, and got the Html file to work properly 🙂
0 Likes