<s> from kraken . core . maths import Vec3 , Quat , Xfo <EOL> from kraken . core . objects . container import Container <EOL> from kraken_components . generic . mainSrt_component import MainSrtComponentRig <EOL> from kraken_components . biped . head_component import HeadComponentRig <EOL> from kraken_components . biped . clavicle_component import ClavicleComponentGuide , ClavicleComponentRig <EOL> from kraken_components . biped . arm_component import ArmComponentGuide , ArmComponentRig <EOL> from kraken_components . biped . leg_component import LegComponentGuide , LegComponentRig <EOL> from kraken_components . biped . spine_component import SpineComponentRig <EOL> from kraken_components . biped . neck_component import NeckComponentGuide , NeckComponentRig <EOL> from kraken . core . profiler import Profiler <EOL> class BobRig ( Container ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , name ) : <EOL> Profiler . getInstance ( ) . push ( "<STR_LIT>" + name ) <EOL> super ( BobRig , self ) . __init__ ( name ) <EOL> mainSrtComponent = MainSrtComponentRig ( "<STR_LIT>" , self ) <EOL> spineComponent = SpineComponentRig ( "<STR_LIT>" , self ) <EOL> spineComponent . loadData ( data = { <EOL> '<STR_LIT>' : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> '<STR_LIT>' : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> '<STR_LIT>' : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> '<STR_LIT>' : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> '<STR_LIT>' : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> '<STR_LIT>' : <NUM_LIT:4> <EOL> } ) <EOL> neckComponentGuide = NeckComponentGuide ( "<STR_LIT>" ) <EOL> neckComponentGuide . loadData ( { <EOL> "<STR_LIT:location>" : "<STR_LIT:M>" , <EOL> "<STR_LIT>" : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> "<STR_LIT>" : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) <EOL> } ) <EOL> neckComponent = NeckComponentRig ( "<STR_LIT>" , self ) <EOL> neckComponent . loadData ( neckComponentGuide . getRigBuildData ( ) ) <EOL> headComponent = HeadComponentRig ( "<STR_LIT>" , self ) <EOL> headComponent . loadData ( data = { <EOL> "<STR_LIT>" : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> "<STR_LIT>" : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) , <EOL> "<STR_LIT>" : Vec3 ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) , <EOL> "<STR_LIT>" : Vec3 ( - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) , <EOL> "<STR_LIT>" : Vec3 ( <NUM_LIT:0.0> , <NUM_LIT> , - <NUM_LIT> ) <EOL> } ) <EOL> clavicleLeftComponentGuide = ClavicleComponentGuide ( "<STR_LIT>" ) <EOL> clavicleLeftComponentGuide . loadData ( { <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:0.0> , <NUM_LIT:1.0> , <NUM_LIT:0.0> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( <NUM_LIT> , <NUM_LIT> , - <NUM_LIT> ) ) <EOL> } ) <EOL> clavicleLeftComponent = ClavicleComponentRig ( "<STR_LIT>" , self ) <EOL> clavicleLeftComponent . loadData ( data = clavicleLeftComponentGuide . getRigBuildData ( ) ) <EOL> clavicleRightComponentGuide = ClavicleComponentGuide ( "<STR_LIT>" ) <EOL> clavicleRightComponentGuide . loadData ( { <EOL> "<STR_LIT:location>" : "<STR_LIT:R>" , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( - <NUM_LIT> , <NUM_LIT> , - <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( <NUM_LIT:0.0> , <NUM_LIT:1.0> , <NUM_LIT:0.0> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( - <NUM_LIT> , <NUM_LIT> , - <NUM_LIT> ) ) <EOL> } ) <EOL> clavicleRightComponent = ClavicleComponentRig ( "<STR_LIT>" , self ) <EOL> clavicleRightComponent . loadData ( data = clavicleRightComponentGuide . getRigBuildData ( ) ) <EOL> armLeftComponentGuide = ArmComponentGuide ( "<STR_LIT>" ) <EOL> armLeftComponentGuide . loadData ( { <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>" : Xfo ( tr = Vec3 ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) , <EOL> ori = Quat ( Vec3 ( - <NUM_LIT> , - <NUM_LIT> , - <NUM_LIT> ) , <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : <NUM_LIT> <EOL> } ) <EOL> armLeftComponent = ArmComponentRig ( "<STR_LIT>" , self ) <EOL> armLeftComponent . loadData ( data = armLeftComponentGuide . getRigBuildData ( ) ) <EOL> armRightComponentGuide = ArmComponentGuide ( "<STR_LIT>" ) <EOL> armRightComponentGuide . loadData ( { <EOL> "<STR_LIT:location>" : "<STR_LIT:R>" , <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>" : Xfo ( tr = Vec3 ( - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) , <EOL> ori = Quat ( Vec3 ( - <NUM_LIT> , - <NUM_LIT> , - <NUM_LIT> ) , <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : <NUM_LIT> <EOL> } ) <EOL> armRightComponent = ArmComponentRig ( "<STR_LIT>" , self ) <EOL> armRightComponent . loadData ( data = armRightComponentGuide . getRigBuildData ( ) ) <EOL> legLeftComponentGuide = LegComponentGuide ( "<STR_LIT>" ) <EOL> legLeftComponentGuide . 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>" : Xfo ( Vec3 ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> } ) <EOL> legLeftComponent = LegComponentRig ( "<STR_LIT>" , self ) <EOL> legLeftComponent . loadData ( data = legLeftComponentGuide . getRigBuildData ( ) ) <EOL> legRightComponentGuide = LegComponentGuide ( "<STR_LIT>" ) <EOL> legRightComponentGuide . loadData ( { <EOL> "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT:location>" : "<STR_LIT:R>" , <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>" : Xfo ( Vec3 ( - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) , <EOL> "<STR_LIT>" : Xfo ( Vec3 ( - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> } ) <EOL> legRightComponent = LegComponentRig ( "<STR_LIT>" , self ) <EOL> legRightComponent . loadData ( data = legRightComponentGuide . getRigBuildData ( ) ) <EOL> mainSrtRigScaleOutput = mainSrtComponent . getOutputByName ( '<STR_LIT>' ) <EOL> mainSrtOffsetOutput = mainSrtComponent . getOutputByName ( '<STR_LIT>' ) <EOL> spineInput = spineComponent . getInputByName ( '<STR_LIT>' ) <EOL> spineInput . setConnection ( mainSrtOffsetOutput ) <EOL> spineRigScaleInput = spineComponent . getInputByName ( '<STR_LIT>' ) <EOL> spineRigScaleInput . setConnection ( mainSrtRigScaleOutput ) <EOL> spineEndOutput = spineComponent . getOutputByName ( '<STR_LIT>' ) <EOL> neckSpineEndInput = neckComponent . getInputByName ( '<STR_LIT>' ) <EOL> neckSpineEndInput . setConnection ( spineEndOutput ) <EOL> neckEndOutput = neckComponent . getOutputByName ( '<STR_LIT>' ) <EOL> headBaseInput = headComponent . getInputByName ( '<STR_LIT>' ) <EOL> headBaseInput . setConnection ( neckEndOutput ) <EOL> spineEndOutput = spineComponent . getOutputByName ( '<STR_LIT>' ) <EOL> clavicleLeftSpineEndInput = clavicleLeftComponent . getInputByName ( '<STR_LIT>' ) <EOL> clavicleLeftSpineEndInput . setConnection ( spineEndOutput ) <EOL> clavicleRightSpineEndInput = clavicleRightComponent . getInputByName ( '<STR_LIT>' ) <EOL> clavicleRightSpineEndInput . setConnection ( spineEndOutput ) <EOL> mainSrtOffsetOutput = mainSrtComponent . getOutputByName ( '<STR_LIT>' ) <EOL> armLeftGlobalSRTInput = armLeftComponent . getInputByName ( '<STR_LIT>' ) <EOL> armLeftGlobalSRTInput . setConnection ( mainSrtOffsetOutput ) <EOL> armLeftRigScaleInput = armLeftComponent . getInputByName ( '<STR_LIT>' ) <EOL> armLeftRigScaleInput . setConnection ( mainSrtRigScaleOutput ) <EOL> armRightGlobalSRTInput = armRightComponent . getInputByName ( '<STR_LIT>' ) <EOL> armRightGlobalSRTInput . setConnection ( mainSrtOffsetOutput ) <EOL> armRightRigScaleInput = armRightComponent . getInputByName ( '<STR_LIT>' ) <EOL> armRightRigScaleInput . setConnection ( mainSrtRigScaleOutput ) <EOL> clavicleLeftEndOutput = clavicleLeftComponent . getOutputByName ( '<STR_LIT>' ) <EOL> armLeftClavicleEndInput = armLeftComponent . getInputByName ( '<STR_LIT:root>' ) <EOL> armLeftClavicleEndInput . setConnection ( clavicleLeftEndOutput ) <EOL> clavicleRightEndOutput = clavicleRightComponent . getOutputByName ( '<STR_LIT>' ) <EOL> armRightClavicleEndInput = armRightComponent . getInputByName ( '<STR_LIT:root>' ) <EOL> armRightClavicleEndInput . setConnection ( clavicleRightEndOutput ) <EOL> mainSrtOffsetOutput = mainSrtComponent . getOutputByName ( '<STR_LIT>' ) <EOL> legLeftGlobalSRTInput = legLeftComponent . getInputByName ( '<STR_LIT>' ) <EOL> legLeftGlobalSRTInput . setConnection ( mainSrtOffsetOutput ) <EOL> legLeftRigScaleInput = legLeftComponent . getInputByName ( '<STR_LIT>' ) <EOL> legLeftRigScaleInput . setConnection ( mainSrtRigScaleOutput ) <EOL> legRightGlobalSRTInput = legRightComponent . getInputByName ( '<STR_LIT>' ) <EOL> legRightGlobalSRTInput . setConnection ( mainSrtOffsetOutput ) <EOL> legRightRigScaleInput = legRightComponent . getInputByName ( '<STR_LIT>' ) <EOL> legRightRigScaleInput . setConnection ( mainSrtRigScaleOutput ) <EOL> spinePelvisOutput = spineComponent . getOutputByName ( '<STR_LIT>' ) <EOL> legLeftPelvisInput = legLeftComponent . getInputByName ( '<STR_LIT>' ) <EOL> legLeftPelvisInput . setConnection ( spinePelvisOutput ) <EOL> legRightPelvisInput = legRightComponent . getInputByName ( '<STR_LIT>' ) <EOL> legRightPelvisInput . setConnection ( spinePelvisOutput ) <EOL> Profiler . getInstance ( ) . pop ( ) </s>
