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

    Set camera name fail, why?

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 207 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 29/07/2007 at 19:07, xxxxxxxx wrote:

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

      ---------
      when I  was added a new camera after, I reset the name of camera, but was fail , the code is this:
      CameraObject* cam = (CameraObject* )BaseObject::Alloc(Ocamera);
       if ( !cam )
       {
        MessageDialog("CameraObject Create Fail!");
        return false;
       }
      cam->SetName("Publish_Camera1"); 
      doc->InsertObject(cam, NULL, NULL);

      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 30/07/2007 at 05:44, xxxxxxxx wrote:

        I don't understand, your code seems to work fine.

        cheers,
        Matthias

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