Update
This commit is contained in:
@@ -54,7 +54,7 @@ def create_action__from_closest_joint(parent, session):
|
||||
if not options.all_influences():
|
||||
influences = layer.paint_targets
|
||||
if not influences:
|
||||
dialogs.info("Select one or more influences in Influences list")
|
||||
dialogs.info("在影响列表中选择一个或多个影响")
|
||||
return
|
||||
|
||||
if options.create_new_layer():
|
||||
@@ -77,8 +77,8 @@ def create_action__from_closest_joint(parent, session):
|
||||
__create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Assign From Closest Joint",
|
||||
action_tooltip="Assign 1.0 weight for closest influence per each vertex in selected layer",
|
||||
action_name=u"从最近的关节分配",
|
||||
action_tooltip="为选定层中每个顶点的最近影响分配权重1.0",
|
||||
exec_handler=exec_handler,
|
||||
),
|
||||
options,
|
||||
@@ -105,8 +105,8 @@ def create_action__unify_weights(parent, session):
|
||||
__create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Unify Weights",
|
||||
action_tooltip="For selected vertices, make verts the same for all verts",
|
||||
action_name=u"统一权重", # Unify Weights
|
||||
action_tooltip="对于选定的顶点,使所有顶点相同。", #对于选定的顶点,使所有顶点相同。
|
||||
exec_handler=exec_handler,
|
||||
),
|
||||
options,
|
||||
@@ -130,8 +130,8 @@ def create_action__merge_layers(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Merge",
|
||||
action_tooltip="Merge contents of this layer into underlying layer. Pre-effects weights will be used for this",
|
||||
action_name=u"合并", # Merge
|
||||
action_tooltip="将本层的元素合并到底层。预效果权重将用于此。",
|
||||
exec_handler=exec_handler,
|
||||
enabled_handler=enabled_handler,
|
||||
)
|
||||
@@ -155,8 +155,8 @@ def create_action__duplicate_layer(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Duplicate",
|
||||
action_tooltip="Duplicate selected layer(s)",
|
||||
action_name=u"复制",
|
||||
action_tooltip="复制选择的图层(多选)",
|
||||
exec_handler=exec_handler,
|
||||
)
|
||||
|
||||
@@ -176,8 +176,8 @@ def create_action__fill_transparency(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Fill Transparency",
|
||||
action_tooltip="All transparent vertices in the selected layer(s) receive weights from their closest non-empty neighbour vertex",
|
||||
action_name=u"填充透明度",
|
||||
action_tooltip="所选图层中的所有透明顶点接收其最近非空邻接顶点的权重,",
|
||||
exec_handler=exec_handler,
|
||||
)
|
||||
|
||||
@@ -195,8 +195,8 @@ def create_action__copy_component_weights(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Copy Component Weights",
|
||||
action_tooltip="Store components weights in memory for further component-based paste actions",
|
||||
action_name=u"复制组件权重",
|
||||
action_tooltip="将组件权重存储在内存中,以便进行进一步的基于组件的粘贴操作",
|
||||
exec_handler=exec_handler,
|
||||
)
|
||||
|
||||
@@ -214,8 +214,8 @@ def create_action__paste_average_component_weight(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Paste Average Component Weight",
|
||||
action_tooltip="Compute average of copied component weights and set that value to currently selected components",
|
||||
action_name=u"粘贴平均组件权重",
|
||||
action_tooltip="计算复制的组件重量的平均值,并将该值设置为当前选定的组件",
|
||||
exec_handler=exec_handler,
|
||||
)
|
||||
|
||||
@@ -229,7 +229,7 @@ def create_action__add_influences(parent, session):
|
||||
def exec_handler():
|
||||
selection = cmds.ls(sl=True, l=True)
|
||||
if len(selection) < 2:
|
||||
logger.info("invalid selection: %s", selection)
|
||||
logger.info("无效选择: %s", selection)
|
||||
return
|
||||
api.add_influences(selection[:-1], selection[-1])
|
||||
cmds.select(selection[-1])
|
||||
@@ -238,8 +238,8 @@ def create_action__add_influences(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Add Influences",
|
||||
action_tooltip="Add selected influences to current skin cluster.",
|
||||
action_name=u"增加影响",
|
||||
action_tooltip="将选定的影响添加到当前皮肤集群。",
|
||||
exec_handler=exec_handler,
|
||||
)
|
||||
|
||||
@@ -289,7 +289,7 @@ def create_action__select_affected_vertices(parent, session):
|
||||
return __create_tool_action__(
|
||||
parent,
|
||||
session,
|
||||
action_name=u"Select Affected Vertices",
|
||||
action_tooltip="Select vertices that have non-zero weight for current influence.",
|
||||
action_name=u"选择受影响的顶点",
|
||||
action_tooltip="选择当前影响中权重不为要的顶点。",
|
||||
exec_handler=exec_handler,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user