Skip to content

linkChain


Author: Asaf Ben-Zur
Best used for: Tank-Treads, Bike-Chains, Ferris-Wheel, Tire, Conveyor-Belt
This is a comprehensive module, to create a link-chain style behaviour.
Originally created for tank-treads, but can be used for a range of components.
On creation, based on the number on the numberOfLinks setting, joints will be created on a circle Nurbs curve with shapeSections setting amount.
After creation, the shape can be tweaked to fit any need.
IMPORTANT NOTE: This module requires a joint-struct-rebuild once the Nurbs shape has been tweaked.
Once the joint-struct is revuilt, the joints will be layed out uniformally along the given shape.
Upon construction, a main control will be created for controlling the entire position of the module.
Under, a chain-driver control will be created. Rotating it will drive the joint chain along the curve in both forwards and backwards directions.
Also, use the shape-tweak layer to create a tweak feature for the shape on construction. This will allow manipulation of the shape dynamically while the chain is driven.
Automatic drive based on position is also possible wihin this module using the AutoDrive layer.


Defenitions


construct

Constructor: construct(mansur, MnsBuildModule, kwargs)
Return: list (controls), dict (internalSpaces)
Arguments:
  • mansur
  • MnsBuildModule
  • kwargs
Keyword Arguments:

createUpCurveFromSamples

Constructor: createUpCurveFromSamples(mansur, rootGuide, samples, upCurveOffset)
Return: None
Arguments:
  • mansur
  • rootGuide
  • samples
  • upCurveOffset
Keyword Arguments:

customGuides

Constructor: customGuides(mansur, builtGuides)
Return: None
Arguments:
  • mansur
  • builtGuides
Keyword Arguments:

deconstruct

deconstruct method implementation for linkChain.

Constructor: deconstruct(mansur, MnsBuildModule, kwargs)
Return: None
Arguments:
  • mansur
  • MnsBuildModule
  • kwargs
Keyword Arguments:

filterValidShapeTweakers

Constructor: filterValidShapeTweakers(tweakersList = [], mansur = None)
Return: None
Arguments:
  • tweakersList(list) ; [default: []]
  • mansur(str) ; [default: None]
Keyword Arguments:

jointStructure

Constructor: jointStructure(mansur, guides, mnsBuildModule = None, kwargs)
Return: None
Arguments:
  • mansur
  • guides
  • mnsBuildModule(str) ; [default: None]
  • kwargs
Keyword Arguments:

jointStructureSoftMod

Constructor: jointStructureSoftMod(mansur, guides, mnsBuildModule = None, kwargs)
Return: None
Arguments:
  • mansur
  • guides
  • mnsBuildModule(str) ; [default: None]
  • kwargs
Keyword Arguments: