Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D How to export coordinate values to a txt file?

  • How to export coordinate values to a txt file?

    Posted by Rodrigo Diaz on January 4, 2011 at 10:21 pm

    Hello

    Im looking for a way to make c4d write the x,y,z coordinate values of a nullobject into a txt file. The nullobject is animated/moves around for 5 seconds, the values must be written for each frame(30f/sec), so there should be a long row of coordinates in the txt file.

    It would be nice with some advise.

    Thanks.

    In an infinite universe, with no end and no beginning. Is it possible, not to be born again?

    André Irniger replied 15 years, 6 months ago 3 Members · 5 Replies
  • 5 Replies
  • Lennart Wåhlin

    January 5, 2011 at 3:19 am

    Check out SteadyCHAN at my site:

    https://www.tcastudios.com -> xfiles

    Cheers
    Lennart

    aka tcastudios

  • André Irniger

    January 5, 2011 at 6:39 pm

    Hy there,

    In case you are interested in how one could write such a piece of COFFEE, I attached a simple file I created once.

    It writes the frame-number, global position/rotation to a file. The output is pretty much unformatted, but with this skeleton, you can print whatever you want and you could also add commands to format it in COFFEE if you like. I normally do the formatting of the COFFEE output by a java/python script.

    Cheers
    maxx

    1466_coffeewriteobjectdatatofilebymaxx.zip

  • Rodrigo Diaz

    January 6, 2011 at 1:39 pm

    Oh yes! This is exactly what I needed!!! 😉 Im very happy now thanks alot, I really apreciated this!

    In an infinite universe, with no end and no beginning. Is it possible, not to be born again?

  • Rodrigo Diaz

    January 6, 2011 at 1:42 pm

    Thanks, I understand a bit more now 🙂

    What do you mean by formatting the COFFE output, you mean if you want to setup the txt file in your own way? Can this also be done with EXCELL maybe?

    In an infinite universe, with no end and no beginning. Is it possible, not to be born again?

  • André Irniger

    January 6, 2011 at 3:57 pm

    >> What do you mean by formatting the COFFE output, you mean if you want >> to setup the txt file in your own way?

    Yes, exactly. I am sure COFFEE also has some string-formatting functions that I didn’t look up yet. With those you could output in whatever format you like.

    Cheers
    André

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy