Skip to content

Commit

Permalink
Rename gdquest_vse to power_sequencer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Lovato committed Jul 17, 2017
1 parent ff1ce87 commit 8c8fe52
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 62 deletions.
6 changes: 3 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
'''

bl_info = {
"name": "GDquest VSE Tools",
"description": "A collection of tools for faster video editing",
"name": "Power Sequencer",
"description": "Tools for an efficient video editing workflow",
"author": "Nathan Lovato",
"version": (0, 3, 0),
"blender": (2, 77, 0),
"blender": (2, 78, 0),
"location": "sequencer",
"warning": "This is a Work In Progress",
"wiki_url": "https://github.com/NathanLovato/gdquest-vse",
Expand Down
4 changes: 2 additions & 2 deletions _other/Templates
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def register_keymaps():
addon = bpy.context.window_manager.keyconfigs.addon
km = addon.keymaps.new(name = "3D View", space_type = "VIEW_3D")
# insert keymap items here
kmi = km.keymap_items.new("gdquest_vse.mouse_cut", type = "ACTIONMOUSE", value = "CLICK", ctrl = True)
kmi = km.keymap_items.new("gdquest_vse.mouse_cut", type = "ACTIONMOUSE", value = "CLICK", ctrl = True)
kmi = km.keymap_items.new("power_sequencer.mouse_cut", type = "ACTIONMOUSE", value = "CLICK", ctrl = True)
kmi = km.keymap_items.new("power_sequencer.mouse_cut", type = "ACTIONMOUSE", value = "CLICK", ctrl = True)
addon_keymaps.append(km)


Expand Down
2 changes: 1 addition & 1 deletion addon_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GeneralProperties(bpy.types.PropertyGroup):


class ProxyPreferences(bpy.types.AddonPreferences):
bl_idname = "gdquest_vse"
bl_idname = "power_sequencer"

video_export_path = StringProperty(
name="Video render folder",
Expand Down
6 changes: 3 additions & 3 deletions animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def fade_clear(sequence=None):


class FadeStrips(bpy.types.Operator):
bl_idname = "gdquest_vse.fade_strips"
bl_idname = "power_sequencer.fade_strips"
bl_label = "Fade strips"
bl_description = "Fade left, right or both sides of all selected strips \
in the VSE"
Expand Down Expand Up @@ -145,7 +145,7 @@ class AddTransformEffect(bpy.types.Operator):
Adds a transform effect and sets it to ALPHA_OVER
for each strip in the selection.
"""
bl_idname = 'gdquest_vse.add_transform_effect'
bl_idname = 'power_sequencer.add_transform_effect'
bl_label = 'Add transform effect'
bl_description = 'Add transform effect to selected image and movie strips. \
Auto centers images'
Expand Down Expand Up @@ -216,7 +216,7 @@ def execute(self, context):

# TODO: Find which animation data to store and how to store it?
# class AddAnimationFromLibrary(bpy.types.Operator):
# bl_idname = "gdquest_vse.animation_library"
# bl_idname = "power_sequencer.animation_library"
# bl_label = "Animation library"
# bl_description = "Adds animation to selected strips."
# bl_options = {"REGISTER", "UNDO"}
Expand Down
6 changes: 3 additions & 3 deletions export.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def set_render_settings(resolution=None, encoding=None):
# TODO: find way to set the right encoding using the preset enumProperty - dict?
# TODO: Remove proxy size
class RenderForWeb(bpy.types.Operator):
bl_idname = "gdquest_vse.render_video"
bl_idname = "power_sequencer.render_video"
bl_label = "Render video for the web"
bl_description = "Pick a rendering preset and let Blender name and export \
the video for you. Replaces strips with proxies if necessary."
Expand Down Expand Up @@ -86,7 +86,7 @@ def execute(self, context):
self.report({'WARNING'}, "Save your file first")
return {'CANCELLED'}

prefs = context.user_preferences.addons["gdquest_vse"].preferences
prefs = context.user_preferences.addons["power_sequencer"].preferences

resolution = RS.RESOLUTION.PROXY if self.use_proxies else RS.RESOLUTION.HD_FULL
encoding = RS.ENCODING.MP4_PROXY if self.use_proxies else RS.ENCODING.MP4_HIGH
Expand All @@ -113,7 +113,7 @@ def execute(self, context):

# TODO: Write operator
class CopyStripsToNewScene(bpy.types.Operator):
bl_idname = 'gdquest_vse.copy_strips_to_new_scene'
bl_idname = 'power_sequencer.copy_strips_to_new_scene'
bl_label = 'Copy strips to new scene'
bl_description = 'Copy the selected strips to a new scene, \
e.g. to render a preview or trailer for your video'
Expand Down
2 changes: 1 addition & 1 deletion handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@persistent
def playback_speed(scene):
scene = bpy.context.scene
playback_speed = scene.gdquest_vse.playback_speed
playback_speed = scene.power_sequencer.playback_speed
if (playback_speed == "fast"):
if scene.frame_current % 3 == 0:
scene.frame_current += 1
Expand Down
6 changes: 3 additions & 3 deletions load_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# TODO: Fix img imported from subfolder -
class ImportLocalFootage(bpy.types.Operator):
bl_idname = "gdquest_vse.import_local_footage"
bl_idname = "power_sequencer.import_local_footage"
bl_label = "Import local footage"
bl_description = "Import video and audio from the project \
folder to VSE strips"
Expand Down Expand Up @@ -188,9 +188,9 @@ def execute(self, context):
sequencer.meta_separate()

# Set the strips to use proxies based if set in the addon preferences
prefs = context.user_preferences.addons["gdquest_vse"].preferences
prefs = context.user_preferences.addons["power_sequencer"].preferences
if prefs.auto_render_proxies:
bpy.ops.gdquest_vse.set_video_proxies()
bpy.ops.power_sequencer.set_video_proxies()

# Show audio waveforms
for s in [strip for strip in new_sequences if strip.type == 'SOUND']:
Expand Down
16 changes: 8 additions & 8 deletions markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class SyncTitles(bpy.types.Operator):
bl_idname = 'gdquest_vse.synchronize_titles'
bl_idname = 'power_sequencer.synchronize_titles'
bl_label = 'Synchronize titles'
bl_description = 'Snap the selected image or text strips to the \
corresponding title marker. The marker and strip names \
Expand Down Expand Up @@ -75,7 +75,7 @@ def match_sequences_and_markers(sequences, markers, regex):


class AddTitleMarker(bpy.types.Operator):
bl_idname = 'gdquest_vse.add_title_marker'
bl_idname = 'power_sequencer.add_title_marker'
bl_label = 'Add title marker'
bl_description = 'Add a title marker to quickly sync TITLE strips'
bl_options = {'REGISTER', 'UNDO'}
Expand All @@ -94,7 +94,7 @@ def execute(self, context):


class AddNumberedMarker(bpy.types.Operator):
bl_idname = 'gdquest_vse.add_numbered_marker'
bl_idname = 'power_sequencer.add_numbered_marker'
bl_label = 'Add numbered marker'
bl_description = 'Add a numbered marker to quickly sync image'
bl_options = {'REGISTER', 'UNDO'}
Expand All @@ -113,7 +113,7 @@ def execute(self, context):


class TitleMarkersToText(bpy.types.Operator):
bl_idname = 'gdquest_vse.title_markers_to_text'
bl_idname = 'power_sequencer.title_markers_to_text'
bl_label = 'Title markers to text'
bl_description = 'Outputs the names of the title markers to a text file'
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -190,7 +190,7 @@ def string_find_id(string, regex):


class SnapMarkerToCursor(bpy.types.Operator):
bl_idname = 'gdquest_vse.snap_marker_to_cursor'
bl_idname = 'power_sequencer.snap_marker_to_cursor'
bl_label = 'Snap marker to cursor'
bl_description = 'Snap the selected marker to the time cursor'
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -221,7 +221,7 @@ def execute(self, context):

class GoToNextMarker(bpy.types.Operator):
"""Moves the time cursor to the next marker"""
bl_idname = "gdquest_vse.go_to_marker"
bl_idname = "power_sequencer.go_to_marker"
bl_label = "Go to marker"
bl_options = {'REGISTER', 'UNDO'}

Expand Down Expand Up @@ -260,7 +260,7 @@ def execute(self, context):


class DeleteClosestMarker(bpy.types.Operator):
bl_idname = 'gdquest_vse.delete_closest_marker'
bl_idname = 'power_sequencer.delete_closest_marker'
bl_label = 'Delete closest marker'
bl_description = 'Delete the marker closest to the mouse'
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -294,7 +294,7 @@ def invoke(self, context, event):


class SetPreviewBetweenMarkers(bpy.types.Operator):
bl_idname = 'gdquest_vse.set_preview_between_markers'
bl_idname = 'power_sequencer.set_preview_between_markers'
bl_label = 'Set preview between closest markers'
bl_description = "Set the timeline's preview range using the 2 markers closest to the time cursor"
bl_options = {'REGISTER', 'UNDO'}
Expand Down
20 changes: 10 additions & 10 deletions proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# TODO: Make use of SettingsProxies PropertyGroup
# TODO: If custom dir, store proxies in a subfolder
class SetVideosProxies(bpy.types.Operator):
bl_idname = "gdquest_vse.set_video_proxies"
bl_idname = "power_sequencer.set_video_proxies"
bl_label = "Set selected strips as Proxies"
bl_description = "Set all video strips in the current scene as proxies and rebuild"
bl_options = {"REGISTER"}
Expand All @@ -42,7 +42,7 @@ def execute(self, context):
self.report({"ERROR_INVALID_INPUT"}, "No movie sequences found")
return {'CANCELLED'}

prefs = context.user_preferences.addons["gdquest_vse"].preferences
prefs = context.user_preferences.addons["power_sequencer"].preferences

for s in selection:
if s.type not in ('MOVIE', 'IMAGE'):
Expand Down Expand Up @@ -89,22 +89,22 @@ class SettingsProxies(bpy.types.PropertyGroup):

# Panel for proxy options management
def proxy_menu(self, context):
# prefs = context.user_preferences.addons['gdquest_vse'].preferences
gdquest_vse_proxy = context.scene.gdquest_vse_proxy
# prefs = context.user_preferences.addons['power_sequencer'].preferences
power_sequencer_proxy = context.scene.power_sequencer_proxy

layout = self.layout

row = layout.row()
row.separator()
row = layout.row()
row.prop(gdquest_vse_proxy, 'proxy_on_import')
row.prop(power_sequencer_proxy, 'proxy_on_import')

# if prefs.proxy_on_import:
row = layout.row(align=True)
row.prop(gdquest_vse_proxy, "proxy_25", toggle=True)
row.prop(gdquest_vse_proxy, "proxy_50", toggle=True)
row.prop(gdquest_vse_proxy, "proxy_75", toggle=True)
row.prop(gdquest_vse_proxy, "proxy_100", toggle=True)
row.prop(power_sequencer_proxy, "proxy_25", toggle=True)
row.prop(power_sequencer_proxy, "proxy_50", toggle=True)
row.prop(power_sequencer_proxy, "proxy_75", toggle=True)
row.prop(power_sequencer_proxy, "proxy_100", toggle=True)

row = layout.row()
row.prop(gdquest_vse_proxy, "proxy_quality")
row.prop(power_sequencer_proxy, "proxy_quality")
18 changes: 9 additions & 9 deletions simple_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
slice_selection

class OpenProjectDirectory(bpy.types.Operator):
bl_idname = 'gdquest_vse.open_project_directory'
bl_idname = 'power_sequencer.open_project_directory'
bl_label = 'Open project directory'
bl_description = 'Opens the Blender project directory in the explorer'
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -36,7 +36,7 @@ def execute(self, context):


class OpenPicturesFile(bpy.types.Operator):
bl_idname = 'gdquest_vse.open_local_psd'
bl_idname = 'power_sequencer.open_local_psd'
bl_label = 'Open local psd'
bl_description = 'Open a psd or kra file stored in the local img folder'
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -64,7 +64,7 @@ def execute(self, context):

class DeleteDirect(bpy.types.Operator):
"""Deletes without prompting for confirmation"""
bl_idname = "gdquest_vse.delete_direct"
bl_idname = "power_sequencer.delete_direct"
bl_label = "Delete Direct"
bl_options = {'REGISTER', 'UNDO'}

Expand All @@ -85,7 +85,7 @@ def execute(self, context):

class SaveDirect(bpy.types.Operator):
"""Saves current file without prompting for confirmation"""
bl_idname = "gdquest_vse.save_direct"
bl_idname = "power_sequencer.save_direct"
bl_label = "Save Direct"
bl_options = {'REGISTER', 'UNDO'}

Expand All @@ -104,7 +104,7 @@ def execute(self, context):

class CycleScenes(bpy.types.Operator):
"""Cycle through scenes"""
bl_idname = "gdquest_vse.cycle_scenes"
bl_idname = "power_sequencer.cycle_scenes"
bl_label = "Cycle scenes"
bl_options = {'REGISTER', 'UNDO'}

Expand All @@ -126,7 +126,7 @@ def execute(self, context):

class TogglePreviewSelectedStrips(bpy.types.Operator):
"""Sets the preview range based on selected sequences"""
bl_idname = "gdquest_vse.toggle_preview_selection"
bl_idname = "power_sequencer.toggle_preview_selection"
bl_label = "Toggle preview selection"
bl_options = {'REGISTER', 'UNDO'}

Expand All @@ -152,7 +152,7 @@ def execute(self, context):

class SetTimeline(bpy.types.Operator):
"""Set the timeline start and end frame using the time cursor"""
bl_idname = "gdquest_vse.set_timeline"
bl_idname = "power_sequencer.set_timeline"
bl_label = "Set timeline start and end"
bl_options = {'REGISTER', 'UNDO'}

Expand Down Expand Up @@ -181,7 +181,7 @@ def execute(self, context):
# first sequence on the leftmost side of the sequencer
# TODO: Improve auto move cursor back
class RippleDelete(bpy.types.Operator):
bl_idname = 'gdquest_vse.ripple_delete'
bl_idname = 'power_sequencer.ripple_delete'
bl_label = 'Ripple delete'
bl_description = 'Delete the selected sequences and remove gaps'
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -247,7 +247,7 @@ def execute(self, context):
if is_single_channel:
for s in surrounding_strips:
s.select = True
bpy.ops.gdquest_vse.concatenate_strips()
bpy.ops.power_sequencer.concatenate_strips()

scene.frame_current = cursor_start - cursor_offset
report_message = 'Deleted ' + str(selection_length) + ' sequence'
Expand Down
4 changes: 2 additions & 2 deletions sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class SoundToggleWaveform(bpy.types.Operator):
bl_idname = 'gdquest_vse.sound_toggle_waveform'
bl_idname = 'power_sequencer.sound_toggle_waveform'
bl_label = 'Sound toggle waveform'
bl_description = 'Toggle drawing of the waveform for selected strips \
or for all strips if no selection is active'
Expand Down Expand Up @@ -48,7 +48,7 @@ def execute(self, context):


class SoundSetVolume(bpy.types.Operator):
bl_idname = 'gdquest_vse.sound_set_strip_volume'
bl_idname = 'power_sequencer.sound_set_strip_volume'
bl_label = 'Sound: set strip volume'
bl_description = 'Change the volume of all selected Sound strips (use F6)'
bl_options = {'REGISTER', 'UNDO'}
Expand Down
2 changes: 1 addition & 1 deletion titles.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# TODO: allow to define favorite fonts in add-on prefs
# class AddSubtitle(bpy.types.Operator):
# """Adds a text strip and sets it up to quickly add an animated note on the video"""
# bl_idname = "gdquest_vse.add_simple_text"
# bl_idname = "power_sequencer.add_simple_text"
# bl_label = "Add a text strip and set it up quickly"
# bl_options = {'REGISTER', 'UNDO'}

Expand Down

0 comments on commit 8c8fe52

Please sign in to comment.