Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/clip.py
| Show First 20 Lines • Show All 510 Lines • ▼ Show 20 Lines | def _bake_object(self, scene, ob): | ||||
| scene.frame_set(frame_current) | scene.frame_set(frame_current) | ||||
| def execute(self, context): | def execute(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| # XXX, should probably use context.selected_editable_objects | # XXX, should probably use context.selected_editable_objects | ||||
| # since selected objects can be from a lib or in hidden layer! | # since selected objects can be from a lib or in hidden layer! | ||||
| for ob in scene.objects: | for ob in scene.objects: | ||||
| if ob.select_set(True): | if ob.select_get(): | ||||
| self._bake_object(scene, ob) | self._bake_object(scene, ob) | ||||
| return {'FINISHED'} | return {'FINISHED'} | ||||
| class CLIP_OT_setup_tracking_scene(Operator): | class CLIP_OT_setup_tracking_scene(Operator): | ||||
| """Prepare scene for compositing 3D objects into this footage""" | """Prepare scene for compositing 3D objects into this footage""" | ||||
| # TODO: it will be great to integrate with other engines (other than Cycles) | # TODO: it will be great to integrate with other engines (other than Cycles) | ||||
| ▲ Show 20 Lines • Show All 553 Lines • Show Last 20 Lines | |||||