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
    • Recent
    • Tags
    • Users
    • Login

    include every file in directory

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 324 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 15/02/2009 at 06:29, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi,

      Does anyone know a way to include every file in a directory into the .cof-file whithout knowing the filenames?

      Thanks in advance for your help,
      Gambetti

      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 15/02/2009 at 08:34, xxxxxxxx wrote:

        What kind of files? Into the same folder as the .cof file?
        Or into the cof code?
        As long as you know where they are I suppose -maybe-
        there should be some way but I'm not sure.

        I think the include"file" function need the files placed and named
        beforehand.
        Other than that you might be able to at least read from files within
        the code.
        file->Open(fn, GE_READ); etc

        Cheers
        Lennart

        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 15/02/2009 at 15:34, xxxxxxxx wrote:

          I have a directory which might contain user-generated files (like "userClass.coh") with class-declarations. I want to include those files in the header of the .cof-file on startup.
          So, normally i would have

          > \> include 'userClass.coh'; \>

          in the header, but I don't know the name yet. - This doesn't seem to work with "file->Open". And it doesn't seem to be possible to have those include-statements wrapped inside a method. - So, probably there's no solution for this.

          Cheers,
          Gambetti

          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 16/02/2009 at 02:06, xxxxxxxx wrote:

            This is not possible in COFFEE. One possibility would be to write a C++ plugin which modifies the sources of the COFFEE files upon starting Cinema4D.

            cheers,
            Matthias

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