<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reg Media Editor -&amp;gt; WebEngine in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9799281#M3759</link>
    <description>&lt;P&gt;Hello ALL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Media Editor, while creating a Web Engine, there is an option to give the URL or local HTML file path. Here we normally hard-code the path of the HTML file.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Is there a possibility to give a relative path of the HTML file ( for example,&amp;nbsp;“%TMP%/user/myHTML.html”) so that when I copy the *.vpb file to any machine and still the media editor works the same way without having to change the path everytime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavan&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 06:57:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-13T06:57:19Z</dc:date>
    <item>
      <title>Reg Media Editor -&gt; WebEngine</title>
      <link>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9799281#M3759</link>
      <description>&lt;P&gt;Hello ALL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Media Editor, while creating a Web Engine, there is an option to give the URL or local HTML file path. Here we normally hard-code the path of the HTML file.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Is there a possibility to give a relative path of the HTML file ( for example,&amp;nbsp;“%TMP%/user/myHTML.html”) so that when I copy the *.vpb file to any machine and still the media editor works the same way without having to change the path everytime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavan&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 06:57:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9799281#M3759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-13T06:57:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: Reg Media Editor -&gt; WebEngine</title>
      <link>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9799312#M3760</link>
      <description>&lt;P&gt;This should work for setting the file path next to the .vpb file&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;$VRED_CURRENT_PROJECT_DIR\mypath1\mypath2\myindex.html&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 07:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9799312#M3760</guid>
      <dc:creator>seiferp</dc:creator>
      <dc:date>2020-10-13T07:12:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Reg Media Editor -&gt; WebEngine</title>
      <link>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9804612#M3761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error when I tried it using VRED 2020.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;expandFilename: couldn't expand env.var VRED_CURRENT_PROJECT_DIR! Path: $VRED_CURRENT_PROJECT_DIR\this\is\relative\test.html&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not get information about this variable VRED_CURRENT_PROJECT_DIR in the help.&lt;/P&gt;&lt;P&gt;How can I set this variable using python code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I would like to use my own environment variable. Can I do this?&lt;/P&gt;&lt;P&gt;For ex: I create a variable myTestVariable and assign it to a temp folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then can I use this variable as you mentioned inside the WebEngine control. "$myTestVariable\myHTML.html"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavan&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 11:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9804612#M3761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-15T11:49:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: Reg Media Editor -&gt; WebEngine</title>
      <link>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9861874#M3762</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;You can set a window specific environment variable e.g. with a batch script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;set myTestVariable=%~dp0\this\is\relative&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or in C# within process start:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;_currentProcess = new Process();
_currentProcess.StartInfo.EnvironmentVariables["myTestVariable"] = "C:\\temp\\"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Afterwards you can use this in your scene e.g. with python&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
os.environ["myTestVariable"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or in the media editor with&lt;/P&gt;&lt;LI-CODE lang="general"&gt;$myTestVariable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached, you can find a small example, where you should see a diffenrence if you double click on the test.vpb or if you double click the batch script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hint: You may have to change the VRED path in the batch.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:08:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/reg-media-editor-gt-webengine/m-p/9861874#M3762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-11T14:08:59Z</dc:date>
    </item>
  </channel>
</rss>

