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

    Init method not run in 10.5

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 469 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 26/12/2008 at 06:41, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello,

      Is there a difference between the 9.1 and the 10.5 COFFEE kit? My plugins run correct in 9.1 but not in 10.5.

      It seams that the Init routine doesn't get called in 10.5.

      > <code>fastCheck_gui::Init() {
      >      texture = 1;                                                  // default: B&W; texture
      >      scale = 100;                                                  // default: size of the texture
      >      material_name = "FastCheckMaterial";                    // default: name of the material
      >      SetInt(IDC_SLIDER, scale, 0, 100, 1);                    // initialize the slider
      >      println("INIT");
      >      arr = new(array, 17);
      >      arr[0] = 5159;      arr[1] = 5160;      arr[2] = 5162;      arr[3] = 5170;      arr[4] = 5174;      arr[5] = 5168;      arr[6] = 5164;
      >      arr[7] = 5167;      arr[8] = 5171;      arr[9] = 5172;      arr[10] = 5161; arr[11] = 5163; arr[12] = 5165; arr[13] = 5169;
      >      arr[14] = 5166; arr[15] = 5173; arr[16] = 5100;
      >      println(arr[2]);
      > }</code>

      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 27/12/2008 at 08:08, xxxxxxxx wrote:

        My bad! I docked the plugin to the interface and this doesn't trigger the Init() method. Starting from the plugin menu does! How can I run the Init() if the window is docked to the interface?

        The plugin is an instance of GeDialog.

        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 27/12/2008 at 10:53, xxxxxxxx wrote:

          You'll have to call the function yourself. I'm not sure if there is a message sent on docking, but maybe a BFM_LAYOUT_CHANGED or similar sent to Message(). You'll have to see what messages (if any) are sent upon docking and undocking.

          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/12/2008 at 06:08, xxxxxxxx wrote:

            The plugin is already docked to the interface when Cinema is started. And this doesn't trigger the Init() routine.

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