Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chadmv/cvwrap
A Maya wrap deformer that is faster than Maya's wrap deformer, can be rebounded, has a GPU implementation, and supports inverted front of chain blend shapes.
https://github.com/chadmv/cvwrap
Last synced: 2 months ago
JSON representation
A Maya wrap deformer that is faster than Maya's wrap deformer, can be rebounded, has a GPU implementation, and supports inverted front of chain blend shapes.
- Host: GitHub
- URL: https://github.com/chadmv/cvwrap
- Owner: chadmv
- License: mit
- Created: 2015-04-30T04:57:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T21:25:50.000Z (over 1 year ago)
- Last Synced: 2024-02-01T04:52:54.482Z (5 months ago)
- Language: C++
- Homepage:
- Size: 168 KB
- Stars: 170
- Watchers: 35
- Forks: 89
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-cg-vfx-pipeline - CvWrap - Fast Maya wrap deformer. (Libraries / Geometry)
- awesome-vfx - cvWrap
- awesome-cg-vfx-pipeline - CvWrap - Fast Maya wrap deformer (Libraries / Geometry)
README
# cvwrap
A Maya wrap deformer that is faster than Maya's wrap deformer, can be rebounded, has a GPU implementation, and supports inverted front of chain blend shapes.You can purchase a video series documenting the development of this plug-in from scratch at [CGCircuit](http://www.cgcircuit.com/course/creating-a-gpu-driven-wrap-deformer?affid=df9a2a33e2f653182abfd4cfc9b7159752671dde4280a13fc724d0c42b62d143c055f01d504ecc4d176537d5ce1994d0010d204a200f178091bf59c85380dbdc).
```python
sphere = cmds.polySphere(sx=10, sy=10)[0]
cube = cmds.polyCube(w=2.3, h=2.3, d=2.3, sx=5, sy=5, sz=5)[0]# Create a new wrap
wrap_node = cmds.cvWrap(sphere, cube, name='wrapnode', radius=0.1)# Rebind a vertex
cmds.select(['{0}.vtx[75]'.format(sphere)])
cmds.select(['{0}.{1}'.format(cube, faces) for faces in ['f[110:111]', 'f[115:116]']], add=True)
cmds.cvWrap(rb=wrap_node)file_path = r'E:\My Documents\maya\projects\default\data\binding.wrap'
# Export the binding
cmds.cvWrap(wrap_node, ex=file_path)# Recreate the wrap node with the adjusted binding
cmds.delete(wrap_node)
wrap_node = cmds.cvWrap(sphere, cube, name=wrap_node, b=file_path)# Import the binding again
cmds.cvWrap(wrap_node, im=file_path)
```