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

    txt. exporter

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 448 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 28/08/2009 at 04:30, xxxxxxxx wrote:

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

      ---------
      Hi can anyone give me any pointers on creating a txt exporter. is it possible to do from the user script? I have made a script that gathers all my user data for each frame, now I need to save this as a txt. file.
      At the moment I am printing to the console window with the frame number as an index. Should this be put into an array for the purposes of exporting and if so is it possible to get
      var end_frame = 90;
      var myarray = new(array,end_frame);
      myarray[frame] = (op#ID_USERDATA:1);

      to work so that as the animation plays the array gets filled up with the userdata, then dumped out to the txt file?

      Any help would be greatly appreciated.
      Regard Conor

      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 28/08/2009 at 08:40, xxxxxxxx wrote:

        If this is running in an XPresso node or Expression tag, COFFEE is not allowed to write files from there. This can only be done in a COFFEE plugin.

        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 28/08/2009 at 09:27, xxxxxxxx wrote:

          Thanks Robert
          I was looking through the SDK at the Filter plugins and saw that there is a raw.cof example, would this be suitable to base my plugin on?
          Conor

          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 28/08/2009 at 09:45, xxxxxxxx wrote:

            Yes. Looks like SaveObject() is just a dummy function which you need to create to do the actual writing to the file. Looking to see if they have full code somewhere. Yes, there is a BaseRaw.coh in my examples folder. Download this file:

            <[URL-REMOVED]>

            This contains the simple HTML version of the COFFEE docs with the examples as separate files. You'll find both the raw.cof and BaseRaw.coh in there.


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

            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 28/08/2009 at 09:48, xxxxxxxx wrote:

              Thats great,
              Thanks very much Robert, have a good weekend.
              Regards Conor

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