Here's some handy scripts
Posted: Fri Oct 07, 2005 5:23 am
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/scri ... cripts.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/script ... cripts.zip
Current List of Scripts:
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/sc ... 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/sc ... frames.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/sc ... mation.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/sc ... mation.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/script ... yframe.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/script ... _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/script ... frames.lua
For an example see this thread:
http://www.lostmarble.com/forum/viewtop ... 4b2354d889
See also (for reference):
http://www.lostmarble.com/forum/viewtop ... ht=reverse
http://www.lostmarble.com/forum/viewtop ... 4b2354d889
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/script ... tation.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/script ... rs_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/script ... ers_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/script ... ttings.lua
For an example see these threads:
http://www.lostmarble.com/forum/viewtop ... 4b2354d889
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/sc ... mation.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/sc ... mation.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/script ... mplate.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/sc ... _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/sc ... _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/sc ... mation.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/sc ... _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/script ... _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/script ... lation.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/script ... _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/script ... 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/script ... sition.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/script ... 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
-----------------
This is ALL of the scripts listed below. I have not posted the individual script files.
http://www.lowrestv.com/moho_stuff/scri ... cripts.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/script ... cripts.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 )
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/sc ... 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/sc ... frames.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/sc ... mation.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/sc ... mation.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/script ... yframe.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/script ... _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/script ... frames.lua
For an example see this thread:
http://www.lostmarble.com/forum/viewtop ... 4b2354d889
See also (for reference):
http://www.lostmarble.com/forum/viewtop ... ht=reverse
http://www.lostmarble.com/forum/viewtop ... 4b2354d889
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/script ... tation.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/script ... rs_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/script ... ers_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/script ... ttings.lua
For an example see these threads:
http://www.lostmarble.com/forum/viewtop ... 4b2354d889
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/sc ... mation.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/sc ... mation.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/script ... mplate.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/sc ... _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/sc ... _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/sc ... mation.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/sc ... _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/script ... _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/script ... lation.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/script ... _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/script ... 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/script ... sition.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/script ... 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
-----------------