Scripts: surfinvert.py
| File surfinvert.py, 473 bytes (added by , 10 years ago) |
|---|
| Line | |
|---|---|
| 1 | # |
| 2 | # Show the hidden part and hide the shown part of a surface. |
| 3 | # Can be used with the hide dust tool to show only the dust to mask density |
| 4 | # maps to set the grid points in the dust blobs to zero. |
| 5 | # |
| 6 | import Surface |
| 7 | plist = Surface.selected_surface_pieces() |
| 8 | for p in plist: |
| 9 | m = p.triangleAndEdgeMask |
| 10 | if m is not None: |
| 11 | minv = m^8 |
| 12 | p.triangleAndEdgeMask = minv |
| 13 | Surface.set_visibility_method('invert', p.model) # Suppress surface mask auto updates |
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)