Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: ASL layer functions  (Read 11333 times)

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
ASL layer functions
« on: March 05, 2014, 06: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