Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_camera.py
| Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if use_multiview: | if use_multiview: | ||||
| box.prop(bg.image, "use_multiview") | box.prop(bg.image, "use_multiview") | ||||
| column = box.column() | column = box.column() | ||||
| column.active = bg.image.use_multiview | column.active = bg.image.use_multiview | ||||
| column.label(text="Views Format:") | column.label(text="Views Format:") | ||||
| column.row().prop(bg.image, "views_format", expand=True) | column.row().prop(bg.image, "views_format", expand=True) | ||||
Blendify: I think it would make a lot of sense to make this an enum, "Clip Source" | |||||
| sub = column.box() | sub = column.box() | ||||
| sub.active = bg.image.views_format == 'STEREO_3D' | sub.active = bg.image.views_format == 'STEREO_3D' | ||||
| sub.template_image_stereo_3d(bg.image.stereo_3d_format) | sub.template_image_stereo_3d(bg.image.stereo_3d_format) | ||||
| elif bg.source == 'MOVIE_CLIP': | elif bg.source == 'MOVIE_CLIP': | ||||
| box.prop(bg, "use_camera_clip", text="Active Clip") | col = box.column() | ||||
| col.prop(bg, "use_camera_clip", text="Active Clip") | |||||
| column = box.column() | |||||
| column.active = not bg.use_camera_clip | |||||
| column.template_ID(bg, "clip", open="clip.open") | |||||
| if bg.clip: | |||||
| column.template_movieclip(bg, "clip", compact=True) | |||||
| if bg.use_camera_clip or bg.clip: | if bg.use_camera_clip or bg.clip: | ||||
| has_bg = True | has_bg = True | ||||
| column = box.column() | sub = col.column() | ||||
| column.active = has_bg | sub.active = has_bg | ||||
| column.prop(bg.clip_user, "use_render_undistorted") | sub.prop(bg.clip_user, "use_render_undistorted") | ||||
| column.prop(bg.clip_user, "proxy_render_size") | sub.prop(bg.clip_user, "proxy_render_size") | ||||
| if not bg.use_camera_clip: | |||||
| col = box.column() | |||||
| col.template_ID(bg, "clip", open="clip.open") | |||||
| if bg.clip: | |||||
| col = box.column() | |||||
| col.template_movieclip(bg, "clip", compact=True) | |||||
| if has_bg: | if has_bg: | ||||
| col = box.column() | col = box.column() | ||||
| col.prop(bg, "alpha", slider=True) | col.prop(bg, "alpha", slider=True) | ||||
| col.row().prop(bg, "display_depth", expand=True) | col.row().prop(bg, "display_depth", expand=True) | ||||
| col.row().prop(bg, "frame_method", expand=True) | col.row().prop(bg, "frame_method", expand=True) | ||||
| ▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines | |||||
I think it would make a lot of sense to make this an enum, "Clip Source"