Transform mesh ============== .. image:: https://user-images.githubusercontent.com/14288520/193476315-46d82a9e-43ea-4e0c-8dac-9e81b9b9c925.png :target: https://user-images.githubusercontent.com/14288520/193476315-46d82a9e-43ea-4e0c-8dac-9e81b9b9c925.png Functionality ------------- The node takes mesh and transform it according parameters. It can move, scale and rotate parts of mesh. The logic is close how Blender manipulate with mesh itself. Selection elements determines by mask input. .. image:: https://user-images.githubusercontent.com/28003269/73249068-98730f80-41cd-11ea-8ae9-a939cfbe94de.gif :target: https://user-images.githubusercontent.com/28003269/73249068-98730f80-41cd-11ea-8ae9-a939cfbe94de.gif --------- .. image:: https://user-images.githubusercontent.com/14288520/193644280-57ce17f7-2460-4c95-9bc7-b825b8ab1b3b.png :target: https://user-images.githubusercontent.com/14288520/193644280-57ce17f7-2460-4c95-9bc7-b825b8ab1b3b.png * Generator-> :doc:`Plane ` * Number-> :doc:`List Input ` * List-> :doc:`Index To Mask ` * List->List Main-> :doc:`List Length ` * Viz-> :doc:`Viewer Draw ` * Viz-> :doc:`Viewer Index+ ` Category -------- Transforms -> Transform mesh Inputs ------ - **Verts** - vertices - **Edges** - edges (optionally), required if selection mode is `edges` - **Faces** - faces (optionally), required if selection mode is `faces` - **Mask** - bool mask or index mask according mask mode - **Origin** - available with custom origin mode, custom origins - **Space direction** - available with custom space mode, custom normal - **Mask index** - available in index mask mode, indexes of mesh parts - **Direction** - transform vector, axis for rotation mode - **Factor** - factor of transform vector, radians for rotation mode Outputs ------- - **Verts** - transformed vertices Parameters ---------- +------------------------------+-------+--------------------------------------------------------------------------------+ | Parameters | Type | Description | +==============================+=======+================================================================================+ | Transform mode | enum | Move, scale or rotate | +------------------------------+-------+--------------------------------------------------------------------------------+ | Mask mode | enum | Bool mask or index mask | +------------------------------+-------+--------------------------------------------------------------------------------+ | Origin mode | enum | Bounding box center, median center, individual center, | | | | | | | | custom center | +------------------------------+-------+--------------------------------------------------------------------------------+ | Space mode | enum | Global, normal, custom | +------------------------------+-------+--------------------------------------------------------------------------------+ | Selection mode (mask socket) | enum | Vertexes, edges, faces | +------------------------------+-------+--------------------------------------------------------------------------------+ | Direction mode | enum | X, Y, Z or custom direction | | (direction socket) | | | +------------------------------+-------+--------------------------------------------------------------------------------+ **Boolean mask and values distribution:** Boolean mask split mesh into selected and unselected parts. The node apply only one parameter to all selected mesh. If multiple parameters such as direction vector are given they distributes between selected elements. Resulting direction vector is calculated by finding average value from distributed among selected elements parameters. **Index mask and values distribution:** Index mask marks different parts of mesh with different indexes. The node apply properties in this mode only for parts of mesh with indexes equal to given indexes via `mask index` socket. For example: given indexes - [1, 3], given parameters - [param1, param2]. All parts of mesh masked by 1 will be assigned with param1. All parts of mesh masked by 3 will be assigned param2. All other parts will be unchanged. Examples -------- **Generating and moving lines on mesh level:** .. image:: https://user-images.githubusercontent.com/14288520/193643631-6ffa24ba-7e09-42ca-a240-29c57ca7fd42.png :target: https://user-images.githubusercontent.com/14288520/193643631-6ffa24ba-7e09-42ca-a240-29c57ca7fd42.png * Generator-> :doc:`Line ` * Number-> :doc:`Random Num Gen ` * List->List Main-> :doc:`List Length ` * Modifiers->Modifier Change-> :doc:`Separate Parts To Indexes ` * Set: List-> :doc:`List Modifier ` * Viz-> :doc:`Viewer Draw ` * Text-> :doc:`Stethoscope ` --------- **Moving disjoint parts =):** .. image:: https://user-images.githubusercontent.com/14288520/193647222-a2948853-8180-4870-acc2-b71d1261518c.gif :target: https://user-images.githubusercontent.com/14288520/193647222-a2948853-8180-4870-acc2-b71d1261518c.gif .. image:: https://user-images.githubusercontent.com/14288520/193647813-e456ffc8-0ba1-4f37-957a-653aa96bca31.png :target: https://user-images.githubusercontent.com/14288520/193647813-e456ffc8-0ba1-4f37-957a-653aa96bca31.png * Modifiers->Modifier Change-> :doc:`Separate Parts To Indexes ` * MUL X: Number-> :doc:`Scalar Math ` * Vector-> :doc:`Vector In ` * Set: List-> :doc:`List Modifier ` * List->List Main-> :doc:`List Join ` * Viz-> :doc:`Viewer Draw ` * Scene-> :doc:`Frame Info ` --------- **Randomly scaled faces:** .. image:: https://user-images.githubusercontent.com/14288520/193649147-9fe39b7b-2999-466f-ac51-04822a3603d2.png :target: https://user-images.githubusercontent.com/14288520/193649147-9fe39b7b-2999-466f-ac51-04822a3603d2.png * Generator-> :doc:`Plane ` * List->List Main-> :doc:`List Length ` * Number-> :doc:`Random Num Gen ` * Viz-> :doc:`Viewer Draw ` --------- **Randomly scaled loops of torus:** .. image:: https://user-images.githubusercontent.com/14288520/193651715-cc02f1cb-7fd1-4bcd-99f7-503f7e0f3182.png :target: https://user-images.githubusercontent.com/14288520/193651715-cc02f1cb-7fd1-4bcd-99f7-503f7e0f3182.png * Generator-> :doc:`Torus ` * Number-> :doc:`A Number ` * Number-> :doc:`Number Range ` * List->List Main-> :doc:`List Join ` * Viz-> :doc:`Viewer Draw ` --------- **Flatten monkey by nearby point:** .. image:: https://user-images.githubusercontent.com/14288520/193666573-41b375bf-b083-4216-aacd-a834375caebb.gif :target: https://user-images.githubusercontent.com/14288520/193666573-41b375bf-b083-4216-aacd-a834375caebb.gif .. image:: https://user-images.githubusercontent.com/14288520/193666541-1a514f6e-735c-4f4a-8b5a-578c79bea253.png :target: https://user-images.githubusercontent.com/14288520/193666541-1a514f6e-735c-4f4a-8b5a-578c79bea253.png * Generator-> :doc:`Suzanne ` * Matrix-> :doc:`Matrix Out ` * Scene-> :doc:`Get Objects Data ` * Analyzers-> :doc:`Select Mesh Elements `