Writing variable on startup of plugin



  • 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 :)



  • 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. :)


Log in to reply