Anime Studio Forum Forum Index Anime Studio Forum

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Here's some handy scripts
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    Anime Studio Forum Forum Index -> Scripting
View previous topic :: View next topic  
Author Message
macton



Joined: 18 Aug 2005
Posts: 93
Location: San Diego

PostPosted: Fri Oct 07, 2005 4:23 am    Post subject: Here's some handy scripts Reply with quote

It appears that the crashcore.com web site is not available any longer and all of these scripts have "vanished". I have posted the entire zip of all the scripts on my web site.

This is ALL of the scripts listed below. I have not posted the individual script files.
http://www.lowrestv.com/moho_stuff/scripts/macton-crashcore_scripts/cc_moho_scripts.zip

-vern




Menu Scripts


How To Install The Following Scripts


In Windows:
1. Open the C:\Program Files\Moho folder (or your installation directory)
In OSX:
1. Open the /Applications/Moho folder (or your installation directory)

2. Open the scripts/menu folder
3. Create a new folder "Crashcore" (or whatever you'd like)
4. Copy these files into that folder
5. Press CTRL-F5 in Moho (If you have it open)
6. You can now access the scripts from the Scripts->Crashcore sub-menu.

Download all (Updated 17 Jan 06)

Here's a zip file of all the scripts below.
http://crashcore.com/public/moho/scripts/cc_moho_scripts.zip

Current List of Scripts:

  • Center Vector Layer To Points ( v1.0 )
  • Shift Layer Keyframes ( v1.2 Updated 10 Oct 05 )
  • Save Layer Animation ( v1.4 Updated 09 Oct 05 )
  • Load Layer Animation ( v1.4.1 Updated 09 Oct 05 )
  • Cycle Last Layer Keyframe ( v1.2 Updated 10 Oct 05 )
  • Make Unique Layer Names ( v1.0 )
  • Reverse Layer Keyframes ( v1.2 Updated 10 Oct 05 )
  • Remove X and Y Rotation From Camera Facing Vector Layers ( v1.0 )
  • Turn Off Camera Facing Vector Layers ( v1.0 )
  • Turn On Camera Facing Vector Layers ( v1.0 )
  • Splat Layer Keyframe Interpolation Settings ( v1.1 Added 10 Oct 05 )
  • Save Camera Animation ( v1.1 Updated 09 Oct 05 )
  • Load Camera Animation ( v1.1 Updated 09 Oct 05 )
  • Save Template Moho File ( v1.1 Updated 09 Oct 05 )
  • Copy Generic Layer ( v1.1 Updated 22 Dec 05 )
  • Paste Generic Layer ( v1.0 Updated 22 Dec 05 )
  • Clear Camera Animation ( v1.0 Updated 22 Dec 05 )
  • List External Files ( v1.0 Updated 22 Dec 05 )
  • Copy Selected Curve ( v1.0 Updated 26 Dec 05 )
  • Paste Curve To Layer Translation ( v1.2 Updated 14 Jan 06 )
  • Paste Curve To Camera Track ( v1.0 Updated 26 Dec 05 )
  • Paste Curve To Camera Target ( v1.0 Updated 26 Dec 05 )
  • Paste Curve To Points Position ( v1.2 Updated 18 Jan 06 )
  • Relink Lost Images ( v1.2 Updated 17 Jan 06 )


Center Vector Layer To Points ( v1.0 )

This script sets the origin in the currently selected vector layer to the center of all its points. If the currently selected layer is a group layer, this applies to all vector layers beneath it.
http://www.crashcore.com/public/moho/scripts/cc_center_vector_layer_to_points.lua


Shift Layer Keyframes * ( v1.2 Updated 10 Oct 05 )

This script will shift any or all the generic layer keyframes in either the currently selected layer or for the complete document. A positive number shifts right, a negative number shifts left.
http://www.crashcore.com/public/moho/scripts/cc_shift_layer_keyframes.lua

CHANGES v1.2
* Added support for bone animation data
* Added support for switch animation data
* Added support for point animation data

CHANGES v1.1
* Added option to export only part of hierarchy or single layer
* Fix: Resized GUI to fit on smaller displays




Save Layer Animation * ( v1.4 Updated 09 Oct 05 )

This script saves all the layer keyframes for all the layers to a file.
http://www.crashcore.com/public/moho/scripts/cc_save_layer_animation.lua

CHANGES v1.4
* Added support for saving bone animation data
* Added support for saving switch animation data
* Added support for saving point animation data

CHANGES v1.3
* Fix: Was not iterating through BONE and SWITCH hierarchies

CHANGES v1.2
* Added option to export specific range of keyframes

CHANGES v1.1
* Added option to export only part of hierarchy or single layer
* Fix: Was not saving all generic layer channels in previous version




Load Layer Animation * ( v1.4.1 Updated 09 Oct 05 )

This script loads all the selected keyframes for the selected layers from a previously saved file.
http://www.crashcore.com/public/moho/scripts/cc_load_layer_animation.lua

NOTE[0]: Does not support loading from files saved with Save Layer Animation script before version 1.4
NOTE[1]: For layer animation data, the hierarchy of layers must match the file that was saved.
NOTE[2]: For bone animation data, the hierarchy of bones must match the file that was saved.
NOTE[3]: For point animation data, the points in the vector layers must match the file that was saved.

CHANGES v1.4.1
* Bone IKParentTarget was missing from UI

CHANGES v1.4
* Added support for loading bone animation data
* Added support for loading switch animation data
* Added support for loading point animation data
* Changed version number to match Save Layer Animation script

CHANGES v1.2
* Fix: Was not iterating through BONE and SWITCH hierarchies

CHANGES v1.1
* Added options to import only selected channels
* Added option to overlay animation
* Added option to import only part of hierarchy or single layer
* Fix: Was not loading all generic layer channels in previous version
* Fix: Resized GUI to fit on smaller displays




Cycle Last Layer Keyframe ( v1.2 Updated 10 Oct 05 )

This script will set the interpolation mode to cycle on any or all the generic layers last keyframes in either the currently selected layer or for the complete document.
http://crashcore.com/public/moho/scripts/cc_cycle_last_layer_keyframe.lua

CHANGES v1.2
* Added support for bone animation data
* Added support for switch animation data
* Added support for point animation data

CHANGES v1.1
* Added option to export only part of hierarchy or single layer
* Fix: Resized GUI to fit on smaller displays



Make Unique Layer Names ( v1.0 )

This script will convert all spaces in vector names to underscores and ensure that no two layers have the same name.
http://crashcore.com/public/moho/scripts/cc_make_unique_layer_names.lua


Reverse Layer Keyframes * ( v1.2 Updated 10 Oct 05 )

This script will reverse any or all the generic layer keyframes in either the currently selected layer or for the complete document. You can also set an offset for how many frames from the last source keyframe you want to start the reverse copy.
http://crashcore.com/public/moho/scripts/cc_reverse_layer_keyframes.lua

For an example see this thread:
http://www.lostmarble.com/forum/viewtopic.php?t=2852&highlight=reverse&sid=c9984049cb3d51f645a7994b2354d889

See also (for reference):
http://www.lostmarble.com/forum/viewtopic.php?t=2254&start=0&postdays=0&postorder=asc&highlight=reverse
http://www.lostmarble.com/forum/viewtopic.php?t=2259&highlight=reverse&sid=c9984049cb3d51f645a7994b2354d889

CHANGES v1.2
* Added support for bone animation data
* Added support for switch animation data
* Added support for point animation data

CHANGES v1.1
* Added option to import only part of hierarchy or single layer
* Fix: First and last frame now default to project settings
* Fix: Resized GUI to fit on smaller displays




Remove X and Y Rotation From Camera Facing Vector Layers ( v1.0 )

This script removes X and Y rotation from the currently selected vector layer only if "Rotate to face camera" is checked. If the currently selected layer is a group layer, this applies to all vector layers beneath it.
http://crashcore.com/public/moho/scripts/cc_camera_facing_vector_layer_strip_xy_rotation.lua


Turn Off Camera Facing Vector Layers ( v1.0 )

This script unchecks "Rotate to face camera" from the currently selected vector layer. If the currently selected layer is a group layer, this applies to all vector layers beneath it.
http://crashcore.com/public/moho/scripts/cc_set_camera_facing_selected_layers_off.lua

For an example see this thread:
http://www.lostmarble.com/forum/viewtopic.php?t=2906

Turn On Camera Facing Vector Layers ( v1.0 )

This script checks "Rotate to face camera" from the currently selected vector layer. If the currently selected layer is a group layer, this applies to all vector layers beneath it.
http://crashcore.com/public/moho/scripts/cc_set_camera_facing_selected_vector_layers_on.lua

For an example see this thread:
http://www.lostmarble.com/forum/viewtopic.php?t=2906

Splat Layer Keyframe Interpolation Settings ( v1.1 Added 10 Oct 05 )

This script will force the selected interpolation mode (and parameters, in the case of the noisy mode) to the selected layers and channels.
http://crashcore.com/public/moho/scripts/cc_splat_layer_keyframe_interpolation_settings.lua

For an example see these threads:
http://www.lostmarble.com/forum/viewtopic.php?t=2852&highlight=reverse&sid=c9984049cb3d51f645a7994b2354d889
http://www.lostmarble.com/forum/viewtopic.php?t=3026

CHANGES v1.1
* Added support for bone animation data
* Added support for switch animation data
* Added support for point animation data



Save Camera Animation * ( v1.1 Updated 09 Oct 05 )

This script saves all the keyframes for the camera to a file.
http://www.crashcore.com/public/moho/scripts/cc_save_camera_animation.lua

CHANGES v1.1
* Added support for Roll channel




Load Camera Animation * ( v1.1 Updated 09 Oct 05 )

This script loads all the keyframes for the camera from a previously saved file.
http://www.crashcore.com/public/moho/scripts/cc_load_camera_animation.lua

NOTE[0]: Does not support loading from files saved with Save Camera Animation script before version 1.1

CHANGES v1.1
* Added support for Roll channel




Save Template Moho File * ( v1.1 Updated 09 Oct 05 )

This script saves a template .moho file based on the currently opened file. It saves the layer types and hierarchy and has options for saving some extra data. No shapes or skeletons are exported. This is useful if you create a lot of files that are similar and you always want to start with the same basic setup.
NOTE: You can load the file saved by this script from the normal File->Open menu.
http://crashcore.com/public/moho/scripts/cc_save_moho_template.lua

CHANGES v1.1
* Fix: Was not saving all layer animation channels, if "Include Layer Animation" was selected.




Copy Generic Layer * ( v1.1 Updated 22 Dec 05 )

This script copies all the generic layer keyframes for all the the selected layer.
http://www.crashcore.com/public/moho/scripts/cc_copy_generic_layer.lua

CHANGES v1.1
* Change: Now storing copied data to ".cc_copy_generic_layer.tmp" in the current directory instead of using os.tmpname()




Paste Generic Layer * ( v1.0 Updated 22 Dec 05 )

This script pastes the selected generic layer keyframes from a previously copied layer to the selected layer.
http://www.crashcore.com/public/moho/scripts/cc_paste_generic_layer.lua



Clear Camera Animation * ( v1.0 Updated 22 Dec 05 )

This script clears the selected keyframes from the camera's animation.
http://www.crashcore.com/public/moho/scripts/cc_clear_camera_animation.lua




List External Files * ( v1.0 Updated 22 Dec 05 )

This script lists all the external images and 3D models referenced in the current document.
http://www.crashcore.com/public/moho/scripts/cc_list_external_files.lua


Copy Selected Curve ( v1.0 Updated 26 Dec 05 )

This script copies the currently selected curve into a buffer for later pasting.
http://crashcore.com/public/moho/scripts/cc_copy_selected_curve.lua


Paste Curve To Layer Translation ( v1.2 Updated 14 Jan 06 )

This script uses a curve copied from the "Copy Selected Curve" script to translate the currently selected layer to match the position of the curve.
http://crashcore.com/public/moho/scripts/cc_paste_curve_to_layer_translation.lua

For a detailed example, see the discussion here: http://www.lostmarble.com/forum/viewtopic.php?t=3026

CHANGES v1.1
* Added support for rotate to path (2D)

CHANGES v1.2
* Added option to copy on normalized or not normalized curve
* Now uses "first frame + step count" instead of "first frame -> last frame"




Paste Curve To Camera Track ( v1.0 Updated 26 Dec 05 )

This script uses a curve copied from the "Copy Selected Curve" script to translate the camera to match the position of the curve. An fixed offset can be applied.
http://crashcore.com/public/moho/scripts/cc_paste_curve_to_camera_track.lua




Paste Curve To Camera Target ( v1.0 Updated 26 Dec 05 )

This script uses a curve copied from the "Copy Selected Curve" script to adjust the Pan/Tilt of the camera to face the position of the curve. An fixed offset can be applied.
http://crashcore.com/public/moho/scripts/cc_paste_curve_to_camera_target.lua




Paste Curve To Points Position ( v1.2 Updated 18 Jan 06 )

This script uses a curve copied from the "Copy Selected Curve" script to translate the currently selected points to match the position of the curve.
http://crashcore.com/public/moho/scripts/cc_paste_curve_to_points_position.lua

For a detailed example, see the discussion here: http://www.lostmarble.com/forum/viewtopic.php?t=3026

CHANGES v1.1
* Added option to copy on normalized or not normalized curve
* Now uses "first frame + step count" instead of "first frame -> last frame"

CHANGES v1.2
* Added option for "Soft Rotate Along Curve"



NOTES:
* Position offset: offsets the whole shape a certain distance from the curve
* Pivot offset: Used in "Rotate to Face Curve" to offset the pivot point of rotation from the center of the points


Relink Lost Images ( v1.2 Updated 17 Jan 06 )

This script walks all the image layers and if any image links are broken, it will recursively search in the selected directory for a matching file.
http://crashcore.com/public/moho/scripts/cc_relink_lost_images.lua

CHANGES v1.2
* Integrated Rasheed's changes for unix
* Removed recursion (handle all subdirs in one large list - for speed)
* See discussion here: http://www.lostmarble.com/forum/viewtopic.php?t=3034

-- edit ----------
Vern: Because of the importance of this list, especially for newbies who will miss is on page next whatever, I have made this a sticky.

Rhoel
2009-02-15
-----------------


Last edited by macton on Wed Jan 18, 2006 9:04 am; edited 42 times in total
Back to top
View user's profile Send private message
macton



Joined: 18 Aug 2005
Posts: 93
Location: San Diego

PostPosted: Fri Oct 07, 2005 6:44 am    Post subject: Descriptions Reply with quote


Tool Scripts (Extras)


Modification of 7feet's sf_curvature Tool (v5.2)

This tool has been modified to allow you to change the curvature for an individual curve if the single selected point is shared by more than one curve.
See the original here:
http://www.lostmarble.com/forum/viewtopic.php?t=556&start=0&postdays=0&postorder=asc&highlight=sfcurvature

The files:
http://crashcore.com/public/moho/extras/sf_curvature.lua
http://crashcore.com/public/moho/extras/sf_curvature.png
http://crashcore.com/public/moho/extras/sf_curvature_cursor.png

Zip of all files:
http://crashcore.com/public/moho/extras/SF_Curvature.zip

To Install:
Place the files in the Moho scripts/menu directory

New Usage: To change the curvature of a single point per curve
1. Select the sf_curvature tool.
2. Select a single point
3. Press the UP or DOWN key to select the next or previous curve*

* e.g.
If the first curve is selected and there are three curves you will see "1 / 3" displayed.
If all curves are selected you will see "(ALL CURVES)" dispalyed.

Modification of LM's rotate layer tool (v5.1)

This tool has been modified to allow you to rotate all the points on a layer about a selected pivot point.
If no pivot is selected, or more than one point is selected, the layer rotates about the origin (i.e. usual behavior)

See also 7feet's rotate points about center script and discussion here:
http://www.lostmarble.com/forum/viewtopic.php?t=343&start=0&postdays=0&postorder=asc&highlight=

The files:
http://crashcore.com/public/moho/extras/cc_rotate_layer_points_pivot.lua
http://crashcore.com/public/moho/extras/cc_rotate_layer_points_pivot.png
http://crashcore.com/public/moho/extras/cc_rotate_layer_points_pivot_cursor.png

Zip of all files:
http://crashcore.com/public/moho/extras/cc_rotate_layer_points_pivot.zip

To Install:
Place the files in the Moho scripts/menu directory

New Usage: To rotate the points on a layer about a selected pivot point
1. Add or select a single point on the layer wherever you want the pivot point to be
2. Select the cc_rotate_layer_points_pivot tool
3. Click and move the mouse as usual to rotate all the points on the layer
4. If you created a new point to pivot about, you can delete it.

Reset Layer Visibility tool (v1.0)

This tool is just a quicker method of reseting the visibility for a layer on a certain frame.

See this page:
http://www.lostmarble.com/forum/viewtopic.php?t=2613&start=0&postdays=0&postorder=asc&highlight=

The files:
http://crashcore.com/public/moho/extras/cc_reset_layer_visibility.lua
http://crashcore.com/public/moho/extras/cc_reset_layer_visibility.png

Zip of all files:
http://crashcore.com/public/moho/extras/cc_reset_layer_visibility.zip

To Install:
Place the files in the Moho scripts/menu directory

Usage:
1. Select the layer you want to change in the hierarchy
2. In the main view:

  • Click on the window and it will turn visibility ON at the current frame.
  • Alt-Click on the window and it will turn visibility ON at frame zero.
  • Ctrl-Click on the window and it will turn visibility OFF at the current frame.
  • Ctrl-Alt-Click on the window and it will turn visibility OFF at frame zero.


* Visibility keyframes that are no longer needed after the new key will be automatically deleted.
* NOTE: On the Mac, use the Command key instead of Ctrl

Modification of 7feet's MegaMagnet Tool (v1.1)

This tool attracts points around the mouse pointer.

See this page:
http://www.lostmarble.com/forum/viewtopic.php?t=723&highlight=megamagnet

The files:
http://crashcore.com/public/moho/extras/cc_sf_MegaMagnet.lua
http://crashcore.com/public/moho/extras/cc_sf_MegaMagnet.png
http://crashcore.com/public/moho/extras/cc_sf_MegaMagnet_cursor.png

Zip of all files:
http://crashcore.com/public/moho/extras/cc_sf_MegaMagnet.zip

To Install:
Place the files in the Moho scripts/menu directory

Usage:
Similar to regular magnet tool, except:
* "Only Selected" ON will only attract selected points
* "Only Selected" OFF will select points within the radius with the mouse is clicked.
* "By Center" will attract the points uniformly from their center. The "By Center" feature is so you can attract shapes as a whole without distortion.
* "Strength" is the amount the magnet attracts. This has been simplified from 7feet's version (You don't need to deal with Strength and Influence seperately)
* Negative values for "Strength" repel points.

Modification of LM's scale points tool (v5.1)

This tool has been modified to allow you to scale outward from a particular bounding edge of the selected range of points.

See also this discussion:
http://www.lostmarble.com/forum/viewtopic.php?t=2098

The files:
http://crashcore.com/public/moho/extras/lm_scale_points.lua


To Install:
Place the files in the Moho scripts/menu directory

New Usage:
Hold <ctrl> (or <command>) as you select a handle to scale from and move the mouse to scale. The handle will stay fixed and the selected points will scale outward (or inward) from that handle.


Last edited by macton on Sat Jan 07, 2006 7:29 am; edited 30 times in total
Back to top
View user's profile Send private message
macton



Joined: 18 Aug 2005
Posts: 93
Location: San Diego

PostPosted: Fri Oct 07, 2005 6:55 am    Post subject: Notes Reply with quote


Notes / Instructions / Examples


* WARNING: Interpolation settings for changed keyframes may be lost
Because there is no lua access to get a keyframe's interpolation values, interpolation settings for changed keyframes will be lost (i.e. forced to linear) when you use any of the scripts that process animations. If a GetKeyIterp() function appears in the lua API, we should be able to fix this.

See this discussion:
http://www.lostmarble.com/forum/viewtopic.php?t=2852&highlight=reverse&sid=c9984049cb3d51f645a7994b2354d889


Instructions for Specific Tasks


You can use the save and load animation scripts to copy keyframes from one layer to another.

Example (You want to copy the LEFT animations to the RIGHT)

The LEFT and RIGHT hierarchies must be identical for this to work

1. Select your LEFT group
2. Start the save animation script
3. Select "apply starting with current layer"
4. Save to file
5. Select your RIGHT group
6. Start the load animation script
7. Select "Apply starting with current layer"
8. Select the channels that you want to load
9. Load the file

The LEFT and RIGHT groups should now have the same animation.
Adjust RIGHT to taste.

You can use the save and load animation scripts to delete large groups of keyframes.

Example (You want to delete all the keyframes after frame 50)

1. Start the save animation script
2. Select First Frame 0
3. Select Last Frame 50
4. Select "Apply to all layers"
5. Save to a file
6. Start the save camera script
7. Select First Frame 0
8. Select Last Frame 50
9. Save to a (different) file
10. Start the load animation script
11. Select "Apply to all layers"
12. Uncheck "Overlay Animation"
13. Load the file from Step 5
14. Start the load camera script
15. Uncheck "Overlay Animation"
16. Load the file from Step 9

Your layer and camera animations should now only include keyframes up to frame 50.

You can use the save, load and shift animation scripts to to merge two animations together.

Example (You have created two animations for the same character, ANIMATION-A, 50 frames long, and ANIMATION-B, 100 frames long, and you want to merge them into the same file)

Everything except the animation data must be identical between the two files for this to work.

1. Open the ANIMATION-B moho file
2. Start the shift layer keyframes script
3. Select "Apply to all layers"
4. Set "Number of frames to shift" to 50 (the time you want to start the animation in the final file)
5. Click OK
6. Start the save layer animation script
7. Select "Apply to all layers"
8. Set "Source first frame" to 50
9. Set "Source last frame" to 150 (now the end of the animation)
10. Click OK (Save the file)
11. Open the ANIMATION-A moho file
12. Start the load layer animation script
13. Make sure "Overlay animation" is checked
14. Select "Apply to all layers"
15. Click OK
16. Select the file from step 10

Your animations should now be merged.

You can use the copy and paste generic layer scripts to copy keyframes between different types of layers.

See also this thread:
http://www.lostmarble.com/forum/viewtopic.php?t=2288

Example (You want to copy the GROUP animations to the VECTOR)

1. Select your GROUP layer
2. Start the copy generic layer script
3. Select the keyframe range you wish to copy
4. Select your VECTOR layer
5. Start the paste generic layer script
6. Select whether or not you wish to overload existing keyframes
7. Select the channels that you want to paste
8. Paste the data

Adjust VECTOR to taste.

You can use the "Copy Selected Curve" and "Paste Curve To Camera Track" to move the camera along a curve.

Example (You want to copy the curve in the TRACK CURVE to the camera track)
For this example use the example file here:
http://crashcore.com/public/moho/examples/track_curve_example.moho

1. Select "Track Curve"
2. Select the curve
3. Start the "Copy Selected Curve Script"
4. Start the "Paste Curve To Camera Track"
5. Enter values for number of keys, start, end and offset (or use defaults)

The camera will now translate to match the cuve.
You can now delete the curve layer if you want need it anymore.

You can use the "Copy Selected Curve" and "Paste Curve To Camera Target" to have the camera animation (pan/tilt) face the curve.

Example (You want to the camera to face the points in the TARGET CURVE)
For this example use the example file here:
http://crashcore.com/public/moho/examples/target_curve_example.moho

1. Select "Target Curve"
2. Select the curve
3. Start the "Copy Selected Curve Script"
4. Start the "Paste Curve To Camera Target"
5. Enter values for number of keys, start, end and offset (or use defaults)

The camera will now face the points along the curve in the pan/tilt animation track.
You can now delete the curve layer if you want need it anymore.


You can use the "Copy Selected Curve" and "Paste Curve To Layer Translation" to rotate a layer along a curve.

Example
For this example use the example file here:
http://crashcore.com/public/moho/examples/path_curve_example.moho

1. Select "CURVE" layer
2. Select the curve
3. Start the "Copy Selected Curve Script"
4. Select "VECTOR" layer
5. Start the "Paste Curve To Vector Translation"
6. Enter values for number of keys, start and end (or use defaults)
7. Select "Rotate To Face Curve"
8. Enter the rotation offset* you want
* 0.0 if the vector layer is facing to the right
* 180.0 if the vector layer is facing to the left

The origin of the "VECTOR" layer will now translate to match the curve.
The "VECTOR" layer will now also rotate along the curve.
You can now delete the curve layer if you want need it anymore.

You can use the "Copy Selected Curve" and "Paste Curve To Points Position" to move a shape along a curve.

Example
For this example use the example file here:
http://crashcore.com/public/moho/examples/points_curve_example.moho

You can also see the result:
http://crashcore.com/public/moho/examples/points_curve_example.swf

1. Select the curve
2. Start the "Copy Selected Curve Script"
3. Select the points of the cube shape
4. Start the "Paste Curve To Points Position"
5. Enter values for number of keys, start, end and offsets (or use defaults)

* Position offset: offsets the whole shape a certain distance from the curve
* Pivot offset: Used in "Rotate to Face Curve" to offset the pivot point of rotation from the center of the points
* For this script, to make things easy on yourself, the curve and shape should be in the same layer.

The shape will now translate to match the cuve.
You can now delete the curve if you want need it anymore.


Last edited by macton on Sat Jan 14, 2006 11:43 am; edited 22 times in total
Back to top
View user's profile Send private message
rylleman



Joined: 15 Feb 2005
Posts: 664
Location: sweden

PostPosted: Fri Oct 07, 2005 8:14 am    Post subject: Reply with quote

Wow! Thank you!
There's a few scripts there that can come in handy for me.
_________________
Rylander Animation
My Moho Scripts
My blog.
Back to top
View user's profile Send private message Visit poster's website
teotoon



Joined: 04 Aug 2004
Posts: 91
Location: Turkey

PostPosted: Fri Oct 07, 2005 12:34 pm    Post subject: Reply with quote

This is great! Thank you for sharing. It is also nice to see another scripter in this forum...
Back to top
View user's profile Send private message
Ramón López



Joined: 08 Aug 2004
Posts: 1422
Location: Elda! Again...

PostPosted: Fri Oct 07, 2005 2:36 pm    Post subject: Reply with quote

Shocked RE-WOW!!! Where have you been all this time, guy?? Smile ...You must know that new scripters are always specially WELCOMED, and you also come here with all this material... Uf... VERY NICE & THANK YOU VERY MUCH! Very Happy

PS: THANKS, in special, for the waited Reverse Keyframes Script, I trust LM (PLEEEASE Very Happy ) will add the posibility of get keyframe's interpolation values in a near future Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mr. blaaa



Joined: 30 Jul 2005
Posts: 622
Location: ---

PostPosted: Fri Oct 07, 2005 5:55 pm    Post subject: Reply with quote

Coooool man! Yeah thank you for your delicious release!
Really handy scripts! Thank you so much! Whooooooooooooot!!! Very Happy
_________________
Back to top
View user's profile Send private message MSN Messenger
ulrik



Joined: 11 Aug 2005
Posts: 809
Location: Stockholm Sweden

PostPosted: Fri Oct 07, 2005 6:36 pm    Post subject: Reply with quote

Thanks a lot macton!!! Very Happy this seems to be a lot of nice and usefull scripts. wooooaaaahh Surprised
_________________
animation newbie and devoted fan of improvised music
Musikboden
Myspace
Back to top
View user's profile Send private message Visit poster's website
macton



Joined: 18 Aug 2005
Posts: 93
Location: San Diego

PostPosted: Fri Oct 07, 2005 7:15 pm    Post subject: You're welcome. Reply with quote

No problem guys. I hope you get some use out of them.

Our artists here needed these scripts written and we didn't see any reason why we couldn't share them - I've certainly benefitted from looking at the scripts released by others.
Back to top
View user's profile Send private message
ulrik



Joined: 11 Aug 2005
Posts: 809
Location: Stockholm Sweden

PostPosted: Fri Oct 07, 2005 7:26 pm    Post subject: Reply with quote

I have some problems to view the whole meny of 3 of the scripts, it's the "shift keyframes", "cycle last layer keyframe" and "reverse layer keyframes" the meny is so long it doesn't fit my monitor it looks like this
http://www.musikboden.se/shiftkeyframes.png

do you have a clue what I should do to make the whole meny visible? is it my monitor preferences or...?

ulrik
_________________
animation newbie and devoted fan of improvised music
Musikboden
Myspace
Back to top
View user's profile Send private message Visit poster's website
macton



Joined: 18 Aug 2005
Posts: 93
Location: San Diego

PostPosted: Fri Oct 07, 2005 9:54 pm    Post subject: Reply with quote

ulrik wrote:

do you have a clue what I should do to make the whole meny visible? is it my monitor preferences or...?


I thought that might be a problem for some people. I haven't looked at the GUI stuff much at all, but there must be a way I can organize that stuff a little better.
I'll look into it.

UPDATE: This is no longer a problem in the latest versions posted above.


Last edited by macton on Sun Oct 09, 2005 7:25 am; edited 1 time in total
Back to top
View user's profile Send private message
jorgy



Joined: 05 Sep 2004
Posts: 778
Location: Colorado, USA

PostPosted: Fri Oct 07, 2005 10:18 pm    Post subject: Reply with quote

This is great! I feel like a kid in a candy store! Thanks so much!
Back to top
View user's profile Send private message
7feet



Joined: 04 Aug 2004
Posts: 840
Location: L.I., New Yawk.

PostPosted: Sat Oct 08, 2005 9:12 am    Post subject: Reply with quote

My thanks, too. Cool stuff, and quite a nice collection all at once. Dang. Another person busting out some scripts is a Good Thing.
_________________
--Brian

www.SevenFeetDesign.com
7feetanimestudio@gmail.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
macton



Joined: 18 Aug 2005
Posts: 93
Location: San Diego

PostPosted: Sat Oct 08, 2005 11:38 am    Post subject: Update Reply with quote

Some of the scripts were updated.
A new script was added.

See notes at the top of the thread.
Back to top
View user's profile Send private message
Ramón López



Joined: 08 Aug 2004
Posts: 1422
Location: Elda! Again...

PostPosted: Sat Oct 08, 2005 12:02 pm    Post subject: Reply with quote

...PLEASE! Someone tell me if I am not DREAMING!!! Very Happy

PS: THANK YOUUUUUU!!! Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Anime Studio Forum Forum Index -> Scripting All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
Page 1 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group