Blender Italia forums Coding Script, addon e temi aiuto come posso aggiornare un addon? Rispondi a: aiuto come posso aggiornare un addon?

wizardgsz
Partecipante
  • Blenderista
  • Post sul Forum 24
@wizardgsz
#763938

Se modifichi la registrazione delle classi lo script non dà errori in Run su 2.80:

#//////////////////////// – REGISTER/UNREGISTER DEFINITIONS – ////////////////////////

classes = (
GPencil_Clear_Data,
ASKETCH_StrokeDraw,
ASKETCH_Stroke_Editmode,
ASKETCH_Stroke_EditmodeExit,
ASKETCH_SetBrushObject,
ASKETCH_SetStartCap,
ASKETCH_SetEndCap,
ASKETCH_ToggleMeshVisibility,
ASKETCH_normalise_tilt,
ASKETCH_ClearBrushObject,
ASKETCH_ClearStartCap,
ASKETCH_ClearEndCap,
ASKETCH_DeleteStrokes,
ASKETCH_StrokeSmoothSize,
ASKETCH_StrokesToMeshes,
ASKETCH_StrokesToMetaballs,
ASKETCH_MetaballsRename,
ASKETCH_MetaballsToMesh,
VIEW3D_PT_tools_ASKETCH_edit_settings,
VIEW3D_PT_tools_ASKETCH_Convert,
VIEW3D_PT_tools_ASKETCH_editmode,
)

def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)

def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)

Poi, avendo iniziato ad usare Blender la scorsa settimana, non so nemmeno cosa sia il Grease Pencil :D

Vuoi provare o, almeno, spiegarmi come potrei provarlo io in autonomia?

Saluti!

ps. vedi anche