Adverti horiz upsell

Davveys Spring Generator 1.1.0 for Maya (maya script)

Davveys Spring Generator

License
Button download
4,392 Downloads

Compatibility

  • 8.x, 7.x, 6.x

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:02/17/2007
Last Modified:03/19/2007
File Size: 181 KB
Note:- Any Duplicate files contained in any of my script packs can be used. Just ensure you copy the latest version of any file. These script packs are being built up using some common utility type scripts which are shared across more than one pack.

Version 1.1.0
Corrected error which caused spring offset in Maya 8.0 onwards (due to way Maya generates PolyHelix i.e. now center of rotation at center of Helix and it was at bottom edge previously)
Also script will now generate the spring automatically for a Piston built by Davvey's Piston Generator once Top Node of Piston has been loaded)

Description Section

These Scripts will build Dimensional accurate Springs and the GUI will show the English Equivalent during the setting up of the various options.

Installation
Just install scripts in any Maya script path and install Icon and Image files in MayPrefsIcons directory

Usage Section

NOTE:- Maya's POLY HELIX Tool is required to run this script.

Type DVY_Springs in command line or middle mouse drag it to a shelf. There is an Icon file supplied to use with the Shelf Button.

Enter Spring dimensions and GUI will also show English equivalent sizes. Select top and Bottom Spring ends as required then press Build Spring Button.
The Script can build the following styles of Springs.

Closed_Ground_End, Closed_Flat_End, Open_End,
Hook_Loop_End, Closed_Loop_End, xtended_Loop_End, Cone_End

As each option is selected an image of the style will be updated in the GUI.
The top and Bottom ends can be the same or different styles.

Generally Compression springs are built using the first three styles and extension using the remaining four styles. The Top and Bottom sections are point and aim constrained to Top and Bottom Locators which can be used to "operate the Spring". The spring will stretch as the Top and Bottom Locators are move in the Y-axis To Move the spring use the Top Go Node to Translate and Roate the Spring.

The Spring is generated from a PolyHelix which is a locked Node to prevent deletion of its construction History. The Helix has is its Height attribute connected to the output of a distance node which is in turn connected to the world space postions of the Top and Bottom Locators. The Spring Body is constrained to the Bottom End Section of the Spring and this ensures realistic stretching of the spring when either end of the spring is pulled.

There is a smoothing attribute on the Spring Top Node which will apply a smoothing action to the springs main body.

If required the script can build a Spring to match a Round Cap End Piston previously built using Davvey's Piston Generator. To use this option load the Pistons Top Group Node into the GUI before pressing the Build Spring Button.

Note:- The Scale of the Spring will be adjusted to set correct Spring size relevant to the correct size for the Users Maya Unit settings i.e mm, cm, m, in, ft, yd.

TO DELETE A SPRING

PLEASE USE THE DELETE SPRING BUTTON IN THE GUI. THE REASON FOR THIS IS THAT THERE ARE LOCKED NODES IN THE SPRING GROUP WHICH MEANS THE NODE CANNOT BE

Installation example (for Maya 8.0):

1. Install scripts in the Maya Script directory
E:Documents and SettingsDavveyMy DocumentsMaya8.0scripts

2. Install all icons (xpm files) in
E:Documents and SettingsDavveyMy DocumentsMaya8.0prefsicons

Davvey
Thanks and enjoy any comments good or bad let me know at Davvey@ntlworld.com Also please rate the scripts if you like them and any feedback on additions required.


Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • Nick Sterjov
    Nick Sterjov
  • Syed Arshad Ali Shah
    Syed Arshad Ali Shah
  • Nightreaver
    Nightreaver
  • ramzi r2
    ramzi r2
  • hicabi
    hicabi
  • Salvador Simo
    Salvador Simo
  • shcmack
    shcmack
  • truling
    truling