Anim8or Community
General Category => Ongoing Anim8or Development => Topic started by: Steve 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.