CA SDM::.SPEL::. delete_animator()

Document created by TMACUL Champion on Mar 3, 2017Last modified by Daniel Becker Bighelini on Sep 23, 2017
Version 2Show Document
  • View in full screen mode

Overview

Delete (deactivate) the specified animator, uniquely identified by persid, method and name.  A "*" can be passed for one or more parameters to delete a set of animators.  For example, all animators against an object about to be deleted, or all SLA animators against an object.

Usage

send_wait (0, (object) "@|animator_nxd|Animator", "delete_animator", string persid, string method, string name);

Results

Event animator deleted.

Examples

    int i;
    object animator_addr;
    animator_addr = (object) "@|animator_nxd|Animator";
    
    send_wait(0, animator_addr, "delete_animator", "cnote:400051", "*", "*");
    if (msg_error()) {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        return;
        // Returns
        // msg[0]: 'AHD03007:Nenhuma correspondência de animadores para exclusão.'
        // msg[1]: 'cnote:400051'
        // msg[2]: '*'
        // msg[3]: '*'
    } else {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        // Returns
        // msg[0]: 'cnote:400051'
        // msg[1]: '*'
        // msg[2]: '*'
    }
    
    send_wait(0, animator_addr, "delete_animator", "cnote:400051", "deactivate_cnote", "fire_cnote_animator");
    if (msg_error()) {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        return;
        // Returns
        // msg[0]: 'AHD03007:Nenhuma correspondência de animadores para exclusão.'
        // msg[1]: 'cnote:400051'
        // msg[2]: 'deactivate_cnote'
        // msg[3]: 'fire_cnote_animator'
    } else {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        // Returns
        // msg[0]: 'cnote:400051'
        // msg[1]: 'deactivate_cnote'
        // msg[2]: 'fire_cnote_animator'
    }
}

Where can I find Spel functions documentation? 

1 person found this helpful

Attachments

    Outcomes