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

    SceneLoader plugin not setting timeline

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 225 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 10/02/2009 at 15:27, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11.010 
      Platform:      
      Language(s) :     C++  ;

      ---------
      My SceneLoader::Load method looks like this:

      > \> LONG GTOSceneLoader::Load(PluginSceneLoader \*node, const Filename &name;, BaseDocument \*doc, LONG filterflags, String \*error, BaseThread \*bt) \> { \> \>     if (camera) \>     { \>         // Lots of code to that creates a C4D camera from GTO file \> \>         BaseTime tMin(m_start_frame, 24); \>         BaseTime tMax(m_start_frame+m_num_frames, 24); \> \>         doc->SetFps(24); \>         doc->SetMaxTime(tMax); \>         doc->SetMinTime(tMin); \>         doc->SetTime(tMin); \>         doc->Message(MSG_UPDATE); \>         EventAdd(EVENT_ANIMATE); \>     } \>     else \>     { \>         // Lots of code to that creates non-camera C4D objects from GTO file \>     } \> \>     return FILEERROR_NONE; \> } \>

      If a user opens the camera, then merges in the geometry (two separate files, so the Load method is invoked two separate times), the timeline is properly set.

      However, if the user first opens the geometry, then merges the camera, the timeline is not properly set.

      Can anyone tell me why?

      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 11/02/2009 at 01:23, xxxxxxxx wrote:

        You have to set the PLUGINFLAG_SCENELOADER_MERGEORIGINAL flag in RegisterSceneLoaderPlugin() to modify an existing document upon merging, otherwise an empty document is passed to SceneLoaderData::Load().

        cheers,
        Matthias

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