Bones2ChainsAbstract: Creates steel chains from bone chainsDescription: This tool builds user-defined steel chains from bones, then parents them to each corresponding bone so they animate with it correctly. Working Scenarios: Simply when you need to create and animate user-defined chains in an easy way. User Usage: Select any part of the chain and run the script. It will prompt you to define its parameters as below:
Developer Usage: You can call this tool from any other scripts using the following function call: ChianMaker( pChainElement , inRad , inSecRad , inLength , inResl ) Where pChianElement is a valid XSI object that contains any object from the chain you want to use. inRad is a float that specify the base chain radius (refer to the illustration for more detail about the rest of the arguments). inSecRad is a float that specify the section radius for the base chain. inLength is a float that specify the length of the base chain element. InRes is an integer that specifies the detail level (resolution) for the rings. This argument could be: 0 for “low” resolution, 1 for “mid” or 2 for “high”. This tool returns an XSI collection object that contains all the created chains elements. Nature: Script Applies To: XSI 3.5 on NT,Win2K,XP Languages: VBScript |