DOCUMENT_SECONDARYPATH
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/05/2007 at 05:10, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Hi All,I need to setup the secondary path in my preview material.
The sdk tell:if (pDoc) pDoc->GetDataInstance()->SetFilename(DOCUMENT_SECONDARYPATH, fnOrigDocPath);
where i must get the fnOrigDocPath in the materialData?
Because see that any doc->getdocumentpath get the wrong path.Cheers
Renato -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/06/2007 at 02:27, xxxxxxxx wrote:
I don't quite understand the problem. Just set the secondary path to a path where it should look if the texture can not be found in the document path.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/06/2007 at 05:57, xxxxxxxx wrote:
Hi Matthias,
the secondary path is set to my scene path and the documentpath is set to the preview scene path.
But still i get black texture.
Cheers
Renato -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/06/2007 at 06:11, xxxxxxxx wrote:
Hi all
seem that swapping sec <-> main path it's working.
Filename firspath = image->pDoc->GetDocumentPath();
Filename secopath = image->pDoc->GetDataInstance()->GetFilename(DOCUMENT_SECONDARYPATH);
image->pDoc->GetDataInstance()->SetFilename(DOCUMENT_SECONDARYPATH,firspath);
image->pDoc->SetDocumentPath(secopath);this make no sense for me.. any explanation?
Cheers
Renato