On 09/10/2014 at 02:10, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 16
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
alright, I am sitting here like a duck and am not sure how to approach this. I am storing HyperFiles with a custom suffix and would like to support the team renderer to load these when my scene hook needs it (I am sitting in scene hook).
Easy question: How is it done?
To my knowledge I need to react to the MSG_GETALLASSETS message somehow and add my files to the assets collection. Seems to be the message that is sent when the assets are collected?
Something like:
case MSG_GETALLASSETS:
{
Filename asset_path = get_full_path_to_hyperfile_on_localhd();
// add the file to the asset list.
if (asset_path.Content())
{
((AssetData* )data)->Add(asset_path, (BaseList2D* )node, netRequestOnDemand);
}
}
break;
Is there anything else I need to do? Of course I want only the files to be loaded/requested by the client that are really required.