<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Distribute asset library as a zip file]]></title><description><![CDATA[<p dir="auto">Our plugin ships with a few material assets. I'm wondering if it's possible to install our custom asset library (asset database) as a zip file, instead of hundreds of files and folders.</p>
]]></description><link>http://developers.maxon.net/forum//topic/15759/distribute-asset-library-as-a-zip-file</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 16:01:07 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/15759.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Oct 2024 14:55:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Distribute asset library as a zip file on Fri, 11 Oct 2024 07:51:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ferdinand,</p>
<p dir="auto">Thank you for the detailed description, it's very useful, I have a good understanding now how this should work. Yes, the main goal here is installer optimization. Unfortunately, hosting online is not an option. I'll give it a thorough testing to see if we hit any limitations with this approach, and we might drop the idea if so.</p>
<p dir="auto">Thanks,<br />
Peter</p>
]]></description><link>http://developers.maxon.net/forum//post/75125</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/75125</guid><dc:creator><![CDATA[peter_horvath]]></dc:creator><pubDate>Fri, 11 Oct 2024 07:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to Distribute asset library as a zip file on Fri, 11 Oct 2024 07:57:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/peter_horvath">@<bdi>peter_horvath</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. Yes, you can ship assets as a zipped asset database. To do this, simply select the assets you want to export and run one of the <code>Create &gt; Export ...</code> commands from the Asset Browser menu.<br />
<img src="/forum/assets/uploads/files/1728558964846-544fb087-f5fb-423f-bf99-c9ea65270233-image.png" alt="544fb087-f5fb-423f-bf99-c9ea65270233-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This will leave you then with a database for these assets in zip format, e.g., <code>my_database.zip</code> which you can also rename, e.g., to <code>my_database.db</code> as I did here:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1728559043580-0d7e37f9-eb2d-4713-b6cb-25e59bf7ebe8-image.png" alt="0d7e37f9-eb2d-4713-b6cb-25e59bf7ebe8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Now we can mount that zip database and can see that the assets are now provided both by the <em>Preferences</em> user database where I created them and our new zip database.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1728559184043-a0fca990-1180-49a7-b93f-7e03d2880615-image.png" alt="a0fca990-1180-49a7-b93f-7e03d2880615-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I am not quite sure why you want to use a zip-database, I assume for installer/uninstaller optimization reasons? But I would generally not recommend using zip databases, at least when you plan to programmatically interact with them. When I wrote the Asset API examples, I also created the <a href="https://developers.maxon.net/downloads/sdk_asset_database_s26.zip" target="_blank" rel="noopener noreferrer nofollow ugc">sdk_asset_database_s26.zip</a> database but then found out bit by bit that zip databases have some limitations. They are not large and I quite frankly do not remember all of them anymore but in <a href="https://developers.maxon.net/docs/cpp/2025_0_1/page_handbook_assetapi_asset_types.html#assetapi_snippet_load_asset" target="_blank" rel="noopener noreferrer nofollow ugc">this code example</a> I mentioned one of them. Maybe all this has been fixed by now, but I would be surprised as I do not know any users for zipped databases aside from SDK at Maxon.</p>
<h4>Hosting your Databases Online</h4>
<p dir="auto">The alternative would be to host your database simply online. There is no magic involved, you just need an <code>ftp</code>, <code>ftps</code>, <code>http</code>, or <code>https</code> server and can then put there your database folder as is. Technically you can also use the full width of protocols supported by <code>maxon::Url</code>, so even fringe things like a Perforce server. For demonstration purposes I have uploaded a small database to <a href="http://developers.maxon.net/downloads/my_online_database" target="_blank" rel="noopener noreferrer nofollow ugc">developers.maxon.net/downloads/my_online_database</a>. Our server is of course configured in a manner that people cannot snoop around in the file system (the link above will 403) but you can mount that database in Cinema 4D.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1728559869775-f60849df-016a-4a82-a21f-dc330082271e-image.png" alt="f60849df-016a-4a82-a21f-dc330082271e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">On the server this is literally just the dumped database folder:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1728560050703-58317161-8af9-4aed-82f2-4a4c760cd8a2-image.png" alt="58317161-8af9-4aed-82f2-4a4c760cd8a2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Before shipping a database in any form, you should always make sure it is properly indexed via the context menu of the database. As you can see here, for example the Arnold user database is not indexed (the icon behind the eye). You can easily fix this via the context menu of the database. Zipped databases are always indexed by default.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1728555157166-433d89ed-8fe3-4282-950d-b6de628f33ae-image.png" alt="433d89ed-8fe3-4282-950d-b6de628f33ae-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum//post/75121</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/75121</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Fri, 11 Oct 2024 07:57:29 GMT</pubDate></item></channel></rss>