naming and url fix

master
Pullusb 2021-04-05 01:39:27 +02:00
parent ada6255d6a
commit 1b2ac6b0f1
4 changed files with 19 additions and 19 deletions

View File

@ -3,7 +3,7 @@ from . import fn
from . import animate_path from . import animate_path
class WCA_OT_animate_path(bpy.types.Operator): class UAC_OT_animate_path(bpy.types.Operator):
bl_idname = "anim.animate_path" bl_idname = "anim.animate_path"
bl_label = "Animate Path" bl_label = "Animate Path"
bl_description = "Select the most representative 'in contact' feet of the cycle" bl_description = "Select the most representative 'in contact' feet of the cycle"
@ -27,7 +27,7 @@ class WCA_OT_animate_path(bpy.types.Operator):
return {"FINISHED"} return {"FINISHED"}
class WCA_OT_adjust_animation_length(bpy.types.Operator): class UAC_OT_adjust_animation_length(bpy.types.Operator):
bl_idname = "anim.adjust_animation_length" bl_idname = "anim.adjust_animation_length"
bl_label = "Adjust Anim speed" bl_label = "Adjust Anim speed"
bl_description = "Adjust speed\nOnce pressed, move up/down to move animation path last key value" bl_description = "Adjust speed\nOnce pressed, move up/down to move animation path last key value"
@ -108,8 +108,8 @@ class WCA_OT_adjust_animation_length(bpy.types.Operator):
# layout.prop(self, "val") # layout.prop(self, "val")
classes=( classes=(
WCA_OT_animate_path, UAC_OT_animate_path,
WCA_OT_adjust_animation_length, UAC_OT_adjust_animation_length,
) )

View File

@ -61,7 +61,7 @@ def snap_curve():
# TODO Create the follow path modifier automatically # TODO Create the follow path modifier automatically
class WCA_OT_create_curve_path(bpy.types.Operator): class UAC_OT_create_curve_path(bpy.types.Operator):
bl_idname = "anim.create_curve_path" bl_idname = "anim.create_curve_path"
bl_label = "Create Curve" bl_label = "Create Curve"
bl_description = "Create curve and add follow path constraint" bl_description = "Create curve and add follow path constraint"
@ -120,7 +120,7 @@ class WCA_OT_create_curve_path(bpy.types.Operator):
return {"FINISHED"} return {"FINISHED"}
class WCA_OT_snap_curve_to_ground(bpy.types.Operator): class UAC_OT_snap_curve_to_ground(bpy.types.Operator):
bl_idname = "anim.snap_curve_to_ground" bl_idname = "anim.snap_curve_to_ground"
bl_label = "snap_curve_to_ground" bl_label = "snap_curve_to_ground"
bl_description = "snap curve" bl_description = "snap curve"
@ -135,8 +135,8 @@ class WCA_OT_snap_curve_to_ground(bpy.types.Operator):
return {"FINISHED"} return {"FINISHED"}
classes=( classes=(
WCA_OT_create_curve_path, UAC_OT_create_curve_path,
WCA_OT_snap_curve_to_ground, UAC_OT_snap_curve_to_ground,
) )
def register(): def register():

View File

@ -1,12 +1,12 @@
bl_info = { bl_info = {
"name": "Walk cycle anim", "name": "Unfold Anim Cycle",
"description": "Walk cycle utility", "description": "Anim utility to develop walk/run cycles along a curve",
"author": "Samuel Bernou", "author": "Samuel Bernou",
"version": (0, 1, 0), "version": (0, 1, 0),
"blender": (2, 92, 0), "blender": (2, 92, 0),
"location": "View3D", "location": "View3D",
"warning": "", "warning": "WIP",
"doc_url": "https://github.com/Pullusb/PROJ_name", "doc_url": "https://gitlab.com/autour-de-minuit/blender/unfold_anim_cycle",
"category": "Object" } "category": "Object" }
# from . import other_file # from . import other_file
@ -17,7 +17,7 @@ from . import OP_setup_curve_path
from . import OP_animate_path from . import OP_animate_path
from . import panels from . import panels
class WCA_PGT_settings(bpy.types.PropertyGroup) : class UAC_PGT_settings(bpy.types.PropertyGroup) :
## HIDDEN to hide the animatable dot thing ## HIDDEN to hide the animatable dot thing
path_to_follow : bpy.props.PointerProperty(type=bpy.types.Object, path_to_follow : bpy.props.PointerProperty(type=bpy.types.Object,
name="Path", description="Curve object used") name="Path", description="Curve object used")
@ -40,7 +40,7 @@ class WCA_PGT_settings(bpy.types.PropertyGroup) :
# name="int prop", description="", default=25, min=1, max=2**31-1, soft_min=1, soft_max=2**31-1, step=1, options={'HIDDEN'})#, subtype='PIXEL' # name="int prop", description="", default=25, min=1, max=2**31-1, soft_min=1, soft_max=2**31-1, step=1, options={'HIDDEN'})#, subtype='PIXEL'
class WCA_addon_prefs(bpy.types.AddonPreferences): class UAC_addon_prefs(bpy.types.AddonPreferences):
## can be just __name__ if prefs are in the __init__ mainfile ## can be just __name__ if prefs are in the __init__ mainfile
# Else need the splitext '__name__ = addonname.subfile' (or use a static name) # Else need the splitext '__name__ = addonname.subfile' (or use a static name)
bl_idname = __name__.split('.')[0] # or with: os.path.splitext(__name__)[0] bl_idname = __name__.split('.')[0] # or with: os.path.splitext(__name__)[0]
@ -109,8 +109,8 @@ def unregister_keymaps():
### --- REGISTER --- ### --- REGISTER ---
classes=( classes=(
WCA_PGT_settings, UAC_PGT_settings,
WCA_addon_prefs, UAC_addon_prefs,
) )
def register(): def register():
@ -122,7 +122,7 @@ def register():
# if not bpy.app.background: # if not bpy.app.background:
#register_keymaps() #register_keymaps()
bpy.types.Scene.anim_cycle_settings = bpy.props.PointerProperty(type = WCA_PGT_settings) bpy.types.Scene.anim_cycle_settings = bpy.props.PointerProperty(type = UAC_PGT_settings)
def unregister(): def unregister():
# if not bpy.app.background: # if not bpy.app.background:

View File

@ -1,7 +1,7 @@
import bpy import bpy
class WCA_PT_walk_cycle_anim_panel(bpy.types.Panel): class UAC_PT_walk_cycle_anim_panel(bpy.types.Panel):
bl_space_type = "VIEW_3D" bl_space_type = "VIEW_3D"
bl_region_type = "UI" bl_region_type = "UI"
bl_category = "Anim" bl_category = "Anim"
@ -33,7 +33,7 @@ class WCA_PT_walk_cycle_anim_panel(bpy.types.Panel):
classes=( classes=(
WCA_PT_walk_cycle_anim_panel, UAC_PT_walk_cycle_anim_panel,
) )
def register(): def register():