Digital Art Zone

 
     
any SDK fuction dealing with the content library
Posted: 12 February 2014 12:33 AM   [ Ignore ]
Active Member
Avatar
RankRank
Total Posts:  264
Joined  2006-05-09

Any SDK function dealing with the Content Library.  The poser or Carrara content in the browser.  Such as returning what has been added to the content folder and where its located.  I tried searching through the pdf’s and the .h’s as well as the forums, I apologize if this has been discussed before.

 Signature 

Carrara Cafe

Profile
 
 
Posted: 18 February 2014 11:53 AM   [ Ignore ]   [ # 1 ]
Member
Avatar
Rank
Total Posts:  223
Joined  2009-04-06
-_Milo_- - 12 February 2014 12:33 AM

Any SDK function dealing with the Content Library.  The poser or Carrara content in the browser.  Such as returning what has been added to the content folder and where its located.  I tried searching through the pdf’s and the .h’s as well as the forums, I apologize if this has been discussed before.

It seems to be defined in MCFInterfaceIDs.h

#define kRID_BrowserFamilyFamilyID 'Bfam' 

in MFInitGuid.h, there is a reference to a module

#include "IMFExBrowserFamily.h" 

which is unfortunately not in the SDK (would have been nice so you can define yours grin)

I found that in IDSHUtilities :

/// Returns all content runtimes stored by the browser
 
virtual void  MCCOMAPI GetContentRuntimes(TMCClassArray<TMCDynamicString>& runtimes) = 0;

 
/// Adds a content folder to the browser
 
virtual void  MCCOMAPI AddContentRuntimeFolder(const TMCDynamicStringruntimeFolder) = 0

And maybe that :

// ****************************************************************************
 //        CreateBrowserDialog
 // 
 /// Creates a browser dialog.  Do not forget to call CallPrepareToDestroy before
 /// you release the dialog.
 /// 
 /// \param browserDialog  Returns a pointer to the new browser dialog.
 /// 
 
virtual void MCCOMAPI CreateBrowserDialog(IMFBrowserDialog** browserDialog)=0;

 
// ****************************************************************************
 //        WriteComponentToBrowserFile
 // 
 /// Writes a component to a browser file.
 /// 
 /// \param component  A pointer to the component to write
 /// \param file       A pointer to the file where the component will be saved
 /// \param preview   An optional pointer to a bucket to use as a preview
 /// \see LoadComponentFromBrowserFile
 ///
 
virtual void MCCOMAPI WriteComponentToBrowserFile(IShComponentcomponentIMCFilefile, const TMCPixelBucketpreview=NULL)=0;

 
// ****************************************************************************
 //        LoadComponentFromBrowserFile
 // 
 /// Loads a component from a browser file
 /// \see WriteComponentToBrowserFile
 /// \param component          Returns a pointer to the component loaded
 /// \param componentFamilyID  ID of the component family being loaded
 /// \param file               A pointer to the file from which the component will be loaded
 ///  \return MC_S_OK if the file contained the right type of component
 ///
 
virtual MCCOMErr MCCOMAPI LoadComponentFromBrowserFile(IShComponent** component,const IDType componentFamilyID,IMCFilefile)=0;

 
// ****************************************************************************
 //        LoadComponentDataFromBrowserFile
 // 
 /// Loads a component's data from a browser file.  (The file must of course have been
 /// created from the same class as the component passed.)
 /// 
 /// \param component  A pointer to the component whose data you'd like to load
 /// \param file       A pointer to the file where the component is stored.
 /// \return MC_S_OK If the file contained the right type of component.
 ///
 
virtual MCCOMErr MCCOMAPI LoadComponentDataFromBrowserFile(IShComponentcomponent,IMCFilefile)=0

SO, not much success :-(

Profile