Pages

Sunday, October 23, 2011

A script for having controls move other controls

This is a short demo on a script I made to help with having controls moving other controls.


Description: given two control names entered in user-interface make one control move from the other controls pivot

supports any nurbs/poly/transform where:
driven has a (non-world) parent null with one child
driver has no incoming connections and/or constraints

This is the current version of the script.
naSwitch.py

naSwitch.zip

Here are the modules in the zip folder
AttributeCalculator.py
BasicConstraint.py
Button.py
ConnectionCalculator.py
ConnectionCopier.py
ConstraintCheck.py
ConstraintCopier.py
DataGetter.py
DisplayEditor.py
FunctionObject.py
HierarchyCalculator.py
Layout.py
Library.py
ListCalculator.py
Main.py
MainMaker.py
MainStorage.py
MainStorageConnector.py
PositionCaclulator.py
SceneCheck.py
ShapeConstraint.py
TextGroup.py
Transform.py
UIGetter.py
UIQuitter.py
UISetup.py
UserInterfaceChecker.py
WidgetHandler.py
Window.py




Happy Sunday
Nathaniel



Acknowledgements:
Arun Pragash (pjarunpragash dot webs dot com) i was inspired by his solution to space switching
Matt Stoneham (td-matt dot blogspot dot com) i learned about what space switching was
David Johnson (djx dot com dot au) i learned about ways of solving the space switching problem
Davide Lasala (davidelasala dot com) i learned about how to program with python in maya
Chad Vernon (chadvernon dot com) i learned about how to program with python in maya
Patrick O Brien (Guide to Python introspection, ibm dot com) i learned about finding/calling functions from other python objects
Ryan Trowbridge (rtrowbridge dot com) i learned about importing python scripts into maya and python user interfaces in maya
Greg Elshoff (kickstand dot tv) i learned about python user interfaces in maya