TagPlugin kill itself?



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

    On 24/05/2004 at 21:09, xxxxxxxx wrote:

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

    ---------
    Hi.
    It is possible, that a tag (plugin) kill itself?
    What i try: a tag plugin must be removed, if the parent object leave his hierarchy level or has changed his parent?



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

    On 25/05/2004 at 17:47, xxxxxxxx wrote:

    I wouldn't recommend doing that. For example, imagine if C4D was doing:

        
        
        while (tag)  
        {  
          tag->Execute(...);  
          tag = tag->GetNext();  
        }
    

    If your tag removed itself during Execute(), all sorts of bad stuff could happen. The best way is to simply let your tag do nothing if the hierarchy has changed, or set a flag and let a scene hook remove it.


Log in to reply