Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    DOCUMENT_SECONDARYPATH

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 418 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post