true

Visualize focal mechanisms as beach balls.

Requires Z positive upward in Project settings.

]]>
TODO: move protosphere creation outside of loop, then copy to new name (c)2019 based on Wizard by A. Plesch, transcoded by Emerson // get the PropertyValues manager var PVMgr = skua.interfaces.findManager('PropertyValues'); // search through the list of Point properties the ones matching 'X', 'Y' and 'Z' // by definition there are only one for each, so get the first of the list (...[0]) var propertyX = PVMgr.findChildrenOf($Points$, 'X')[0]; var propertyY = PVMgr.findChildrenOf($Points$, 'Y')[0]; var propertyZ = PVMgr.findChildrenOf($Points$, 'Z')[0]; var propertyStrike = PVMgr.findChildrenOf($Points$, $Strike$)[0]; var propertyDip = PVMgr.findChildrenOf($Points$, $Dip$)[0]; var propertyRake = PVMgr.findChildrenOf($Points$, $Rake$)[0]; var propertyMagnitude = PVMgr.findChildrenOf($Points$, $Magnitude$)[0]; if($Name$) { var id = PVMgr.findChildrenOf($Points$, $Name$)[0]; } var all_props = PVMgr.findChildrenOf($Points$); Get Points properties CreateFaciesFromXMLDescription Create classification for colors Focal none 0.01 0.3 20 60 0.3 0.4 10 60 1 #0000ff 2.4 compressive 1 500 rt_no_pattern 0.3 50 0.01 0.3 20 60 0.3 0.4 10 60 2 #ffff00 2.4 tensile 1 500 rt_no_pattern 0.3 50 "]]> myjob "Create Beach Balls" propertyX.values.length Yes p in propertyX.values Create simple beach ball VSetCreateFromPoints false created VSet spurp <Used/> <Parameters> <name> <Value flag="1">"sphereurp"</Value> </name> <points> <Value flag="0">"88.5281 706.061 702.128 104.113 653.68 749.241 47.5108 668.831 739.331 54.0043 610.823 787.312 40.3139 722.078 687.802 158.712 692.208 703.8 174.134 638.095 749.591 143.29 740.26 656.449 213.095 723.81 655.836 72.1861 753.247 653.328 126.623 785.281 605.584 32.197 763.203 642.691 0 761.472 647.706 60.8225 799.134 594.237 109.307 825.974 552.31 180.195 812.121 554.596 52.4351 838.961 537.998 87.6082 869.697 485.586 0 822.944 566.44 38.2035 874.892 479.468 0 876.623 479.44 69.3182 899.567 426.253 143.885 884.848 442.752 0 914.719 402.58 58.8745 926.407 366.155 124.621 914.719 383.514 44.5887 950.216 302.468 104.762 940.693 322.441 0 954.545 294.968 41.2338 967.1 242.788 84.4156 961.905 259.825 0 976.19 213.602 62.3918 977.922 187.389 53.5173 989.177 118.912 112.175 984.848 131.715 133.225 970.996 196.361 95.3463 990.909 65.5522 159.686 982.684 65.999 42.803 995.238 52.1606 69.1017 997.403 0 0 996.104 81.2983 0 999.567 0 137.933 990.043 0 206.061 978.355 0 228.68 968.831 66.4669 273.214 961.905 0 181.169 974.459 131.621 251.623 958.442 132.535 203.788 958.442 198.335 155.303 951.948 262.592 273.972 940.693 199.042 320.725 937.662 132.758 225.379 937.662 264.014 294.318 918.182 264.083 175.541 929.004 324.779 245.942 912.554 325.844 195.455 901.299 385.806 314.502 891.342 325.446 361.688 894.372 262.797 265.314 883.117 386.087 338.636 854.113 394.034 214.556 869.697 444.349 287.933 842.857 454.144 236.201 825.974 511.073 360.335 810.823 460.762 409.848 819.481 399.503 308.55 796.537 519.124 379.004 762.338 523.975 253.517 785.281 564.366 325.595 753.247 570.992 269.913 740.26 615.296 395.076 716.45 574.309 447.078 723.377 525.595 341.071 706.061 620.079 411.418 665.801 622.13 285.281 692.208 662.67 356.169 653.68 667.329 299.729 638.095 708.785 425.379 610.823 667.329 369.426 597.835 711.097 479.058 620.779 620.079 464.286 674.026 574.309 491.396 564.502 662.67 436.742 553.68 708.785 541.396 572.294 615.296 552.11 514.286 655.836 528.139 628.139 570.992 589.015 577.922 564.366 512.446 680.087 523.975 574.621 632.468 519.124 564.015 684.848 460.762 633.279 580.519 511.073 645.725 524.242 554.596 625.054 634.632 454.144 681.764 580.519 444.349 612.5 684.848 394.034 549.892 733.333 399.503 671.266 632.468 386.087 656.71 680.087 325.446 718.777 577.922 385.806 727.002 524.242 442.752 706.223 628.139 325.844 752.489 572.294 324.779 689.665 674.026 264.083 638.041 723.377 262.797 737.771 620.779 264.014 718.831 665.801 199.043 782.089 564.502 262.592 794.372 514.286 322.441 766.126 610.823 198.335 809.037 553.68 196.361 744.751 653.68 132.535 790.476 597.835 131.621 695.13 706.061 132.758 668.29 716.45 198.286 717.587 690.043 66.7278 764.502 637.662 66.4506 667.208 738.961 66.6512 689.61 723.81 0 643.669 753.247 133.222 612.716 783.983 66.7542 615.422 762.338 198.529 589.069 796.537 133.037 549.567 810.823 200.316 553.626 827.273 68.0175 583.117 812.121 0 520.887 842.857 133.489 490.855 865.801 68.0527 479.383 854.113 200.316 506.602 819.481 266.336 449.188 883.117 133.037 406.71 891.342 198.529 426.245 899.567 66.7094 465.53 884.848 0 385.877 912.554 133.222 362.716 927.273 66.6411 342.1 918.182 198.286 296.32 950.216 66.7207 339.015 940.693 0 403.247 914.719 0 435.606 859.74 265.45 387.067 859.74 332.256 459.794 822.511 334.053 481.494 779.221 400.864 530.032 779.221 334.053 429.924 774.026 464.093 500.162 730.736 464.093 595.942 730.736 332.256 574.242 774.026 265.45 525.595 850.216 0 637.879 769.697 0 737.987 674.459 0 782.846 621.645 0 807.359 582.251 66.0039 823.972 566.234 0 830.519 540.693 131.715 846.429 524.242 65.8639 846.537 494.372 195.964 822.403 505.628 259.825 866.613 480.952 131.166 886.688 428.571 172.487 865.206 441.126 237.167 904.058 413.42 106.466 921.212 359.307 147.375 880.357 464.935 61.3545 911.851 402.597 46.051 861.147 507.792 0 917.045 396.104 1.73144e-05 938.636 344.156 0 932.522 346.753 77.7328 953.301 290.476 51.1655 949.567 288.312 121.113 933.766 303.896 187.383 966.829 232.468 81.6104 958.983 232.468 160.58 971.645 235.498 0 955.898 290.043 1.26784e-05 980.574 176.19 50.9434 983.117 177.056 7.73953e-06 976.732 175.325 121.161 987.662 117.749 79.943 992.803 117.749 0 979.87 117.749 159.572 963.853 175.325 199.28 990.855 58.8745 119.047 978.355 58.8745 197.223 994.805 58.8745 50.2688 996.645 0 78.4388 997.186 58.8745 2.57362e-06 999.729 0 0 987.446 0 156.394 972.132 0 233.385 959.74 58.8745 273.636 950.812 0 308.937 964.123 117.316 237.025 943.29 129.004 305.133 944.859 187.879 267.312 941.775 245.455 228.841 920.833 199.134 334.605 919.697 257.143 295.928 917.478 139.827 371.652 937.013 70.1299 341.347 892.262 208.658 399.665 892.911 267.532 361.498 884.74 140.26 443.842 856.872 208.658 470.795 907.197 70.1299 414.165 871.32 70.1299 485.082 923.647 0 382.584 890.801 0 453.873 852.435 0 522.363 830.411 70.1299 552.275 808.82 0 587.633 846.429 139.827 513.242 800.758 140.693 581.801 814.177 210.823 540.51 821.753 279.221 496.313 765.639 210.823 607.321 749.675 139.827 646.41 776.407 280.087 564.108 725.974 279.221 628.15 782.9 344.156 517.836 825.541 341.991 448.143 734.416 344.156 584.564 738.636 407.359 536.645 681.331 341.991 646.672 670.671 276.19 688.013 687.771 406.061 601.345 641.45 401.299 653.328 690.043 467.1 552.31 738.528 467.1 485.586 645.779 464.502 605.584 598.052 459.307 656.449 591.991 394.805 702.128 600.379 520.779 606.668 548.052 451.515 703.8 501.245 505.628 701.864 538.095 385.281 749.241 492.911 441.126 749.591 580.736 327.273 745.145 524.892 316.45 789.907 632.955 336.364 696.856 619.751 267.532 737.521 655.844 208.658 725.111 602.76 199.134 772.375 712.554 208.658 669.438 695.509 140.26 704.289 730.628 70.1299 678.801 674.242 70.1299 734.82 781.872 70.1299 619.081 760.227 0 649.28 742.045 0 668.94 706.926 0 706.923 649.297 0 760.209 614.177 70.1299 785.695 587.608 0 808.807 636.959 139.827 757.739 581.71 129.004 802.808 546.212 187.879 816.021 565.639 257.143 783.249 523.377 117.316 843.693 556.818 58.8745 828.232 487.392 175.325 855.115 508.658 245.455 824.961 454.545 117.749 882.608 417.045 175.325 891.511 489.881 58.8745 869.5 419.426 58.8745 905.597 522.348 0 852.419 453.896 0 890.776 382.576 0 923.64 346.807 58.8745 935.807 308.929 0 950.81 382.9 117.316 916.007 306.764 117.749 944.188 342.478 177.056 922.443 375.866 234.632 896.169 265.152 177.056 947.576 300.271 235.498 924.065 228.626 117.316 966.142 269.481 58.8745 960.939 186.58 175.325 966.393 222.673 234.632 945.953 151.028 117.749 981.229 108.333 175.325 978.277 192.965 58.8745 979.172 114.773 58.8745 991.391 233.387 0 972.118 156.385 0 987.432 78.4632 0 996.659 47.4026 60.6061 995.124 0 0 999.741 72.5108 117.316 990.182 33.7662 134.199 988.288 49.8918 179.654 980.553 73.3766 245.455 966.393 0 193.939 980.141 32.0346 245.022 967.456 47.4567 313.42 946.258 110.335 303.896 945.953 0 262.771 964.393 31.4394 378.788 922.729 76.2987 374.026 924.065 0 386.147 921.988 50.487 441.126 893.581 38.3117 503.03 861.7 0 495.238 868.01 75.2165 494.372 865.647 109.957 428.571 896.568 65.855 554.113 827.08 131.385 540.693 830.597 0 563.203 825.547 119.102 597.835 792.444 187.284 583.55 789.965 199.513 525.108 826.895 241.937 621.645 744.534 228.03 674.459 701.864 254.6 566.234 783.64 312.771 583.55 749.193 266.126 507.792 818.995 210.173 464.935 859.625 324.621 525.108 786.229 335.227 464.935 818.995 381.926 540.693 749.193 392.532 480.952 783.64 447.944 494.372 744.534 380.628 413.42 826.895 322.024 396.104 859.625 438.041 428.571 789.965 424.838 359.307 830.597 481.385 374.026 792.444 466.775 303.896 830.143 408.604 288.312 865.647 449.08 232.468 862.445 334.037 290.043 896.568 366.18 342.857 864.705 290.043 344.156 892.695 244.751 396.104 884.736 276.299 447.186 850.43 212.013 342.857 914.806 256.764 290.043 921.68 178.084 413.42 892.695 144.535 359.307 921.68 178.247 288.312 940.498 143.615 232.468 961.689 143.019 480.952 864.705 0 639.394 767.513 0 703.03 709.874 0 126.84 991.579 687.987 525.541 499.87 775.487 464.502 427.024 762.5 520.779 383.514 784.47 406.061 468.308 819.589 401.299 408.18 858.333 336.364 386.63 861.58 276.19 425.215 850.703 394.805 346.063 809.145 459.307 365.932 888.149 327.273 322.057 878.842 385.281 280.247 913.474 316.45 255.113 838.69 451.515 303.722 902.435 374.026 212.968 197.132 769.697 606.668 162.392 850.216 499.87 891.071 452.814 0 0 325.108 944.777 0 732.468 679.062 0 529.437 847.161 0 671.861 739.488 0 966.234 254.454 0 601.732 797.181 0 850.649 523.573 0 998.268 40.6602 0 935.931 349.288 0 896.104 441.263 0 441.126 896.204 0 792.641 607.471 0 987.879 147.744 0 63.6364 997.04 0 228.571 972.521"</Value> </points> <category/> <feature/> <modeling_role/> <coordinate_system_name> <Value flag="0">"Default_depth"</Value> </coordinate_system_name> </Parameters> </Command> <Command Type="CLIType"> <Text>TSurfCreateFromAtomicGroup</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>TSurf</ResultType> <ResultVariable>spuru</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <points> <Value flag="1">spurp</Value> </points> <name> <Value flag="1">"sphereuru"</Value> </name> <use_normal> <Value flag="0">"false"</Value> </use_normal> <normal> <Value flag="0">0.</Value> <Value flag="0">0.</Value> <Value flag="0">1.</Value> </normal> <dissociate_vertices> <Value flag="0">"true"</Value> </dissociate_vertices> <copy_properties> <Value flag="0">"true"</Value> </copy_properties> </Parameters> </Command> <Command Type="CLIType"> <Text>TSurfDecimate</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">spuru</Value> </on> <tolerance> <Value flag="1">$Resolution$</Value> </tolerance> <length_unit> <Value flag="0">"Z unit"</Value> </length_unit> <convergence> <Value flag="0">0.0</Value> </convergence> <keep_borders> <Value flag="0">"false"</Value> </keep_borders> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjApplyScriptOnProperty</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">spuru</Value> </on> <region> <Value flag="0">"everywhere"</Value> </region> <properties> <Value flag="0">""</Value> </properties> <script> <Value flag="0">"{ X/=10;Y/=10;Z/=10; } "</Value> </script> <aliases> <Value flag="0">""</Value> </aliases> <check_no_data_values_automatically> <Value flag="0">"true"</Value> </check_no_data_values_automatically> <file_name> <Value flag="0">"None"</Value> </file_name> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjCopy</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>GObj</ResultType> <ResultVariable>spurb</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <gobj> <Value flag="1">spuru</Value> </gobj> <name> <Value flag="1">"sphereurb"</Value> </name> <copy_properties> <Value flag="0">"false"</Value> </copy_properties> <copy_regions> <Value flag="0">"false"</Value> </copy_regions> <copy_style> <Value flag="0">"true"</Value> </copy_style> <copy_points> <Value flag="0">"true"</Value> </copy_points> <copy_constraints> <Value flag="0">"false"</Value> </copy_constraints> <copy_scenarios> <Value flag="0">"true"</Value> </copy_scenarios> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjApplyScriptOnProperty</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">spurb</Value> </on> <region> <Value flag="0">"everywhere"</Value> </region> <properties> <Value flag="0">""</Value> </properties> <script> <Value flag="0">"{ Z*=-1; } "</Value> </script> <aliases> <Value flag="0">""</Value> </aliases> <check_no_data_values_automatically> <Value flag="0">"true"</Value> </check_no_data_values_automatically> <file_name> <Value flag="0">"None"</Value> </file_name> </Parameters> </Command> <Command Type="CLIType"> <Text>TSurfCreateFromTSurfs</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>TSurf</ResultType> <ResultVariable>spur</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <name> <Value flag="1">"sphereur"</Value> </name> <surfaces> <Value flag="1">[spuru,spurb]</Value> </surfaces> <dissociate_vertices> <Value flag="0">"true"</Value> </dissociate_vertices> <merge> <Value flag="0">"false"</Value> </merge> <exactly> <Value flag="0">"true"</Value> </exactly> <copy_constraints> <Value flag="0">"false"</Value> </copy_constraints> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjCopy</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>GObj</ResultType> <ResultVariable>spul</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <gobj> <Value flag="1">spur</Value> </gobj> <name> <Value flag="1">"sphereul"</Value> </name> <copy_properties> <Value flag="0">"false"</Value> </copy_properties> <copy_regions> <Value flag="0">"false"</Value> </copy_regions> <copy_style> <Value flag="0">"true"</Value> </copy_style> <copy_points> <Value flag="0">"true"</Value> </copy_points> <copy_constraints> <Value flag="0">"false"</Value> </copy_constraints> <copy_scenarios> <Value flag="0">"true"</Value> </copy_scenarios> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjApplyScriptOnProperty</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">spul</Value> </on> <region> <Value flag="0">"everywhere"</Value> </region> <properties> <Value flag="0">""</Value> </properties> <script> <Value flag="0">"{ X*=-1; } "</Value> </script> <aliases> <Value flag="0">""</Value> </aliases> <check_no_data_values_automatically> <Value flag="0">"true"</Value> </check_no_data_values_automatically> <file_name> <Value flag="0">"None"</Value> </file_name> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjCopy</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>GObj</ResultType> <ResultVariable>spll</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <gobj> <Value flag="1">spul</Value> </gobj> <name> <Value flag="1">"spherell"</Value> </name> <copy_properties> <Value flag="0">"false"</Value> </copy_properties> <copy_regions> <Value flag="0">"false"</Value> </copy_regions> <copy_style> <Value flag="0">"true"</Value> </copy_style> <copy_points> <Value flag="0">"true"</Value> </copy_points> <copy_constraints> <Value flag="0">"false"</Value> </copy_constraints> <copy_scenarios> <Value flag="0">"true"</Value> </copy_scenarios> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjApplyScriptOnProperty</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">spll</Value> </on> <region> <Value flag="0">"everywhere"</Value> </region> <properties> <Value flag="0">""</Value> </properties> <script> <Value flag="0">"{ Y*=-1; } "</Value> </script> <aliases> <Value flag="0">""</Value> </aliases> <check_no_data_values_automatically> <Value flag="0">"true"</Value> </check_no_data_values_automatically> <file_name> <Value flag="0">"None"</Value> </file_name> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjCopy</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>GObj</ResultType> <ResultVariable>splr</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <gobj> <Value flag="1">spur</Value> </gobj> <name> <Value flag="1">"spherlr"</Value> </name> <copy_properties> <Value flag="0">"false"</Value> </copy_properties> <copy_regions> <Value flag="0">"false"</Value> </copy_regions> <copy_style> <Value flag="0">"true"</Value> </copy_style> <copy_points> <Value flag="0">"true"</Value> </copy_points> <copy_constraints> <Value flag="0">"false"</Value> </copy_constraints> <copy_scenarios> <Value flag="0">"true"</Value> </copy_scenarios> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjApplyScriptOnProperty</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">splr</Value> </on> <region> <Value flag="0">"everywhere"</Value> </region> <properties> <Value flag="0">""</Value> </properties> <script> <Value flag="0">"{ Y*=-1; } "</Value> </script> <aliases> <Value flag="0">""</Value> </aliases> <check_no_data_values_automatically> <Value flag="0">"true"</Value> </check_no_data_values_automatically> <file_name> <Value flag="0">"None"</Value> </file_name> </Parameters> </Command> <Command Type="CLIType"> <Text>GetUnusedGObjName</Text> <Result> <ResultIsArray>false</ResultIsArray> <ResultKey>unused_name</ResultKey> <ResultType>char</ResultType> <ResultVariable>cbq_name</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <initial_name> <Value flag="1">"compressive_beachball_quadrant"</Value> </initial_name> </Parameters> </Command> <Command Type="CLIType"> <Text>PropertyCreate</Text> <Result> <ResultIsArray>true</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>Entity</ResultType> <ResultVariable>focal</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <gobj> <Value flag="1">[spur,spll,spul,splr]</Value> </gobj> <property_name> <Value flag="1">"Focal"</Value> </property_name> <property_kind> <Value flag="1">"Focal"</Value> </property_kind> <no_datavalue_specified> <Value flag="0">"true"</Value> </no_datavalue_specified> <no_datavalue> <Value flag="0">"default (-99999)"</Value> </no_datavalue> <number_of_elements> <Value flag="0">1</Value> </number_of_elements> <storage> <Value flag="0">"Memory"</Value> </storage> <interpolation_method> <Value flag="0">"Linear"</Value> </interpolation_method> <force_float_property> <Value flag="0">"false"</Value> </force_float_property> <log_set> <Value flag="0">""</Value> </log_set> <sampling_rate> <Value flag="0">"0:ft"</Value> </sampling_rate> <start_md> <Value flag="0">"0:ft"</Value> </start_md> <end_md> <Value flag="0">"0:ft"</Value> </end_md> </Parameters> </Command> <Command Type="CLIType"> <Text>PropertySetValue</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">[spur,spll]</Value> </on> <property> <Value flag="1">focal</Value> </property> <value> <Value flag="0"><![CDATA["value=1&unit=none&kind=Focal"]]></Value> </value> <region> <Value flag="0">"everywhere"</Value> </region> </Parameters> </Command> <Command Type="CLIType"> <Text>PropertySetValue</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">[spul,splr]</Value> </on> <property> <Value flag="1">focal</Value> </property> <value> <Value flag="0"><![CDATA["value=2&unit=none&kind=Focal"]]></Value> </value> <region> <Value flag="0">"everywhere"</Value> </region> </Parameters> </Command> <Command Type="If"> <Text>$Name$</Text> <Command Type="JavaScript"> <Text>var ball_name = id.values[p].toString();</Text> <Title>name var ball_name = "surf_"+p; JavaScript TSurfCreateFromTSurfs false created TSurf ball <Used/> <Parameters> <name> <Value flag="1">ball_name</Value> </name> <surfaces> <Value flag="1">[spur,spll,spul,splr]</Value> </surfaces> <dissociate_vertices> <Value flag="0">"true"</Value> </dissociate_vertices> <merge> <Value flag="0">"false"</Value> </merge> <exactly> <Value flag="0">"true"</Value> </exactly> <copy_constraints> <Value flag="0">"false"</Value> </copy_constraints> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjDestroy</Text> <Comment/> <Title/> <Used/> <Parameters> <objects> <Value flag="1">[spurp,spuru,spurb,spur,,spll,spul,splr]</Value> </objects> </Parameters> </Command> </Command> <Command Type="EndOfScope"/> <Command Type="JavaScript"> <Text>var x = propertyX.values[p]; var y = propertyY.values[p]; var z = propertyZ.values[p]; var strike = -propertyStrike.values[p]; if($is_Dip_Direction$) { strike = 90 - propertyStrike.values[p]; } var dip = propertyDip.values[p] - 90; var rake = propertyRake.values[p]; var magnitude = propertyMagnitude.values[p]; </Text> <Title>JavaScript GObjsMove <Used/> <Parameters> <objects> <Value flag="1">ball</Value> </objects> <translate> <Value flag="0">"false"</Value> </translate> <translation> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> </translation> <rotate> <Value flag="0">"true"</Value> </rotate> <origin> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> </origin> <axis> <Value flag="0">1</Value> <Value flag="0">0.0</Value> <Value flag="0">0</Value> </axis> <angle> <Value flag="1">rake</Value> </angle> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjsMove</Text> <Comment/> <Title/> <Used/> <Parameters> <objects> <Value flag="1">ball</Value> </objects> <translate> <Value flag="0">"false"</Value> </translate> <translation> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> </translation> <rotate> <Value flag="0">"true"</Value> </rotate> <origin> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> </origin> <axis> <Value flag="0">0</Value> <Value flag="0">1</Value> <Value flag="0">0</Value> </axis> <angle> <Value flag="1">dip</Value> </angle> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjsMove</Text> <Comment/> <Title/> <Used/> <Parameters> <objects> <Value flag="1">ball</Value> </objects> <translate> <Value flag="0">"false"</Value> </translate> <translation> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> </translation> <rotate> <Value flag="0">"true"</Value> </rotate> <origin> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> <Value flag="0">0.0</Value> </origin> <axis> <Value flag="0">0</Value> <Value flag="0">0</Value> <Value flag="0">1</Value> </axis> <angle> <Value flag="1">strike</Value> </angle> </Parameters> </Command> <Command Type="CLIType"> <Text>GObjApplyScriptOnProperty</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">ball</Value> </on> <region> <Value flag="0">"everywhere"</Value> </region> <properties> <Value flag="1">skua.script_macro_alias_encode({"$Scaling_Factor$":$Scaling_Factor$})</Value> <Value flag="1">skua.script_macro_alias_encode({"magnitude":magnitude})</Value> <Value flag="1">skua.script_macro_alias_encode({"x":x})</Value> <Value flag="1">skua.script_macro_alias_encode({"y":y})</Value> <Value flag="1">skua.script_macro_alias_encode({"z":z})</Value> </properties> <script> <Value flag="1">"{ X=X*magnitude*$Scaling_Factor$+x; Y=Y*magnitude*$Scaling_Factor$+y; Z=Z*magnitude*$Scaling_Factor$+z; } "</Value> </script> <aliases> <Value flag="0">""</Value> </aliases> <check_no_data_values_automatically> <Value flag="0">"true"</Value> </check_no_data_values_automatically> <file_name> <Value flag="0">"None"</Value> </file_name> </Parameters> </Command> <Command Type="For"> <Text>i in all_props</Text> <Command Type="If"> <Text><![CDATA[all_props[i].title != "X" && all_props[i].title != "Y" && all_props[i].title != "Z"]]></Text> <Command Type="CLIType"> <Text>PropertyCreate</Text> <Result> <ResultIsArray>true</ResultIsArray> <ResultKey>created</ResultKey> <ResultType>Entity</ResultType> <ResultVariable>prop</ResultVariable> </Result> <Comment/> <Title/> <Used/> <Parameters> <gobj> <Value flag="1">ball</Value> </gobj> <property_name> <Value flag="1">all_props[i].title</Value> </property_name> <property_kind> <Value flag="1">all_props[i].propertyType.title</Value> </property_kind> <no_datavalue_specified> <Value flag="0">"true"</Value> </no_datavalue_specified> <no_datavalue> <Value flag="0">"default (-99999)"</Value> </no_datavalue> <number_of_elements> <Value flag="0">1</Value> </number_of_elements> <storage> <Value flag="0">"Memory"</Value> </storage> <interpolation_method> <Value flag="0">"Linear"</Value> </interpolation_method> <force_float_property> <Value flag="0">"false"</Value> </force_float_property> <log_set> <Value flag="0">""</Value> </log_set> <sampling_rate> <Value flag="0">"0:ft"</Value> </sampling_rate> <start_md> <Value flag="0">"0:ft"</Value> </start_md> <end_md> <Value flag="0">"0:ft"</Value> </end_md> </Parameters> </Command> <Command Type="CLIType"> <Text>PropertySetValue</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">ball</Value> </on> <property> <Value flag="1">prop</Value> </property> <value> <Value flag="1">all_props[i].values[p]</Value> </value> <region> <Value flag="0">"everywhere"</Value> </region> </Parameters> </Command> </Command> <Command Type="EndOfScope"/> </Command> <Command Type="EndOfScope"/> <Command Type="Blocks"> <Title>Display var focal_prop = PVMgr.findChildrenOf(ball, 'Focal')[0]; JavaScript CameraDisplayExclusiveSubEntities <Used/> <Parameters> <on> <Value flag="0">"DefaultCamera"</Value> </on> <objects> <Value flag="1">focal_prop</Value> </objects> <show> <Value flag="0">"true"</Value> </show> <parent_level> <Value flag="0">1</Value> </parent_level> <exclusive_attr> <Value flag="0">"*painted*variable"</Value> </exclusive_attr> <ctrler_attr> <Value flag="0">"*painted"</Value> </ctrler_attr> </Parameters> </Command> <Command Type="CLIType"> <Text>StyleSetAttribute</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">ball</Value> </on> <viewer> <Value flag="1">'//$default'</Value> </viewer> <attribute> <Value flag="0">"*border"</Value> </attribute> <value> <Value flag="0">"false"</Value> </value> </Parameters> </Command> <Command Type="CLIType"> <Text>StyleUpdate</Text> <Comment/> <Title/> <Used/> <Parameters> <on> <Value flag="1">ball</Value> </on> <viewer> <Value flag="1">'//$default'</Value> </viewer> </Parameters> </Command> <Command Type="CLIType"> <Text>CameraUpdateAll</Text> <Comment/> <Title/> <Used/> <Parameters/> </Command> </Command> <Command Type="EndOfScope"/> <Command Type="JobTracerProgress"> <Text>myjob</Text> <JSCode>return false</JSCode> <VariableNumber>p</VariableNumber> </Command> </Command> <Command Type="EndOfScope"> <Used/> </Command> </Content> <Variables> <Variable> <alias>$Points$</alias> <built-in/> <cmdName>GObjCopy</cmdName> <cmdParamEltIndex>0</cmdParamEltIndex> <cmdParamName>gobj</cmdParamName> <comment/> <default_value/> <dependency/> <dependencyDependentValue/> <multi-selection>No</multi-selection> <optional>No</optional> <type>VSet</type> </Variable> <Variable> <alias>$Strike$</alias> <default_value>dipdirection</default_value> <dependency>$Points$.properties</dependency> <type>String</type> </Variable> <Variable> <alias>$is_Dip_Direction$</alias> <built-in/> <cmdName/> <cmdParamEltIndex/> <cmdParamName/> <comment/> <default_value>true</default_value> <dependency/> <dependencyDependentValue/> <multi-selection>No</multi-selection> <optional/> <type>Boolean</type> </Variable> <Variable> <alias>$Dip$</alias> <default_value>dip</default_value> <dependency>$Points$.properties</dependency> <type>String</type> </Variable> <Variable> <alias>$Rake$</alias> <default_value>rake</default_value> <dependency>$Points$.properties</dependency> <type>String</type> </Variable> <Variable> <alias>$Magnitude$</alias> <default_value>magnitude</default_value> <dependency>$Points$.properties</dependency> <type>String</type> </Variable> <Variable> <alias>$Name$</alias> <default_value/> <dependency>$Points$.properties</dependency> <optional>Yes</optional> <type>String</type> </Variable> <Variable> <alias>$Scaling_Factor$</alias> <cmdName>GObjApplyScriptOnProperty</cmdName> <cmdParamEltIndex>0</cmdParamEltIndex> <cmdParamName>properties</cmdParamName> <default_value>20</default_value> <dependency/> <dependencyDependentValue/> <type>Integer</type> </Variable> <Variable> <alias>$Resolution$</alias> <cmdName>TSurfDecimate</cmdName> <cmdParamEltIndex>0</cmdParamEltIndex> <cmdParamName>tolerance</cmdParamName> <default_value>50</default_value> <dependency/> <dependencyDependentValue/> <type>Double</type> </Variable> <Variable> <alias>$Label$</alias> <default_value>"Enter a value between 0 (smooth) and 100 (rough)."</default_value> <dependency/> <type>Label</type> </Variable> <Variable> <alias>$RUN.JR$</alias> <built-in>true</built-in> <comment>Internal variable for Jacta realizations</comment> <default_value>0</default_value> <type>Integer</type> </Variable> <Variable> <alias>$RUN.I$</alias> <built-in>true</built-in> <comment>Internal variable for simulation index</comment> <default_value>1</default_value> <type>Integer</type> </Variable> <Variable> <alias>$RUN.N$</alias> <built-in>true</built-in> <comment>Internal variable for number of simulations</comment> <default_value>1</default_value> <type>Integer</type> </Variable> </Variables> <DialogSpecifications> <DialogSpecification> <Text><![CDATA[IndentBox { label="<b> PointSet Structural Properties</b>" Strike is_Dip_Direction} IndentBox {Dip} IndentBox {Rake} IndentBox {Magnitude} IndentBox {Name} Extension {Scaling_Factor Resolution Label }]]></Text> </DialogSpecification> </DialogSpecifications> </UserMacroCommand>