Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/clip.py
| Show First 20 Lines • Show All 844 Lines • ▼ Show 20 Lines | def _setupNodes(self, context): | ||||
| composite.location += Vector((300.0, -100.0)) | composite.location += Vector((300.0, -100.0)) | ||||
| viewer.location = composite.location | viewer.location = composite.location | ||||
| composite.location += Vector((0.0, 200.0)) | composite.location += Vector((0.0, 200.0)) | ||||
| # Ensure no nodes were created on the position of existing node. | # Ensure no nodes were created on the position of existing node. | ||||
| self._offsetNodes(tree) | self._offsetNodes(tree) | ||||
| if hasattr(scene, "cycles"): | |||||
| scene.cycles.film_transparent = True | |||||
| @staticmethod | @staticmethod | ||||
| def _createMesh(collection, name, vertices, faces): | def _createMesh(collection, name, vertices, faces): | ||||
| from bpy_extras.io_utils import unpack_list | from bpy_extras.io_utils import unpack_list | ||||
| mesh = bpy.data.meshes.new(name=name) | mesh = bpy.data.meshes.new(name=name) | ||||
| mesh.vertices.add(len(vertices)) | mesh.vertices.add(len(vertices)) | ||||
| mesh.vertices.foreach_set("co", unpack_list(vertices)) | mesh.vertices.foreach_set("co", unpack_list(vertices)) | ||||
| ▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines | |||||