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

    Get suffix of SceneSaver plugin

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 256 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

      On 23/07/2015 at 08:17, xxxxxxxx wrote:

      Is there any way to get the suffix of a SceneSaver plugin?

      I know it's supplied in RegisterSceneSaver but I don't see any method to query it. It seems that SaveDocument automatically force-appends the suffix for FBX, but not for any other format.

      In my plugin I'm using FilterPluginList to get all available SceneSavers and offering those as options to the user, then using SaveDocument to save in the appropriate format.

      It appears that the suffix is placed in the Name of the plugin within parentheses - is string-parsing the name a reliable option to get the suffix?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 24/07/2015 at 02:21, xxxxxxxx wrote:

        Hello,

        it seems there is no direct way to access the suffix. The name returned from GetName() is the name of the plugin set with RegisterSceneSaverPlugin(). So for the exporters shipped with Cinema 4D the name contains the suffix but this may not be the case for third party exporters.

        best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 31/07/2015 at 10:31, xxxxxxxx wrote:

          Hello Rick,

          was your question answered?

          Best wishes,
          Sebastian

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