global proc jpCreatePVArrow() { string $transformNode = `createNode transform -n "Arrow_CTRL"`; setAttr ".rp" -type "double3" 0 21.604083934761103 0 ; setAttr ".sp" -type "double3" 0 21.604083934761103 0 ; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 7 0 no 3 8 0 0.86776747823511613 1.7355349564702323 2.6033024347053488 3.4710699129404654 4.3388373911755815 5.2066048694106977 6.0743723476458147 8 -1.8369095307335659e-016 20.604083934761103 -1.6081428723391245e-016 0.59506061137965627 21.59373323518869 -6.9388939039072013e-017 0.2220669070073662 21.603213102768141 6.9388939039072493e-017 0.43388373911755851 22.604083934761103 1.4488866631167306e-016 -0.43388373911755784 22.604083934761103 1.4488866631167306e-016 -0.2220669070073662 21.603213102768148 6.9388939039072567e-017 -0.5950606113796566 21.59373323518869 -6.9388939039072013e-017 -4.6124670922964572e-016 20.604083934761103 -1.6081428723391252e-016 ; select $transformNode; }//end proc jpCreatePVArrow global proc jpCreatePivotCTRLShape() { string $transformNode = `createNode transform -n "Sphere_CTRL"`; setAttr ".sp" -type "double3" 0 0 0 ; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 3 16 2 no 3 21 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3.4366936756842077 8.7217336461463049 -8.2969124815585786 8.9726509488121291e-016 8.7217336461463049 -8.9805133565476218 -3.4366936756842148 8.7217336461463049 -8.2969124815585786 -6.3501818929512561 8.7217336461463049 -6.3501818929511629 -8.2969124815586728 8.7217336461463049 -3.436693675684122 -8.9805133565477213 8.7217336461463049 9.2370555648813024e-014 -8.296912481558671 8.7217336461463049 3.4366936756843067 -6.3501818929512561 8.7217336461463049 6.3501818929513512 -3.4366936756842139 8.7217336461463049 8.2969124815587687 -4.4542901576289594e-016 8.7217336461463049 8.9805133565478137 3.4366936756842148 8.7217336461463049 8.2969124815587652 6.3501818929512535 8.7217336461463049 6.3501818929513458 8.2969124815586728 8.7217336461463049 3.4366936756843049 8.980513356547716 8.7217336461463049 9.2370555648813024e-014 8.296912481558671 8.7217336461463049 -3.436693675684122 6.3501818929512517 8.7217336461463049 -6.3501818929511629 3.4366936756842077 8.7217336461463049 -8.2969124815585786 8.9726509488121291e-016 8.7217336461463049 -8.9805133565476218 -3.4366936756842148 8.7217336461463049 -8.2969124815585786 ; createNode nurbsCurve -n ($transformNode + "Shape1") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 3 16 2 no 3 21 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3.4366936756842077 17.018646127704969 9.2370555648813024e-014 8.9726509488121291e-016 17.702247002694008 9.2370555648813024e-014 -3.4366936756842148 17.018646127704969 9.2370555648813024e-014 -6.3501818929512561 15.07191553909756 9.2370555648813024e-014 -8.2969124815586728 12.158427321830516 9.2370555648813024e-014 -8.9805133565477213 8.7217336461463049 9.2370555648813024e-014 -8.296912481558671 5.2850399704620941 9.2370555648813024e-014 -6.3501818929512561 2.3715517531950354 9.2370555648813024e-014 -3.4366936756842139 0.42482116458762675 9.2370555648813024e-014 -4.4542901576289594e-016 -0.2587797104014129 9.2370555648813024e-014 3.4366936756842148 0.42482116458762675 9.2370555648813024e-014 6.3501818929512535 2.3715517531950354 9.2370555648813024e-014 8.2969124815586728 5.2850399704620941 9.2370555648813024e-014 8.980513356547716 8.7217336461463049 9.2370555648813024e-014 8.296912481558671 12.158427321830516 9.2370555648813024e-014 6.3501818929512517 15.07191553909756 9.2370555648813024e-014 3.4366936756842077 17.018646127704969 9.2370555648813024e-014 8.9726509488121291e-016 17.702247002694008 9.2370555648813024e-014 -3.4366936756842148 17.018646127704969 9.2370555648813024e-014 ; createNode nurbsCurve -n ($transformNode + "Shape2") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 3 16 2 no 3 21 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -1.6813858021235122e-015 17.018646127704969 -3.4366936756841113 -2.5544178790530078e-015 17.702247002694008 9.2370555648813024e-014 -3.207584381054821e-015 17.018646127704969 3.4366936756843067 -3.5414466291682588e-015 15.07191553909756 6.3501818929513494 -3.5051771225868643e-015 12.158427321830516 8.2969124815587652 -3.1042975649037621e-015 8.7217336461463049 8.9805133565478137 -2.3998382347939609e-015 5.2850399704620941 8.2969124815587634 -1.4990466793269523e-015 2.3715517531950354 6.3501818929513494 -5.3906024712680123e-016 0.42482116458762675 3.4366936756843067 3.3397182980269548e-016 -0.2587797104014129 9.2370555648813024e-014 9.8713833180450809e-016 0.42482116458762675 -3.436693675684122 1.3210005799179447e-015 2.3715517531950354 -6.3501818929511629 1.2847310733365518e-015 5.2850399704620941 -8.2969124815585786 8.8385151565344749e-016 8.7217336461463049 -8.9805133565476218 1.7939218554364758e-016 12.158427321830516 -8.2969124815585786 -7.2139936992336144e-016 15.07191553909756 -6.3501818929511593 -1.6813858021235122e-015 17.018646127704969 -3.4366936756841113 -2.5544178790530078e-015 17.702247002694008 9.2370555648813024e-014 -3.207584381054821e-015 17.018646127704969 3.4366936756843067 ; select $transformNode; }//end proc jpCreatePivotCTRLShape global proc jpCreateTopTransCTRLShape() { string $transformNode = `createNode transform -n "HalfDiamond_CTRL"`; setAttr -k off ".v"; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 9 0 no 3 10 0 1 2 3 4 5 6 7 8 9 10 -3.2695972730969305 7.6568706088243985 2.5667850107112632e-016 -2.5667850107112632e-016 7.6568706088243985 -3.2695972730969305 3.2695972730969305 7.6568706088243985 -2.5667850107112632e-016 2.5667850107112632e-016 7.6568706088243985 3.2695972730969305 -3.2695972730969305 7.6568706088243985 2.5667850107112632e-016 0 0 0 2.5667850107112632e-016 7.6568706088243985 3.2695972730969305 3.2695972730969305 7.6568706088243985 -2.5667850107112632e-016 0 0 0 -2.5667850107112632e-016 7.6568706088243985 -3.2695972730969305 ; select $transformNode; }//end proc jpCreateTopTransCTRLShape global proc jpCreateCubeCTRLShape() { string $transformNode = `createNode transform -n "Cube_CTRL"`; setAttr ".t" -type "double3" -1.5680030265428871e-014 -8.8817841970011971e-016 1.3385268919885202e-015 ; setAttr ".r" -type "double3" -1.4032955127785321e-014 -1.4032955127785321e-014 1.4032955127785321e-014 ; setAttr ".rp" -type "double3" -1.1588795329010843e-016 6.3680390100319908 0.024728240848780322 ; setAttr ".sp" -type "double3" -1.1588795329010843e-016 6.3680390100319908 0.024728240848780322 ; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 16 0 no 3 17 0 0.0625 0.125 0.1875 0.25 0.3125 0.375 0.4375 0.5 0.5625 0.625 0.6875 0.75 0.8125 0.875 0.9375 1 17 2.3194955435178888 5.5727642415227461 2.3084895721825029 2.3194955435178888 5.5727642415227461 -2.9775983427050172 2.3194955435178888 8.6098559695918322 -2.9775983427050172 2.3194955435178888 8.6098559695918322 2.3084895721825029 -2.3224970176413917 8.6098559695918322 2.3084062569612027 -2.3224970176413917 8.6098559695918322 -2.9775983427050172 2.3194955435178888 8.6098559695918322 -2.9775983427050172 2.3194955435178888 5.5727642415227461 -2.9775983427050172 -2.3224970176413917 5.5727642415227461 -2.9775983427050172 -2.3224970176413917 8.6098559695918322 -2.9775983427050172 -2.3224970176413917 8.6098559695918322 2.3084062569612027 -2.3224970176413917 5.5727642415227461 2.3084062569612027 2.3194955435178888 5.5727642415227461 2.3084895721825029 2.3194955435178888 8.6098559695918322 2.3084895721825029 -2.3224970176413917 8.6098559695918322 2.3084062569612027 -2.3224970176413917 5.5727642415227461 2.3084062569612027 -2.3224970176413917 5.5727642415227461 -2.9775983427050172 ; select $transformNode; }//end proc jpCreateCubeCTRLShape global proc jpCreateCurvedCompass() { string $transformNode = `createNode transform -n "curvedCompass_CTRL"`; setAttr ".rp" -type "double3" -0.0031847011379033674 2.2204460492503131e-016 0 ; setAttr ".sp" -type "double3" -0.0031847011379033674 2.2204460492503131e-016 0 ; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 40 0 no 3 41 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 -0.37644932285437899 0.81351261549545573 0.3767563729058212 -0.37683750363584162 0.62358643761252397 0.83747625587171015 -0.37752935293310269 0.28533253816003656 1.3358240387269267 -0.38001433611817836 -0.10926932742706474 1.6993940687114253 -0.75446490576511771 -0.1085025719117324 1.6993946600244185 -0.0036524641937544277 -0.81531552871798629 1.9610810718649332 0.75004749814407023 -0.1115833341727489 1.6993922841761622 0.37391939716677569 -0.11081314360749495 1.6993928781382266 0.37469605448296706 0.2687383090405393 1.3554207269359879 0.37546180050617539 0.64312572956734337 0.79804253855442653 0.37580687910021859 0.81197223436494714 0.37675518498169325 0.85473459013003872 0.6508367020226673 0.37663091912115121 1.3183403804291753 0.29908337472727986 0.37635965101982638 1.7127821379850707 -0.17564305627581955 0.37599354748193647 1.7127821379850707 -0.17593312244281267 0.75212232516355293 1.8254196093626804 -0.58911176478448213 -0.00045431618552083108 1.7127821379850707 -0.17477285777484175 -0.752392785562912 1.7127821379850707 -0.1750629239418342 -0.37626400788129555 1.388497755693447 0.23655538158241551 -0.37594657260053044 0.90250593392676803 0.61810414025277005 -0.37565232660682923 0.37580687910021859 0.81255236669893316 -0.37550237038154055 0.37546189986078821 0.64440427246834475 -0.79692736836945688 0.37475850848428444 0.30129773040160557 -1.3152114978977947 0.37391939716677569 -0.10819190905768727 -1.6995617723041283 0.75004749814407023 -0.10896209962294101 -1.6995623662661927 -0.0036524641937544277 -0.81228983460690851 -1.9623362623133396 -0.75446490576511771 -0.10588133736192429 -1.6995599904179368 -0.37833680478793535 -0.10665152792717847 -1.6995605843800003 -0.37753384622619601 0.2852004175121825 -1.3382452636177806 -0.37680565855707049 0.64040934200891164 -0.81079945388144825 -0.37644932285437899 0.8140927478294413 -0.37550118245741171 -0.81664711783750943 0.6746421373422169 -0.37560872515679833 -1.3277145355904734 0.29914533189605663 -0.37589830395410662 -1.7174579985309599 -0.16803888457110938 -0.37625859102329873 -1.7174579985309599 -0.16774881840411671 -0.75238736870491607 -1.8317890116384872 -0.58162296624020349 -0.00044854091061985457 -1.7174579985309599 -0.16890908307208807 0.75212774202154975 -1.7174579985309599 -0.16861901690509518 0.37599896433993329 -1.3184911600893072 0.30679370602525213 0.3763655971382267 -0.75472760063252708 0.69367787835862482 0.37666395774129047 -0.37644932285437899 0.81351261549545573 0.3767563729058212 ; select $transformNode; }//end proc jpCreateCurvedCompass global proc jpCreateDefaultRig() { createNode transform -n "WORLD"; setAttr -l on ".tx"; setAttr -l on ".ty"; setAttr -l on ".tz"; setAttr -l on ".rx"; setAttr -l on ".ry"; setAttr -l on ".rz"; setAttr -l on ".sx"; setAttr -l on ".sy"; setAttr -l on ".sz"; createNode transform -n "CONTROLS" -p "WORLD"; setAttr -l on ".tx"; setAttr -l on ".ty"; setAttr -l on ".tz"; setAttr -l on ".rx"; setAttr -l on ".ry"; setAttr -l on ".rz"; setAttr -l on ".sx"; setAttr -l on ".sy"; setAttr -l on ".sz"; createNode transform -n "constraint_GRP" -p "CONTROLS"; createNode transform -n "offset_CTRL" -p "constraint_GRP"; createNode transform -n "trans_CTRL" -p "offset_CTRL"; addAttr -ci true -sn "hiLo" -ln "hiLo" -min 0 -max 1 -at "long"; setAttr ".ove" yes; setAttr ".ovc" 6; setAttr -k 0 -cb 1 ".hiLo" 1; createNode nurbsCurve -n "trans_CTRLShape" -p "trans_CTRL"; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 16 0 no 3 17 0 0.39018064403225655 0.78036128806451321 1.1705419320967698 1.5607225761290264 1.950903220161283 2.3410838641935396 2.731264508225796 3.1214451522580524 3.5116257962903088 3.9018064403225652 4.2919870843548216 4.6821677283870784 5.0723483724193352 5.4625290164515921 5.8527096604838489 6.2428903045161057 17 2.5849939301196182e-016 2.5849939301196182e-016 -4.2217548880928932 -1.0323720986750149 1.526084061930856e-016 -2.4923667220367975 -2.9852315098779392 1.8278667373136461e-016 -2.9852315098779387 -2.4923667220367975 6.3212471577318266e-017 -1.0323720986750149 -4.2217548880928932 -1.2871197840266917e-032 2.102095550964913e-016 -2.4923667220367975 -6.321247157731829e-017 1.0323720986750153 -2.9852315098779387 -1.8278667373136468e-016 2.9852315098779396 -1.0323720986750147 -1.526084061930856e-016 2.4923667220367975 4.445640291507179e-016 -2.5849939301196182e-016 6.8578142579036632 1.0323720986750158 -1.5260840619308553e-016 2.4923667220367971 2.9852315098779396 -1.8278667373136458e-016 2.9852315098779383 2.4923667220367975 -6.3212471577318241e-017 1.0323720986750142 4.2217548880928932 5.5919994536293008e-032 -9.1327297725917102e-016 2.4923667220367971 6.3212471577318327e-017 -1.0323720986750162 2.9852315098779378 1.8278667373136468e-016 -2.9852315098779396 1.0323720986750138 1.526084061930856e-016 -2.4923667220367975 -1.381981925367624e-015 2.5849939301196177e-016 -4.2217548880928923 ; createNode nurbsCurve -n "transTop_CTRLShape" -p "trans_CTRL"; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 9 0 no 3 10 0 1 2 3 4 5 6 7 8 9 10 -0.9035742917670978 16.818880087052964 7.093475906820267e-017 -7.093475906820267e-017 16.818880087052964 -0.9035742917670978 0.9035742917670978 16.818880087052964 -7.093475906820267e-017 7.093475906820267e-017 16.818880087052964 0.9035742917670978 -0.9035742917670978 16.818880087052964 7.093475906820267e-017 0 14.702854515815675 0 7.093475906820267e-017 16.818880087052964 0.9035742917670978 0.9035742917670978 16.818880087052964 -7.093475906820267e-017 0 14.702854515815675 0 -7.093475906820267e-017 16.818880087052964 -0.9035742917670978 ; createNode transform -n "pivot_CTRL" -p "trans_CTRL"; createNode nurbsCurve -n "pivot_CTRLShape" -p "pivot_CTRL"; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 3 16 2 no 3 21 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -0.38617398388040047 -0.98004272312850105 -0.93230646931970274 -2.2084043143423484e-016 -0.98004272312850105 -1.0091212506737868 0.38617398388040103 -0.98004272312850105 -0.93230646931970274 0.71355647939089228 -0.98004272312850116 -0.71355647939088196 0.93230646931971317 -0.98004272312850116 -0.3861739838803907 1.0091212506737979 -0.98004272312850116 1.037948354854368e-014 0.93230646931971295 -0.98004272312850116 0.38617398388041146 0.71355647939089228 -0.98004272312850116 0.71355647939090305 0.38617398388040092 -0.98004272312850105 0.93230646931972405 -6.9964740211345664e-017 -0.98004272312850105 1.0091212506738085 -0.38617398388040125 -0.98004272312850105 0.93230646931972361 -0.71355647939089217 -0.98004272312850094 0.7135564793909025 -0.93230646931971339 -0.98004272312850094 0.3861739838804113 -1.0091212506737977 -0.98004272312850094 1.037948354854368e-014 -0.93230646931971317 -0.98004272312850094 -0.3861739838803907 -0.71355647939089206 -0.98004272312850094 -0.71355647939088196 -0.38617398388040047 -0.98004272312850105 -0.93230646931970274 -2.2084043143423484e-016 -0.98004272312850105 -1.0091212506737868 0.38617398388040103 -0.98004272312850105 -0.93230646931970274 ; createNode nurbsCurve -n "pivot_CTRLShape1" -p "pivot_CTRL"; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 3 16 2 no 3 21 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -0.38617398388040058 -1.9123491924482132 1.037948354854368e-014 -3.4441806096946631e-016 -1.989163973802297 1.037948354854368e-014 0.38617398388040092 -1.9123491924482132 1.037948354854368e-014 0.71355647939089217 -1.6935992025193933 1.037948354854368e-014 0.93230646931971306 -1.366216707008902 1.037948354854368e-014 1.0091212506737979 -0.98004272312850116 1.037948354854368e-014 0.93230646931971295 -0.59386873924810046 1.037948354854368e-014 0.7135564793908924 -0.26648624373760726 1.037948354854368e-014 0.38617398388040103 -0.047736253808787231 1.037948354854368e-014 5.3612889323885981e-017 0.029078527545296613 1.037948354854368e-014 -0.38617398388040114 -0.047736253808787134 1.037948354854368e-014 -0.71355647939089206 -0.26648624373760704 1.037948354854368e-014 -0.93230646931971339 -0.59386873924810024 1.037948354854368e-014 -1.0091212506737977 -0.98004272312850094 1.037948354854368e-014 -0.93230646931971328 -1.3662167070089015 1.037948354854368e-014 -0.71355647939089217 -1.6935992025193933 1.037948354854368e-014 -0.38617398388040058 -1.9123491924482132 1.037948354854368e-014 -3.4441806096946631e-016 -1.989163973802297 1.037948354854368e-014 0.38617398388040092 -1.9123491924482132 1.037948354854368e-014 ; createNode nurbsCurve -n "pivot_CTRLShape2" -p "pivot_CTRL"; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 3 16 2 no 3 21 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -4.5253738480370412e-017 -1.9123491924482132 -0.38617398388038954 4.3440238583795614e-017 -1.989163973802297 1.037948354854368e-014 1.2624196088572755e-016 -1.9123491924482132 0.38617398388041146 1.90545616804438e-016 -1.6935992025193933 0.71355647939090283 2.2656155764039574e-016 -1.3662167070089017 0.93230646931972361 2.2880668288664299e-016 -0.98004272312850105 1.0091212506738085 1.9693919257654934e-016 -0.59386873924810035 0.9323064693197235 1.3581062323030817e-016 -0.26648624373760715 0.71355647939090283 5.4727245399022776e-017 -0.047736253808787182 0.38617398388041146 -3.3966731665143379e-017 0.029078527545296613 1.037948354854368e-014 -1.1676845396707527e-016 -0.047736253808787182 -0.3861739838803907 -1.810721098857856e-016 -0.26648624373760715 -0.71355647939088196 -2.1708805072174371e-016 -0.59386873924810035 -0.93230646931970274 -2.1933317596799073e-016 -0.98004272312850105 -1.0091212506737868 -1.8746568565789721e-016 -1.3662167070089017 -0.93230646931970274 -1.2633711631165577e-016 -1.6935992025193933 -0.71355647939088152 -4.5253738480370412e-017 -1.9123491924482132 -0.38617398388038954 4.3440238583795614e-017 -1.989163973802297 1.037948354854368e-014 1.2624196088572755e-016 -1.9123491924482132 0.38617398388041146 ; createNode transform -n "GEOMETRY" -p "WORLD"; setAttr ".ovdt" 2; setAttr ".ove" yes; createNode pointConstraint -n "GEOMETRY_pointConstraint1" -p "GEOMETRY"; addAttr -ci true -sn "w0" -ln "pivot_CTRLW0" -bt "W000" -dv 1 -min 0 -at "double"; setAttr -k on ".nds"; setAttr -k off ".v"; setAttr -k off ".tx"; setAttr -k off ".ty"; setAttr -k off ".tz"; setAttr -k off ".rx"; setAttr -k off ".ry"; setAttr -k off ".rz"; setAttr -k off ".sx"; setAttr -k off ".sy"; setAttr -k off ".sz"; setAttr ".erp" yes; setAttr -k on ".w0"; createNode orientConstraint -n "GEOMETRY_orientConstraint1" -p "GEOMETRY"; addAttr -ci true -sn "w0" -ln "pivot_CTRLW0" -bt "W000" -dv 1 -min 0 -at "double"; setAttr -k on ".nds"; setAttr -k off ".v"; setAttr -k off ".tx"; setAttr -k off ".ty"; setAttr -k off ".tz"; setAttr -k off ".rx"; setAttr -k off ".ry"; setAttr -k off ".rz"; setAttr -k off ".sx"; setAttr -k off ".sy"; setAttr -k off ".sz"; setAttr ".erp" yes; setAttr -k on ".w0"; createNode scaleConstraint -n "GEOMETRY_scaleConstraint1" -p "GEOMETRY"; addAttr -ci true -sn "w0" -ln "pivot_CTRLW0" -bt "W000" -dv 1 -min 0 -at "double"; setAttr -k on ".nds"; setAttr -k off ".v"; setAttr -k off ".tx"; setAttr -k off ".ty"; setAttr -k off ".tz"; setAttr -k off ".rx"; setAttr -k off ".ry"; setAttr -k off ".rz"; setAttr -k off ".sx"; setAttr -k off ".sy"; setAttr -k off ".sz"; setAttr ".erp" yes; setAttr -k on ".w0"; createNode transform -n "GRP" -p "GEOMETRY"; createNode transform -n "loRes" -p "GRP"; setAttr -l on ".tx"; setAttr -l on ".ty"; setAttr -l on ".tz"; setAttr -l on ".rx"; setAttr -l on ".ry"; setAttr -l on ".rz"; setAttr -l on ".sx"; setAttr -l on ".sy"; setAttr -l on ".sz"; createNode transform -n "hiRes" -p "GRP"; //createNode transform -name "approxOne_GRP" -parent "hiRes"; //createNode transform -name "approxTwo_GRP" -parent "hiRes"; //createNode transform -name "approxQuad2Tri_GRP" -parent "hiRes"; //createNode transform -name "approxTri2Quad_GRP" -parent "hiRes"; createNode reverse -n "reverse1"; connectAttr "GEOMETRY_pointConstraint1.ctx" "GEOMETRY.tx"; connectAttr "GEOMETRY_pointConstraint1.cty" "GEOMETRY.ty"; connectAttr "GEOMETRY_pointConstraint1.ctz" "GEOMETRY.tz"; connectAttr "GEOMETRY_orientConstraint1.crx" "GEOMETRY.rx"; connectAttr "GEOMETRY_orientConstraint1.cry" "GEOMETRY.ry"; connectAttr "GEOMETRY_orientConstraint1.crz" "GEOMETRY.rz"; connectAttr "GEOMETRY_scaleConstraint1.csx" "GEOMETRY.sx"; connectAttr "GEOMETRY_scaleConstraint1.csy" "GEOMETRY.sy"; connectAttr "GEOMETRY_scaleConstraint1.csz" "GEOMETRY.sz"; connectAttr "GEOMETRY.pim" "GEOMETRY_pointConstraint1.cpim"; connectAttr "GEOMETRY.rp" "GEOMETRY_pointConstraint1.crp"; connectAttr "GEOMETRY.rpt" "GEOMETRY_pointConstraint1.crt"; connectAttr "pivot_CTRL.t" "GEOMETRY_pointConstraint1.tg[0].tt"; connectAttr "pivot_CTRL.rp" "GEOMETRY_pointConstraint1.tg[0].trp"; connectAttr "pivot_CTRL.rpt" "GEOMETRY_pointConstraint1.tg[0].trt"; connectAttr "pivot_CTRL.pm" "GEOMETRY_pointConstraint1.tg[0].tpm"; connectAttr "GEOMETRY_pointConstraint1.w0" "GEOMETRY_pointConstraint1.tg[0].tw"; connectAttr "GEOMETRY.ro" "GEOMETRY_orientConstraint1.cro"; connectAttr "GEOMETRY.pim" "GEOMETRY_orientConstraint1.cpim"; connectAttr "pivot_CTRL.r" "GEOMETRY_orientConstraint1.tg[0].tr"; connectAttr "pivot_CTRL.ro" "GEOMETRY_orientConstraint1.tg[0].tro"; connectAttr "pivot_CTRL.pm" "GEOMETRY_orientConstraint1.tg[0].tpm"; connectAttr "GEOMETRY_orientConstraint1.w0" "GEOMETRY_orientConstraint1.tg[0].tw" ; connectAttr "GEOMETRY.pim" "GEOMETRY_scaleConstraint1.cpim"; connectAttr "pivot_CTRL.s" "GEOMETRY_scaleConstraint1.tg[0].ts"; connectAttr "pivot_CTRL.pm" "GEOMETRY_scaleConstraint1.tg[0].tpm"; connectAttr "GEOMETRY_scaleConstraint1.w0" "GEOMETRY_scaleConstraint1.tg[0].tw"; connectAttr "reverse1.ox" "loRes.v"; connectAttr "trans_CTRL.hiLo" "hiRes.v"; connectAttr "trans_CTRL.hiLo" "reverse1.ix"; connectAttr "reverse1.msg" ":defaultRenderUtilityList1.u" -na; }//end proc jpCreateDefaultRig global proc jpCreateStraightCompass() { string $transformNode = `createNode transform -n "straightCompass_CTRL"`; setAttr ".rp" -type "double3" 0 0 0 ; setAttr ".sp" -type "double3" 0 0 0 ; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 24 0 no 3 25 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1.5100141398616076 -8.8817841970012523e-016 1.006814637648324 2.0134374445789143 -8.8817841970012523e-016 0.00012788714515576949 1.5101420270067636 -8.8817841970012523e-016 -1.0066228069305903 1.5101100552204745 -8.8817841970012523e-016 -0.50326344578586157 0.50339133293101734 0 -0.50332738935843957 0.50345527650359512 0 -1.5100461116478967 1.0068146376483236 0 -1.510014139861608 0.00012788714515578456 8.8817841970012523e-016 -2.0134374445789143 -1.0066228069305903 0 -1.5101420270067636 -0.5032634457858618 0 -1.5101100552204745 -0.50332738935843957 0 -0.50339133293101734 -1.5100461116478974 0 -0.50345527650359534 -1.5100141398616078 0 -1.0068146376483238 -2.0134374445789138 0 -0.00012788714515554744 -1.5101420270067643 0 1.0066228069305905 -1.5101100552204747 0 0.50326344578586191 -0.50339133293101779 0 0.50332738935843979 -0.50345527650359556 0 1.5100461116478971 -1.006814637648324 0 1.510014139861608 -0.00012788714515619851 -8.8817841970012523e-016 2.0134374445789143 1.0066228069305898 0 1.5101420270067636 0.50326344578586135 0 1.5101100552204749 0.50332738935843913 0 0.50339133293101757 1.5100461116478967 -8.8817841970012523e-016 0.50345527650359545 1.5100141398616076 -8.8817841970012523e-016 1.006814637648324 ; select $transformNode; }//end proc jpCreateStraightCompass global proc jpCreateAngledCompass() { string $transformNode = `createNode transform -n "angledCompass_CTRL"`; setAttr ".rp" -type "double3" 0 0 0 ; setAttr ".sp" -type "double3" 0 0 0 ; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 24 0 no 3 25 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 0.61345279489009374 0 0.93174043503344905 -0.0070406582847747463 0 1.2372846876331001 -0.62401378231725702 1.7763568394002505e-015 0.92418659641619971 -0.31464713801541999 0 0.92607505607051255 -0.68243920933809854 1.7763568394002505e-015 0.59614592603596417 -0.92986009747670739 1.7763568394002505e-015 0.30365579294533801 -0.93162026204790049 1.7763568394002505e-015 0.61297696485361319 -1.237466577207351 1.7763568394002505e-015 -0.0075538386172491201 -0.92457960376312809 1.7763568394002505e-015 -0.62430772277948621 -0.92633976833431941 1.7763568394002505e-015 -0.3149865508712113 -0.67471756476095035 1.7763568394002505e-015 -0.60346978901168713 -0.30408615058825783 0 -0.92985197537913655 -0.61345279489009752 1.7763568394002505e-015 -0.93174043503344905 0.0070406582847731729 0 -1.237284687633099 0.62401378231725457 0 -0.92418659641619905 0.3146471380154171 0 -0.92607505607051177 0.68243920933809832 0 -0.59614592603596184 0.92986009747670584 0 -0.30365579294533795 0.93162026204789627 0 -0.61297696485361275 1.2374665772073488 0 0.0075538386172498972 0.92457960376312476 0 0.62430772277948698 0.92633976833431741 0 0.31498655087121241 0.67471756476094302 0 0.60346978901168802 0.30408615058825672 0 0.92985197537913766 0.61345279489009374 0 0.93174043503344905 ; select $transformNode; }//end proc jpCreateAngledCompass global proc jpCreateCircle() { circle -c 0 0 0 -nr 0 1 0 -sw 360 -r 1 -d 1 -ut 0 -tol 0.01 -s 16 -ch 1; objectMoveCommand; }//end proc jpCreateCircle global proc jpCreateLocator() { CreateLocator; }//end proc jpCreateLocator global proc jpCreateTriangle() { string $transformNode = `createNode transform -n "triangle_CTRL"`; createNode nurbsCurve -n ($transformNode + "Shape") -p $transformNode; setAttr -k off ".v"; setAttr ".cc" -type "nurbsCurve" 1 3 0 no 3 4 0 1.7320508075688772 3.4641016151377544 5.1961524227066311 4 6.1230317691118863e-017 1.5 -2.718365896964281e-016 -0.86602540378443871 2.7755575615628914e-016 -3.0615158845559481e-017 0.86602540378443837 -3.3306690738754696e-016 -3.0615158845559382e-017 6.7185298123495496e-016 1.4999999999999998 -2.7183658969642805e-016 ; select $transformNode; }//end proc jpCreateTriangle global proc jpCreateControls() { string $winName = "createControlsWin"; if (`window -exists $winName`) deleteUI $winName; window -t "CreateControls" //-wh 100 35 -rtf 1 $winName ; rowColumnLayout; button -h 25 -w 125 -en 1 -al "left" -l "Default_RIG" -c ("jpCreateDefaultRig()"); separator; button -h 25 -w 125 -en 1 -al "left" -l "Arrow" -c ("jpCreatePVArrow()"); button -h 25 -w 125 -en 1 -al "left" -l "Sphere" -c ("jpCreatePivotCTRLShape()"); button -h 25 -w 125 -en 1 -al "left" -l "Half Diamond" -c ("jpCreateTopTransCTRLShape()"); button -h 25 -w 125 -en 1 -al "left" -l "Cube" -c ("jpCreateCubeCTRLShape()"); button -h 25 -w 125 -en 1 -al "left" -l "Straight Compass" -c ("jpCreateStraightCompass()"); button -h 25 -w 125 -en 1 -al "left" -l "Angled Compass" -c ("jpCreateAngledCompass()"); button -h 25 -w 125 -en 1 -al "left" -l "Curved Compass" -c ("jpCreateCurvedCompass()"); button -h 25 -w 125 -en 1 -al "left" -l "Circle" -c ("jpCreateCircle()"); button -h 25 -w 125 -en 1 -al "left" -l "Triangle" -c ("jpCreateTriangle()"); button -h 25 -w 125 -en 1 -al "left" -l "Locator" -c ("jpCreateLocator()"); showWindow $winName; }//end proc jpCreateControls