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

    Retrieving filename before import dialog [SOLVED]

    SDK Help
    0
    3
    364
    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
      Helper
      last edited by

      On 02/04/2015 at 02:25, xxxxxxxx wrote:

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

      ---------
      Hi,

      in my SceneLoader plugin I want to build the dialog depending on the input file. So I am looking for a way to get the filename before the dialog is shown. MSG_DESCRIPTION_IMPEXPORT_INIT would be perfect for my case, if it would just contain the filename of the selected file..
      Is there any possibility to achieve this?

      Best,
      Burak

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

        On 02/04/2015 at 06:46, xxxxxxxx wrote:

        Hello,

        you already do receive the filename in your SceneLoaderData plugin. It is given to you when Cinema calls the Identify() method of your plugin. So you could simply store the filename in a member variable and use it later when you need it.

        Best wishes,
        Sebastian

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

          On 02/04/2015 at 07:10, xxxxxxxx wrote:

          Ahh I thought about this, but I assumed that Identify() gets called for all visible items in the browse dialog to filter them.
          Thanks for your fast response!

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