Re: Fwd: API documentation for beginners



Hi Bao,

On 6/20/13 7:51 AM, Bao Niu wrote:
layers[0] vs. active_layer

automatically refer to the same object that referred to by active_layer? Or
it refers to something that only resides in memory and not being rendered
yet? That why I asked if the two are the same.
In this special case they're the same.
Depending on what you want to do with your code, the assumption that there's only one layer might be a bit shaky, so active_layer might be a better choice for robust code. But of course, you may have a worked out a complete different set of logic worked out to deal with your layers.

Regards,

Steffen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]