Set Programm Preferences via coffee?



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

    On 03/02/2010 at 02:33, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:    
    Platform:      
    Language(s) :

    ---------
    Hello everybody,
    iam really new to programming...I am developeing my first coffee-Plugin. I whould like to know if it is possible to change Program-Preferences with coffee? Does anybody know if that chould work?



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

    On 03/02/2010 at 04:36, xxxxxxxx wrote:

    Yes you can, please have a look at GetWorldContainer() in the COFFEE docs. :)

    This small example sets the Recent file list to zero:

    var bc=GetWorldContainer();
    var filecnt=bc->GetData(WPREF_MAX_LAST);
    bc->SetData(WPREF_MAX_LAST,0);
    SetWorldContainer(bc);
    bc->SetData(WPREF_MAX_LAST,filecnt);
    SetWorldContainer(bc);
    gc();



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

    On 03/02/2010 at 10:07, xxxxxxxx wrote:

    Cool..thanks a lot. Than I will spent the next Days and nights makaing something really cool.😄


Log in to reply