<s> import json <EOL> from kraken import plugins <EOL> from kraken . core . maths import Xfo , Vec3 , Quat <EOL> from kraken . core . objects . container import Container <EOL> from kraken . examples . arm_component import ArmComponentGuide , ArmComponent <EOL> from kraken . core . profiler import Profiler <EOL> from kraken . helpers . utility_methods import logHierarchy <EOL> def buildArm ( mode = '<STR_LIT>' ) : <EOL> Profiler . getInstance ( ) . push ( "<STR_LIT>" ) <EOL> guideContainer = Container ( '<STR_LIT>' ) <EOL> armGuide = ArmComponentGuide ( "<STR_LIT>" , parent = guideContainer ) <EOL> armGuide . loadData ( { <EOL> "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT:location>" : "<STR_LIT:L>" , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( <NUM_LIT> , <NUM_LIT> , - <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( <NUM_LIT> , <NUM_LIT> , - <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : <NUM_LIT> <EOL> } ) <EOL> if mode == '<STR_LIT>' : <EOL> builder = plugins . getBuilder ( ) <EOL> builder . build ( guideContainer ) <EOL> elif mode == '<STR_LIT>' : <EOL> synchronizer = plugins . getSynchronizer ( ) <EOL> synchronizer . setTarget ( guideContainer ) <EOL> synchronizer . sync ( ) <EOL> armGuideData = armGuide . getGuideData ( ) <EOL> rigContainer = Container ( '<STR_LIT>' ) <EOL> arm = ArmComponent ( parent = rigContainer ) <EOL> arm . loadData ( armGuideData ) <EOL> builder = plugins . getBuilder ( ) <EOL> builder . build ( rigContainer ) <EOL> else : <EOL> LogMessage ( '<STR_LIT>' ) <EOL> Profiler . getInstance ( ) . pop ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> print Profiler . getInstance ( ) . generateReport ( ) <EOL> else : <EOL> if mode == '<STR_LIT>' : <EOL> logHierarchy ( armGuide ) <EOL> elif mode == '<STR_LIT>' : <EOL> logHierarchy ( arm ) <EOL> buildArm ( mode = '<STR_LIT>' ) </s>
