Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: ASL layer functions  (Read 1306 times)

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1532
    • View Profile
ASL layer functions
« on: March 05, 2014, 11:04:05 pm »

There is a new int member layer in shapes that you can read and set.  It is silently clamped to between 0 and 7 if you assign a value out of range:

    int shape.layer;

Objects have new functions for accessing and setting layer properties:

    int object.IsLayerVisible(int layerNo);
    int object.IsLayerLocked(int layerNo);
    int object.ShowLayer(int layerNo, int ShowValue);
    int object.LockLayer(int layerNo, int Lockvalue);

LockLayer and ShowLayer lock and make visible the given layer when the second parameter is non-zero, respectively. They return the old value.
Logged