How many of you use scripts with Anime Studio Pro?

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Do you use scripts from the scripting forum...

Yes, all the time! I love those scripts!
9
47%
I've used a few scripts
5
26%
No, never. I don't read the scripting forum area
5
26%
 
Total votes: 19
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Here is a simple tutorial for installing a new tool script.

Tool Script File Names: In most cases the tool files should be named with the initials of the creator and an underscore preceding the name of the script to differentiate them from the originally installed tools which are named with lm_ (Lost Marble).

So for instance all of Fazek's tools start with... fa_

in some cases though it can be simpler to just name the file the same as the default and replace it. You should however back up the original tool in case you need it.

For instance the select shape tool created by 7feet listed in the post above does not change the name of the tool. It has the same name as the original. I would recommend moving the original out of the tool folder so you have a backup before dropping the new one.

Utility scripts
Along with Fazek's tools is a utility script. The way tools work in AS is that they will make "calls" to the same "functions" over and over. For instance making a bone menu, or a bone choice menu or any number of things. These often used functions are kept inside a utility script. Any script in the utility script folder is automatically "loaded" by AS and those functions are available for use by any script.

Fazek has placed functions specific to his tools in his own utility script. This makes the tools easier to change and update. there is less repetitious code
When you unzip his tools you will also get a utility script that needs to be placed in:

Anime Studio Pro/scripts/utility/

---------

There should be 3 files associated with each tool.
Using Fazek's translate point tool as an example:

fa_translate_points.lua -- this is the actual tool itself
fa_translate_points_cursor.png -- this is the image used as the cursor
fa_translate_points.png -- this is the image that will appear in the tool palette.

You put all 3 tool files in the scripts/tools folder of your AS installation:

Anime Studio Pro/scripts/tool/

The next bit is required if you want to use a custom tool as the DEFAULT tool. It is a piece of cake. You open the file in the "scripts/tool" folder called:

_tool_list.txt

It will list the name of the tool and the keyboard shortcut.

Below is a small portion of that file from my own setup. As you can see I have changed many of the default tools to new custom tools. Some of the originals are still in use.

You can see that there are "spacers" and "groups" to break up the tool palette. By comparing this text file to your tool palette display in AS you can see how the tools are organized.

Once I added Fazek's new tools to my tool folder I made a back up of my _tool_list.txt file and edited the original by changing the names in the list so they become the defaults. I saved this file and the next time I open AS my tools will be updated.

Code: Select all

group Draw
color	204 220 232 255

tool	fa_translate_points	T
tool	fa_select_points	G
tool	fa_freehand		F
tool	fa_bind_points		...

tool	lm_scale_points		S
tool	lm_rotate_points	R

tool	lm_add_point		A
tool	lm_delete_edge		D
tool	lm_curvature		C
tool	lm_magnet		X

tool	lm_rectangle		E
tool	lm_oval			L
tool	lm_arrow		...

tool	lm_shear_points_x	...
tool	lm_shear_points_y	...
tool	hv_perspective_points	...

tool	lm_bend_points_h	...
tool	lm_bend_points_v	...
tool	lm_noise		N
spacer

button	lm_smooth		M
button	lm_peak			P
button	lm_flip_points_h	...
button	lm_flip_points_v	...
button	FA_reverse_points	...

group Fill
color	232 220 204 255
tool	fa_select_shape		Q
tool	fa_create_shape		U
tool	lm_line_width		W
tool	lm_delete_shape		...
tool	lm_hide_edge		H

button	lm_lower_shape		...
button	lm_raise_shape		...

group Bone
color	204 220 232 255
tool	hv_select_bone		B --- my bone selection tool - w/scrolling list.
tool	lm_translate_bone	Y --- changed the shortcut
tool	lm_scale_bone		S
tool	lm_rotate_bone		R
tool	lm_add_bone		A
tool	lm_reparent_bone	P
tool	lm_bone_strength	...
tool	lm_manipulate_bones	Z
tool	lm_bind_layer		...
tool	lm_bind_points		I
tool	lm_offset_bone		...

If you don't move the "old" tools out of the tool folder they will still be available at the bottom of the tool palette in a group called "Other". Any tool added to the tool palette that is not added to the list will appear in the "Other" group.

You can also create your own groups. You can reorganize the entire tool palette if you wish. You can change or add all the keyboard shortcuts for the tools as well.

For instance there is a slight conflict with the point translation and bone translation tools with Fazek's tools. The point select also works with bones so when pressing "T" to select a bone on a bone layer you get the point translation tool which works differently. You may prefer the original bone translation tool.

I just changed the keyboard shortcut for the bone translation tool to "Y". Now I have a choice when translating bones.

Editing the tool list text file is entirely optional. You could drop new tools into the tool folder and use them from the "Other" group. Of course using the tool keyboard shortcuts will not work for the new tools if you do this.

-vern
User avatar
Víctor Paredes
Site Admin
Posts: 5814
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

funksmaname wrote: Select Shape tool - See where in the order the dang shape is

I could not live without it... it shows you the exact stack order of a selected shape, as well as letting you select an obscured shape via some key commands!
thanks funksmaname! great tool unfortunately lost in the time...

____________

you are very kind vern. i hope your tutorial open some eyes.

i use scripts all the time. there are fantastic scripts which without them all would be a problem for me. As fazek's, 7feet's, crashcore's, ramónlópez's, etc.

and now that genete and vern have became script writers, we just can wait for the best (mainly considering their last innovations)


i think that if you know there are a lot of scripts and you simply don't use some of them because you don't want to -i don't know- maybe because you don't want to "soil" the original AS... well, you are crazy.
User avatar
DK
Posts: 2895
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

I was just thinking that if a mirror magnet tool was able to be done within a day of talking to Fazek, why not a point creation mirror tool.
There is a mirror tool in Lightwave 3D and I use it ALL the time. The only thing that you have to keep in mind when modelling is to keep all your cental points precisely on the "Y" axis then when the mirror tool is used it auto welds all central points when it creates the other half. Such a tool would be brilliant in AS for making models. I do use copy paste but when you have a complicated mesh it does get time consuming binding by hand.

D.K
DarthFurby
Posts: 510
Joined: Sat Jul 29, 2006 1:34 pm
Location: New York City
Contact:

Post by DarthFurby »

I don't use scripts all that often, but they've come in handy every single time I've needed them.
Post Reply