THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/06/2003 at 17:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 7.300
Platform: Windows ;
Language(s) : C++ ;
---------
In my shader plug-in, when the user loads a scene, I need to search for files in the scene's directory. I use the following code:
BaseDocument *mydoc = NULL;
mydoc = GetActiveDocument();
if (NULL != mydoc)
texpath = mydoc->GetPath();
Unfortunately, GetPath() returns an empty string when called during the plug-in's ReeadSettings() callback. At other times, such as at render time, GetPath() returns a valid value.
Is this a bug? Is there some other way to get the scene's path at load?
I am using the 7.3 SDK still. This problem occurs in both C4D 7 and 8.
Thanks,
Jane
Darkling Simulations