You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scripts are imported wrong. See the example below. Looks like you place UTF code.
The original code is this:
import bpy
selection = bpy.context.selected_objects #Get selected objects
for o in selection: #Loop through selected objects
bpy.context.view_layer.objects.active = o #Set object in loop as active
if bpy.context.view_layer.objects.active.type == 'MESH': #if object type is MESH then...
bpy.ops.mesh.customdata_custom_splitnormals_clear()
The version you import looks like this: b"import bpy\r\n\r\nselection = bpy.context.selected_objects #Get selected objects\r\n\r\nfor o in selection: #Loop through selected objects\r\n bpy.context.view_layer.objects.active = o #Set object in loop as active \r\n if bpy.context.view_layer.objects.active.type == 'MESH': #if object type is MESH then...\r\n bpy.ops.mesh.customdata_custom_splitnormals_clear()\r\n"
The ZIP file include the right code.
Info: Importing Python files works fine.
The text was updated successfully, but these errors were encountered:
Taroslord
changed the title
Cript via ZIP import doesn't work
Script via ZIP import doesn't work
Oct 22, 2021
Scripts are imported wrong. See the example below. Looks like you place UTF code.
The original code is this:
The version you import looks like this:
b"import bpy\r\n\r\nselection = bpy.context.selected_objects #Get selected objects\r\n\r\nfor o in selection: #Loop through selected objects\r\n bpy.context.view_layer.objects.active = o #Set object in loop as active \r\n if bpy.context.view_layer.objects.active.type == 'MESH': #if object type is MESH then...\r\n bpy.ops.mesh.customdata_custom_splitnormals_clear()\r\n"
The ZIP file include the right code.
Info: Importing Python files works fine.
The text was updated successfully, but these errors were encountered: