diff options
author | Marius Giurgi <marius.giurgi@gmail.com> | 2015-12-07 06:33:06 +0300 |
---|---|---|
committer | Marius Giurgi <marius.giurgi@gmail.com> | 2015-12-07 06:33:06 +0300 |
commit | 80853daea9394b9135bef342eefa0150a1c1a5f8 (patch) | |
tree | a2c39b602c2b655ac2ccf8020d6cb4e5d14c8b3f /presets/operator/curve.torus_knot_plus | |
parent | 2dceffb85ab6b7b67d46774b273bb3a822055251 (diff) |
Fix T46885 : Update Torus Knot Plus - New features, code cleanup & UI modifications
Reorganize the UI into categories and renamed some settings, clean up and document the code and add new feautures, main options and plus options (e.g. adaptive curve resolution, curve type, radius settings and multi-link generation).
Diffstat (limited to 'presets/operator/curve.torus_knot_plus')
10 files changed, 380 insertions, 0 deletions
diff --git a/presets/operator/curve.torus_knot_plus/13x8_wicker_globe.py b/presets/operator/curve.torus_knot_plus/13x8_wicker_globe.py new file mode 100644 index 00000000..853a7144 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/13x8_wicker_globe.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = False +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.029999999329447746 +op.geo_bRes = 3 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 13 +op.torus_q = 8 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 1 +op.torus_v = 1 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 0.0 +op.torus_r = 1.0 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 1.0 +op.torus_res = 767 +op.segment_res = 12 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = True diff --git a/presets/operator/curve.torus_knot_plus/7x6.py b/presets/operator/curve.torus_knot_plus/7x6.py new file mode 100644 index 00000000..3398214c --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/7x6.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = False +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 7 +op.torus_q = 6 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 1 +op.torus_v = 1 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 1.0 +op.torus_r = 0.25 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 1.0 +op.torus_res = 360 +op.segment_res = 12 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = True diff --git a/presets/operator/curve.torus_knot_plus/9x9_color.py b/presets/operator/curve.torus_knot_plus/9x9_color.py new file mode 100644 index 00000000..a0622a92 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/9x9_color.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = False +op.absolute_location = False +op.use_colors = True +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 9 +op.torus_q = 9 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 1 +op.torus_v = 1 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 1.0 +op.torus_r = 0.25 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 1.0 +op.torus_res = 51 +op.segment_res = 12 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = True diff --git a/presets/operator/curve.torus_knot_plus/braided_coil.py b/presets/operator/curve.torus_knot_plus/braided_coil.py new file mode 100644 index 00000000..b881f394 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/braided_coil.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = True +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 7 +op.torus_q = 6 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 143 +op.torus_v = 246 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 1.0 +op.torus_r = 0.3100000023841858 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 1.0 +op.torus_res = 143 +op.segment_res = 12 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = False diff --git a/presets/operator/curve.torus_knot_plus/flower_mesh_(2d).py b/presets/operator/curve.torus_knot_plus/flower_mesh_(2d).py new file mode 100644 index 00000000..863be9e9 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/flower_mesh_(2d).py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = True +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 1 +op.torus_q = 1 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 248 +op.torus_v = 344 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 0.0 +op.torus_r = 2.0 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 0.0 +op.torus_res = 198 +op.segment_res = 33 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = False diff --git a/presets/operator/curve.torus_knot_plus/slinky_knot.py b/presets/operator/curve.torus_knot_plus/slinky_knot.py new file mode 100644 index 00000000..c1e32914 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/slinky_knot.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.rotation = (0.0, 0.0, 0.0) +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.options_plus = True +op.absolute_location = False +op.use_colors = True +op.colorSet = '2' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.017999999225139618 +op.geo_bRes = 3 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 10 +op.torus_q = 100 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 1 +op.torus_v = 1 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 1.0 +op.torus_r = 0.4000000059604645 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 1.0 +op.torus_res = 208 +op.segment_res = 12 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = True diff --git a/presets/operator/curve.torus_knot_plus/snowflake_(2d).py b/presets/operator/curve.torus_knot_plus/snowflake_(2d).py new file mode 100644 index 00000000..ad0c0a93 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/snowflake_(2d).py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = True +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 10 +op.torus_q = 13 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 49 +op.torus_v = 84 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 0.0 +op.torus_r = 2.0 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 0.0 +op.torus_res = 175 +op.segment_res = 33 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = False diff --git a/presets/operator/curve.torus_knot_plus/sun_cross_(2d).py b/presets/operator/curve.torus_knot_plus/sun_cross_(2d).py new file mode 100644 index 00000000..f3a49b0d --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/sun_cross_(2d).py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = True +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 11 +op.torus_q = 8 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 268 +op.torus_v = 438 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 0.0 +op.torus_r = 2.0 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 0.0 +op.torus_res = 193 +op.segment_res = 33 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = False diff --git a/presets/operator/curve.torus_knot_plus/tripple_dna.py b/presets/operator/curve.torus_knot_plus/tripple_dna.py new file mode 100644 index 00000000..ec3ce35b --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/tripple_dna.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.rotation = (0.0, 0.0, 0.0) +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.options_plus = True +op.absolute_location = False +op.use_colors = True +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.03999999910593033 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 12 +op.torus_q = 14 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 1 +op.torus_v = 33 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 1.7200000286102295 +op.torus_r = 0.25 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 1.0 +op.torus_res = 526 +op.segment_res = 40 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = True diff --git a/presets/operator/curve.torus_knot_plus/wicker_basket.py b/presets/operator/curve.torus_knot_plus/wicker_basket.py new file mode 100644 index 00000000..b4367956 --- /dev/null +++ b/presets/operator/curve.torus_knot_plus/wicker_basket.py @@ -0,0 +1,38 @@ +import bpy +op = bpy.context.active_operator + +op.location = (0.0, 0.0, 0.0) +op.view_align = False +op.rotation = (0.0, 0.0, 0.0) +op.options_plus = True +op.absolute_location = False +op.use_colors = False +op.colorSet = '1' +op.random_colors = False +op.saturation = 0.75 +op.geo_surface = True +op.geo_bDepth = 0.019999999552965164 +op.geo_bRes = 2 +op.geo_extrude = 0.0 +op.geo_offset = 0.0 +op.torus_p = 4 +op.torus_q = 1 +op.flip_p = False +op.flip_q = False +op.multiple_links = True +op.torus_u = 377 +op.torus_v = 233 +op.torus_rP = 0.0 +op.torus_sP = 0.0 +op.mode = 'MAJOR_MINOR' +op.torus_R = 1.0 +op.torus_r = 0.10999999940395355 +op.torus_iR = 0.75 +op.torus_eR = 1.25 +op.torus_s = 1.0 +op.torus_h = 10.0 +op.torus_res = 457 +op.segment_res = 33 +op.outputType = 'BEZIER' +op.handleType = 'AUTOMATIC' +op.adaptive_resolution = False |