Page 1 of 1

Bone Layer

Posted: Tue Dec 15, 2009 3:14 am
by Greck
Hello.

How can I get access to sub-layers of bone layer.

Posted: Tue Dec 15, 2009 4:29 am
by Víctor Paredes
Hello, have you read the tutorial?
ok, do you see the little triangle at side of the bone layer? click it.

Posted: Tue Dec 15, 2009 5:25 am
by Greck
Anime Studio Forum Forum Index -> Scripting

I talk about scripting. How can I get access using lua ?

"Class: GroupLayer" has "MohoLayer Layer(id)" method, but there is no BoneLayer class with same method, and Class: MohoLayer have no method...

Posted: Tue Dec 15, 2009 5:34 am
by Víctor Paredes
Greck wrote:Anime Studio Forum Forum Index -> Scripting

I talk about scripting. How can I get access using lua ?
:oops: Sorry, I didn't saw the section, I just click on View posts since last visite and open everything on tabs.
Please excuse me, I thought you were one of that newbies which never read the tutorials.

Sorry I can't help about scripting. Anyway, welcome to the forum.

Re: Bone Layer

Posted: Tue Dec 15, 2009 7:19 am
by Genete
Greck wrote:Hello.

How can I get access to sub-layers of bone layer.
You have to convert the Bone Layer to a Group Layer reference:

Code: Select all

GroupLayer LayerAsGroup(layer)

Converts a generic layer object into a group layer.
Return value (GroupLayer): a GroupLayer object layer (MohoLayer): the layer to cast 
After that you can use the members of the Group Layer:
int CountLayers()

Returns the number of sub-layers in the group.
Return value (int): the number of sub-layers in the group
MohoLayer Layer(id)

Returns a layer in the group (starting at 0 for the first layer).
Return value (MohoLayer): a layer in the group id (int): index number of the layer
and so on...
-G

Posted: Wed Dec 16, 2009 5:26 am
by Greck
Thank you very much.
But where can I read this descriptions ?

Posted: Wed Dec 16, 2009 5:33 am
by Genete
Greck wrote:Thank you very much.
But where can I read this descriptions ?
Here for 6.1
and
Herefor 5.6

-G