Can I avoid custom animation code if no probe is set?
Can I avoid custom animation code if no probe is set?
Yes. If you call the Kernel Procedure op_anim_lprobe_anvid () at the beginning of your simulation it will return the constant OPC_ANIM_ANVID_NONE if there is not a custom animation probe set with the specified label. You can then an if-statement in front of your custom animation code which only executes the code if (anvid != OPC_ANIM_ANVID_NONE). For more information on op_anim_lprobe_anvid () see the Simulation Kernel/Anim-Pk Manual.
Animation->2D,DES Kernel->Process Modeling/Coding