# Flanges/Couplings

This operator lets you generate flanges or couplings for curve objects made from using **Random Tubes** or **Random Cables**. This only works for curve objects and must be used on the cables or tubes  before converting them to meshes.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FSzmFKgHCsclwCJ1qVR4X%2Fblender_I8zk7iaCXZ.png?alt=media&#x26;token=0d0bc9db-4eae-41d7-a741-c092c20da4fc" alt=""><figcaption><p>Figure 1</p></figcaption></figure>

Here are the redo properties and what they do:

### Type

Allows you to select what screws you want to use.

* **Basic**: Creates a basic cylinder with its own properteis **Depth** and **Segment** to design it.
* **Custom**: Allows you to use 8of the custom flanges/couplings meshesthat comes with the operator.
* **Mesh**: Allows you to select from any mesh in the scene to serve as the flange or coupling.
* **Collection**: Allows you to assign a collection's mesh objects as the screws.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FaIXeK13lKeZ0Daw1nY7W%2Fblender_mIlQM2ETBJ.gif?alt=media&#x26;token=ba414ddc-ea9d-4280-9e75-4223a670b7d3" alt=""><figcaption><p>Figure 2</p></figcaption></figure>

Using the basic option creates a primitive cylinder with default segments of 6 to act as the flange. This will come with its own properties like depth and segment to change its shape.

### Import Mesh

Only shows up when you use **Type: Custom**. This allows you to choose from the 8 custom flanges/couplings models that comes with the operator.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FRBSXOCixnpetcEExOJ7X%2Fblender_hvKRuHpo0e.gif?alt=media&#x26;token=cddcad81-6f43-4ab5-9744-858b8509eb57" alt=""><figcaption><p>Figure 3</p></figcaption></figure>

### Mesh

Only shows up when you use **Type: Mesh**. This allows you to select from any mesh in the scene to act as the flange or coupling object.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FpFY8yAGv2G4vahpps2Je%2Fblender_wJhUhZwI3h.gif?alt=media&#x26;token=2a9a8dda-57cc-435b-8410-3ac055dfa487" alt=""><figcaption><p>Figure 4</p></figcaption></figure>

### Collection

Only shows up when you use **Type: Collection**. This allows you to assign a collection whose mesh objects will act as the flange or coupling.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FfzC6NnunmVRsCcCfHsBJ%2Fblender_RGMJyOcUpL.gif?alt=media&#x26;token=35f06283-e5dc-410c-b2d4-e4f305f08dec" alt=""><figcaption><p>Figure 5</p></figcaption></figure>

### Object Seed

Only shows up when you use **Type: Collection**. Randomizes the mesh object used in each point using a seed number.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2F967mDDPnVV2XG5cPEan7%2Fblender_gUSZzXowB2.gif?alt=media&#x26;token=a75580f2-4fdf-4659-a5a4-0a1ac76998e0" alt=""><figcaption><p>Figure 6</p></figcaption></figure>

### Amount

The number of flanges/couplings generated for each curve. This only counts the number in the body of the curve and disregards the ones created in the start and end caps of the curve object.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FDz5sxX5ggaLUyOW64BFK%2Fblender_w6xzoKFZFF.gif?alt=media&#x26;token=313e77f0-69c1-47b5-975d-4588fd167a40" alt=""><figcaption><p>Figure 7</p></figcaption></figure>

### Spacing

This only shows up when turning off the **Even Count** toggle and replaces the **Amount** property. Instead of a constant number, the amount of flanges/couplings generated is based on the spacing between them. Lower values will generate more flanges/couplings.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2F6ED85hG8m9oKpj166AJL%2Fblender_Ngfay0CGLx.gif?alt=media&#x26;token=01e39e29-215f-4508-98de-f73fbc47639e" alt=""><figcaption><p>Figure 8</p></figcaption></figure>

### Radius

The radius or size of the flanges/couplings.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2F6qVRnvbXVvAf13sAB8LP%2Fblender_yai5Sng994.gif?alt=media&#x26;token=888e2bec-efff-4e2f-b20a-e99d35bdca9b" alt=""><figcaption><p>Figure 9</p></figcaption></figure>

{% hint style="info" %}
*This property is not dynamic so if you initially do not see the flange/coupling, it might be that they're too small and are inside the tubes or cables. Increasing the radius may solve this issue.*
{% endhint %}

### Depth

This only shows up when using **Type: Basic**. This determines the thickness of the cylinder object being used as the flange or coupling.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FsovKSxIOENwhwEGkLOZF%2Fblender_RgOdpmqqFx.gif?alt=media&#x26;token=28066229-a733-4e4e-b0d4-350d66d680d8" alt=""><figcaption><p>Figure 10</p></figcaption></figure>

### Segments

This only shows up when using **Type: Basic**. This determines the number of segments in the cylinder objects being used as the flange or coupling.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FBqN6lkBZCMaAJjEoRZHj%2Fblender_tBSGNoUaXK.gif?alt=media&#x26;token=7cfec0bb-da8d-42c8-824a-ec17270231ac" alt=""><figcaption><p>Figure 11</p></figcaption></figure>

### Offset

This has two properties: **Caps** and **Body**. **Caps** lets you offset the flange/coupling from the end caps of the curve. **Body** lets you offset the flange/coupling along the body of the curve.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2F7ASQlZpZrCPoSNdyI1Li%2Fblender_HFjq5Y0pBE.gif?alt=media&#x26;token=a5e832fa-da1d-4e9f-a3c3-7736ae1cef49" alt=""><figcaption><p>Figure 12</p></figcaption></figure>

### Rotation

Allows you to set the rotation of the flanges/couplings.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FfeB2i1sJzIdXv1dmI3XI%2Fblender_O5r2ZlCVZ5.gif?alt=media&#x26;token=2c9e208c-9eb3-4bb9-a18d-feb3c2a81ac2" alt=""><figcaption><p>Figure 13</p></figcaption></figure>

### Rotation Seed

This will randomize the rotation for each of the flanges/couplings using a seed number. The randomization will start at 2 and higher with number 1 allowing you to use the same rotation angle for all the flanges/couplings.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FgnfkYKIf7LKbwljsZhb4%2Fblender_gDuwZe0JtG.gif?alt=media&#x26;token=ec46640b-14c0-429d-98a0-d8ce6724fa3f" alt=""><figcaption><p>Figure 14</p></figcaption></figure>

### Limit

This has 3 options: **Limit**, **Caps** and **Body**. **Limit** will generate the flanges/couplings in the body and strat/end caps of the curve. **Caps** will generate the flanges/couplings only on the start/end caps of the curve. **Body** will generate the flanges/couplings only on the body of the curve.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2F8tleBEEHFsGWCGE5oASM%2Fblender_xMUTMzZhpt.gif?alt=media&#x26;token=ddddbc8f-57f2-47a4-87fe-a437fc3c4d27" alt=""><figcaption><p>Figure 15</p></figcaption></figure>

### Material Index

The **Material Index** property lets the resulting cloth sim mesh inherit a material from the active or work mesh.

The default value of -1 means it will use the active material in the work mesh if that material exists.

Using 0 and above means you will be using the 1st material in the material stack when using 0, the 2nd material when using 1 and so forth.

{% hint style="info" %}
*Using a material stack number when that material does not exist will assign no material to the resulting panel cut mesh.*
{% endhint %}

### Even Count

Replaces the **Amount** property with **Spacing** and controls the number of flanges/couplings generated based on the spacing between them.

<figure><img src="https://1533334696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4r0AELTCYZZ7h3JlR2Hg%2Fuploads%2FrrtcZDwEonLfEfHyqO1X%2Fblender_eYkApi3IzZ.gif?alt=media&#x26;token=e794ed64-b704-4df7-a707-be23c3df9988" alt=""><figcaption><p>Figure 16</p></figcaption></figure>

{% hint style="info" %}
***Amount** is constant while **Spacing** depends on the length of the tube or the cables when generating the number of flanges/couplings.*
{% endhint %}
