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
    • Register
    • Login

    Retrieve SoundSequence Sound file?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 313 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/03/2005 at 20:47, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.503 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      All that I need to do is get the file string for a Sound file from a Sound Sequence properties, but I'm getting "" as the result for a real name ("martian.wav" for testing). Here's the code:

      BaseContainer* data = seq->GetDataInstance();
           String lvl = String("");
           // Write Sound Properties (if applicable)
           if (soundTrack)
           {
                str = lvl+" SOUND ";
                str += (data->GetBool(ID_SOUND_ONOFF))?"ON ":"OFF ";
                str += """+data->GetString(ID_SOUND_NAME)+""";
                if (!WriteLine(str)) return FALSE;
           }

      What am I doing wrong? ID_SOUND_NAME is a STRING in the SEsound.res file. There doesn't appear any other way to get to it (e.g.: using a method).

      Thanks,

      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/03/2005 at 21:33, xxxxxxxx wrote:

        N'er Mind. 🙂

        Retrieved it with Atom::GetParameter().

        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 29/03/2005 at 08:05, xxxxxxxx wrote:

          I love people finding their own solutions and bugs. ;-D

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