<?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 Re: Metadata entry list does not show pure string lists when created via Python in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/metadata-entry-list-does-not-show-pure-string-lists-when-created/m-p/12905860#M381</link>
    <description>&lt;P class="rendered-html"&gt;Hi,&lt;/P&gt;
&lt;P class="rendered-html"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="rendered-html"&gt;Thanks for reporting this issue. Yes, I can reproduce this and I will create the bug ticket for it.&lt;/P&gt;
&lt;P class="rendered-html"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="rendered-html"&gt;Best regards,&lt;/P&gt;
&lt;P class="rendered-html"&gt;Anton&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 16:00:40 GMT</pubDate>
    <dc:creator>anton_shelenkov</dc:creator>
    <dc:date>2024-07-18T16:00:40Z</dc:date>
    <item>
      <title>Metadata entry list does not show pure string lists when created via Python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/metadata-entry-list-does-not-show-pure-string-lists-when-created/m-p/12840348#M380</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to save some lists to a metadata entry via the python.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Selected is a manually created Metadata Set.
# It contains a manually created list entry that
# contains the string entries ['test', 'TEST']

meta = vrMetadataService.getSelection()[0]
entry = meta.getEntries().data()[0]
print(f'&amp;lt;{entry.getValue()}&amp;gt;, &amp;lt;{entry.getValueType()}&amp;gt;')
# prints: &amp;lt;['test', 'Test']&amp;gt;, &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.List&amp;gt;

entry.setValueType(vrMetadataTypes.ValueType.List)
entry.setValue([0, 0])
print(f'&amp;lt;{entry.getValue()}&amp;gt;, &amp;lt;{entry.getValueType()}&amp;gt;')
# prints: &amp;lt;[0, 0]&amp;gt;, &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.List&amp;gt;

entry.setValueType(vrMetadataTypes.ValueType.List)
entry.setValue([0, 'test'])
print(f'&amp;lt;{entry.getValue()}&amp;gt;, &amp;lt;{entry.getValueType()}&amp;gt;')
# prints: &amp;lt;[0, 'test']&amp;gt;, &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.List&amp;gt;

entry.setValueType(vrMetadataTypes.ValueType.List)
entry.setValue(['test', 0])
print(f'&amp;lt;{entry.getValue()}&amp;gt;, &amp;lt;{entry.getValueType()}&amp;gt;')
# prints: &amp;lt;['test', 0]&amp;gt;, &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.List&amp;gt;

entry.setValueType(vrMetadataTypes.ValueType.List)
entry.setValue(['test', 'test'])
print(f'&amp;lt;{entry.getValue()}&amp;gt;, &amp;lt;{entry.getValueType()}&amp;gt;')
# prints &amp;lt;['test', 'test']&amp;gt;, &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.String&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Whenever I pass it a list thats purely constisting of strings, VRED sets the type of the entry from &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.List&amp;gt; to &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.String&amp;gt;. If the list consisted of a single string, it is then handled like a regular sting. If it were multiple strings, VRED starts acting weired. It seems like it still returns the list when getting the value via Python, but if I interact with the metadata window it shows an empty &amp;lt;vrKernelServices.vrMetadataTypes.ValueType.String&amp;gt; entry, without the possibility to edit its value. The list can still be retrieved and edited via Python.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="benfabianbekemeier_1-1718379214804.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1376161iE4A3AEE4997A2237/image-size/medium?v=v2&amp;amp;px=400" role="button" title="benfabianbekemeier_1-1718379214804.png" alt="benfabianbekemeier_1-1718379214804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this a bug? Is it a feature? Am I missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 15:36:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/metadata-entry-list-does-not-show-pure-string-lists-when-created/m-p/12840348#M380</guid>
      <dc:creator>benfabian.bekemeier</dc:creator>
      <dc:date>2024-06-14T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata entry list does not show pure string lists when created via Python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/metadata-entry-list-does-not-show-pure-string-lists-when-created/m-p/12905860#M381</link>
      <description>&lt;P class="rendered-html"&gt;Hi,&lt;/P&gt;
&lt;P class="rendered-html"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="rendered-html"&gt;Thanks for reporting this issue. Yes, I can reproduce this and I will create the bug ticket for it.&lt;/P&gt;
&lt;P class="rendered-html"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="rendered-html"&gt;Best regards,&lt;/P&gt;
&lt;P class="rendered-html"&gt;Anton&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 16:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/metadata-entry-list-does-not-show-pure-string-lists-when-created/m-p/12905860#M381</guid>
      <dc:creator>anton_shelenkov</dc:creator>
      <dc:date>2024-07-18T16:00:40Z</dc:date>
    </item>
  </channel>
</rss>

