ASP 10 how to import tool scripts corectly?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Lusy
Posts: 27
Joined: Wed Jun 01, 2016 9:10 am

ASP 10 how to import tool scripts corectly?

Post by Lusy »

Greating everyone. I have imported tools in ASP 10 (C:\Program Files\Smith Micro\Anime Studio Pro 10\Resources\Support\scripts\tool). They are lm_translate_layer.lua, lm_scale_layer.lua, lm_rotate_layer.lua, lm_translate_bone.lua, lm_rotate_bone.lua and lm_scale_bone.lua, and I edited them in tool_list, like that
group MOHO.Localize("/Tools/Group/Bone=Bone")
tool lm_select_bone ...
tool lm_translate_bone ...
tool lm_rotate_bone ...
tool lm_scale_bone ...

tool lm_add_bone ...
tool lm_transform_bone ...
tool lm_manipulate_bones ...

tool lm_reparent_bone ...
tool lm_bone_strength ...
tool lm_bind_layer ...
tool lm_bind_points ...

tool lm_offset_bone ...
tool lm_bone_physics ...

group MOHO.Localize("/Tools/Group/Layer=Layer")
tool lm_translate_layer ...
tool lm_scale_layer ...
tool lm_rotate_layer ...


tool lm_set_origin ...
tool lm_transform_layer ...
tool lm_follow_curve ...
tool lm_rotate_layer_xy ...
tool lm_shear_layer ...
tool lm_shape_picker ...
button lm_insert_text ...
tool lm_eyedropper ...

but in program they are in block others.
Image
how to move them into their place? Move to Bones tools and Layers tools
And also they work not corectly. if I choose any imported tool on single layer it is not activated at once. I have to click on it a thousand times, but if I work on the group layers (like bones, group layers) it is work corectly. WHy is this happening?
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: ASP 10 how to import tool scripts corectly?

Post by synthsin75 »

First, do not duplicate posts.

Second, you need to create a custom content folder, add your tools there, and change that tool_list.
Lusy
Posts: 27
Joined: Wed Jun 01, 2016 9:10 am

Re: ASP 10 how to import tool scripts corectly?

Post by Lusy »

synthsin75 wrote:First, do not duplicate posts.

Second, you need to create a custom content folder, add your tools there, and change that tool_list.
I'm sorry I didn't know where it was necessary to post this post.

What should be the name of that folder? "custom content"?
And what should I write in tool_list?
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: ASP 10 how to import tool scripts corectly?

Post by synthsin75 »

Use the menu command Help>Create Custom Content Folder... (wording may be slightly different in v10).
Lusy
Posts: 27
Joined: Wed Jun 01, 2016 9:10 am

Re: ASP 10 how to import tool scripts corectly?

Post by Lusy »

synthsin75 wrote:Use the menu command Help>Create Custom Content Folder... (wording may be slightly different in v10).
ITS WORK!!! Yahooo!! I'm a month puzzled over this problem. Thanx man!
Post Reply