Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Writing variable on startup of plugin

    SDK Help
    0
    2
    185
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/04/2008 at 09:09, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :

      ---------
         Hi!

      I have a curios problem. I create a variable in the main.cpp direct under the includes.

      #include.....
      int c = 0;

      Following idea:

      If c4d is called via the CommandLineArgs it has to set c = 1 in the switch-case C4DPL_COMMANDLINEARGS.

      But in C4DPL_PROGRAM_STARTED it is still c = 0?

      Why? I call it via the terminal, but I don't know why it set back 😞
      Could someone help me?

      Thanks 🙂

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 26/04/2008 at 17:48, xxxxxxxx wrote:

        Hi, sorry, problem solved. I thought C4DPL_COMMANDLINEARGS is called before C4DPL_PROGRAM_STARTED. 🙂

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