fab15384a4
Many operator buttons in Node Wrangler used custom texts defined elsewhere, but the translation context in this case is "Operator". It should be using "Default" instead. Attribute nodes in the shader editor should never be translated because their name is user data. Some button labels were switched to title case. "Dodge" and "Burn" were renamed to "Color Dodge" and "Color Burn" respectively, to match the item name from the actual node. The "Frame Selected" operator now uses Node translation context, to distinguish from the other operator of the same name which means "Place selected in view". Pull Request: https://projects.blender.org/blender/blender/pulls/123403
64 lines
1.9 KiB
Python
64 lines
1.9 KiB
Python
# SPDX-FileCopyrightText: 2013-2023 Blender Foundation
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
bl_info = {
|
|
"name": "Node Wrangler",
|
|
"author": "Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer",
|
|
"version": (3, 55),
|
|
"blender": (4, 2, 0),
|
|
"location": "Node Editor Toolbar or Shift-W",
|
|
"description": "Various tools to enhance and speed up node-based workflow",
|
|
"warning": "",
|
|
"doc_url": "{BLENDER_MANUAL_URL}/addons/node/node_wrangler.html",
|
|
"support": 'OFFICIAL',
|
|
"category": "Node",
|
|
}
|
|
|
|
import bpy
|
|
from bpy.props import (
|
|
BoolProperty,
|
|
IntProperty,
|
|
StringProperty,
|
|
)
|
|
|
|
from . import operators
|
|
from . import preferences
|
|
from . import interface
|
|
|
|
|
|
def register():
|
|
# props
|
|
bpy.types.Scene.NWBusyDrawing = StringProperty(
|
|
name="Busy Drawing!",
|
|
default="",
|
|
description="An internal property used to store only the first mouse position")
|
|
bpy.types.Scene.NWLazySource = StringProperty(
|
|
name="Lazy Source!",
|
|
default="x",
|
|
description="An internal property used to store the first node in a Lazy Connect operation")
|
|
bpy.types.Scene.NWLazyTarget = StringProperty(
|
|
name="Lazy Target!",
|
|
default="x",
|
|
description="An internal property used to store the last node in a Lazy Connect operation")
|
|
bpy.types.Scene.NWSourceSocket = IntProperty(
|
|
name="Source Socket!",
|
|
default=0,
|
|
description="An internal property used to store the source socket in a Lazy Connect operation")
|
|
|
|
operators.register()
|
|
interface.register()
|
|
preferences.register()
|
|
|
|
|
|
def unregister():
|
|
preferences.unregister()
|
|
interface.unregister()
|
|
operators.unregister()
|
|
|
|
# props
|
|
del bpy.types.Scene.NWBusyDrawing
|
|
del bpy.types.Scene.NWLazySource
|
|
del bpy.types.Scene.NWLazyTarget
|
|
del bpy.types.Scene.NWSourceSocket
|