Skip to content
weSkelDOCUMENTATION
Documentation/API reference/RemapValue

RemapValue

Remap a value through scalar and color ramps.

ClassAPI 2.0MATHS
objectNodeDGNodeRemapValue
from weSkel.src.core.node.dg.remap_value.lib import RemapValue

Run in Maya or an initialized mayapy process. Import om only if your script uses OpenMaya types.

Item Value
Classe RemapValue
Module weSkel.src.core.node.dg.remap_value.lib
Maya type remapValue
Direct parent DGNode
Inventory Members defined or overridden here; inherited members are grouped by parent in each section.

Signature : RemapValue(node) → RemapValue.

Parameter Accepted type Default
node Union[str, om.MObject, om.MObjectHandle, om.MFnDependencyNode] Required

Wraps an existing node or stages a wrapper for an absent name; does not create the node. Call create() separately. An incompatible object or type can raise TypeError. Shared identity can return an already registered compatible wrapper.

Python properties defined or overridden here. R: read-only; R/W: a setter exists, subject to the member notes. om.* types belong to maya.api.OpenMaya.

No new Python property; see inherited members and specs below.

Properties inherited from DGNode15
Property Return type Access Description
dep_fn om.MFnDependencyNode R Live function set; unattached object when the node is missing.
uuid str | None R Live UUID, or the last staged value if still available.
name str | None R/W Live name, otherwise staged name.
absolute_name str | None R Absolute namespace name from MFnDependencyNode.absoluteName(); None without a node.
stripped_name str | None R/W Name without its namespace, or None when unnamed.
namespace str | None R/W Normalized namespace such as a:b; None at the root.
plugs Plugs | None R Live node plug manager; None otherwise.
is_valid_dep_fn bool R Function-set compatibility with the current MObject.
is_default_node bool R Whether this is a Maya default node; False without a node.
is_from_referenced_file bool R Whether the node comes from a referenced file; False without a node.
is_locked bool R/W Node lock, separate from plug locks.
is_shared bool R Shared state reported by Maya; False without a node.
plugin_name str | None R Associated Maya plugin name, possibly an empty string; None without a node.
affect_animation bool R Result of MFnDependencyNode.affectsAnimation(); False without a node.
type str | None R/W Live native type or staged type.
Properties inherited from Node10
Property Return type Access Description
mobject om.MObject R/W Live Maya object, or a null object.
mobject_handle om.MObjectHandle R/W Handle associated with the node.
api_type int | None R Maya API type identifier.
api_type_str str R API type name, for example "kTime".
exists bool R The wrapper currently has a live node.
is_null bool R The returned Maya object is null.
is_alive bool R The object exists with a valid, live handle.
is_valid_handle bool R Validity of the stored handle.
is_dag_node bool R Compatibility with om.MFn.kDagNode.
hash_code int R Maya handle hash.

Defaults and flags below are spec declarations, not guaranteed live values. A descriptor can return a proxy: .value reads its value; .plug accesses the Plug. Proxy names describe results, not private classes to import. Observed types come from a test fixture; disconnected geometry inputs may notably return None.

For writes where failure must be checked, use the Plug explicitly and verify live state. Descriptor setters do not propagate every native failure.

Property Maya plug Returns
color color ArrayCompoundProxy
color_position color[].color_Position IndexedPathProxy
color_color color[].color_Color IndexedPathProxy
color_color_r color[].color_Color.color_ColorR IndexedPathProxy
color_color_g color[].color_Color.color_ColorG IndexedPathProxy
color_color_b color[].color_Color.color_ColorB IndexedPathProxy
color_interp color[].color_Interp IndexedPathProxy
input_max inputMax _ValuePlugProxy · .value: float
input_min inputMin _ValuePlugProxy · .value: float
input_value inputValue _ValuePlugProxy · .value: float
out_color outColor _ValuePlugProxy · .value: tuple
out_color_r outColor.outColorR _ValuePlugProxy · .value: float
out_color_g outColor.outColorG _ValuePlugProxy · .value: float
out_color_b outColor.outColorB _ValuePlugProxy · .value: float
out_value outValue _ValuePlugProxy · .value: float
output_max outputMax _ValuePlugProxy · .value: float
output_min outputMin _ValuePlugProxy · .value: float
value value ArrayCompoundProxy
value_position value[].value_Position IndexedPathProxy
value_float_value value[].value_FloatValue IndexedPathProxy
value_interp value[].value_Interp IndexedPathProxy

node.colorNative spec

Access to native plug color.

Item Type / behavior
Maya path color
Property return ArrayCompoundProxy
Declared kind array:compound
Declared default ()
Flags array, input, output, connectable, stored, keyable
Underlying plug node.color.plug

node.color_positionNative spec

Access to native plug color[].color_Position.

Item Type / behavior
Maya path color[].color_Position
Property return IndexedPathProxy
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["color"][i1]["color_Position"]

Observed limitation on the tested fixture: AttributeError: Child 'color_Position' not found under 'api_RemapValue.color[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.color_colorNative spec

Access to native plug color[].color_Color.

Item Type / behavior
Maya path color[].color_Color
Property return IndexedPathProxy
Declared kind float3
Declared default ()
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["color"][i1]["color_Color"]

Observed limitation on the tested fixture: AttributeError: Child 'color_Color' not found under 'api_RemapValue.color[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.color_color_rNative spec

Access to native plug color[].color_Color.color_ColorR.

Item Type / behavior
Maya path color[].color_Color.color_ColorR
Property return IndexedPathProxy
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["color"][i1]["color_Color"]["color_ColorR"]

Observed limitation on the tested fixture: AttributeError: Child 'color_Color' not found under 'api_RemapValue.color[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.color_color_gNative spec

Access to native plug color[].color_Color.color_ColorG.

Item Type / behavior
Maya path color[].color_Color.color_ColorG
Property return IndexedPathProxy
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["color"][i1]["color_Color"]["color_ColorG"]

Observed limitation on the tested fixture: AttributeError: Child 'color_Color' not found under 'api_RemapValue.color[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.color_color_bNative spec

Access to native plug color[].color_Color.color_ColorB.

Item Type / behavior
Maya path color[].color_Color.color_ColorB
Property return IndexedPathProxy
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["color"][i1]["color_Color"]["color_ColorB"]

Observed limitation on the tested fixture: AttributeError: Child 'color_Color' not found under 'api_RemapValue.color[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.color_interpNative spec

Access to native plug color[].color_Interp.

Item Type / behavior
Maya path color[].color_Interp
Property return IndexedPathProxy
Declared kind enum
Declared default 0
Flags input, output, connectable, stored, keyable
Native enum values 0 = None, 1 = Linear, 2 = Smooth, 3 = Spline
Verified explicit path · Plug node.plugs["color"][i1]["color_Interp"]

Observed limitation on the tested fixture: AttributeError: Child 'color_Interp' not found under 'api_RemapValue.color[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.input_maxNative spec

Access to native plug inputMax.

Item Type / behavior
Maya path inputMax
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 1.0
Flags input, output, connectable, stored, keyable
Read node.input_max.value
Descriptor assignment node.input_max = value

node.input_minNative spec

Access to native plug inputMin.

Item Type / behavior
Maya path inputMin
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Read node.input_min.value
Descriptor assignment node.input_min = value

node.input_valueNative spec

Access to native plug inputValue.

Item Type / behavior
Maya path inputValue
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Read node.input_value.value
Descriptor assignment node.input_value = value

node.out_colorNative spec

Access to native plug outColor.

Item Type / behavior
Maya path outColor
Property return _ValuePlugProxy · .value: tuple
Declared kind float3
Declared default ()
Flags output, connectable
Read node.out_color.value

node.out_color_rNative spec

Access to native plug outColor.outColorR.

Item Type / behavior
Maya path outColor.outColorR
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags output, connectable
Read node.out_color_r.value

node.out_color_gNative spec

Access to native plug outColor.outColorG.

Item Type / behavior
Maya path outColor.outColorG
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags output, connectable
Read node.out_color_g.value

node.out_color_bNative spec

Access to native plug outColor.outColorB.

Item Type / behavior
Maya path outColor.outColorB
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags output, connectable
Read node.out_color_b.value

node.out_valueNative spec

Access to native plug outValue.

Item Type / behavior
Maya path outValue
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags output, connectable
Read node.out_value.value

node.output_maxNative spec

Access to native plug outputMax.

Item Type / behavior
Maya path outputMax
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 1.0
Flags input, output, connectable, stored, keyable
Read node.output_max.value
Descriptor assignment node.output_max = value

node.output_minNative spec

Access to native plug outputMin.

Item Type / behavior
Maya path outputMin
Property return _ValuePlugProxy · .value: float
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Read node.output_min.value
Descriptor assignment node.output_min = value

node.valueNative spec

Access to native plug value.

Item Type / behavior
Maya path value
Property return ArrayCompoundProxy
Declared kind array:compound
Declared default ()
Flags array, input, output, connectable, stored, keyable
Underlying plug node.value.plug

node.value_positionNative spec

Access to native plug value[].value_Position.

Item Type / behavior
Maya path value[].value_Position
Property return IndexedPathProxy
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["value"][i1]["value_Position"]

Observed limitation on the tested fixture: AttributeError: Child 'value_Position' not found under 'api_RemapValue.value[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.value_float_valueNative spec

Access to native plug value[].value_FloatValue.

Item Type / behavior
Maya path value[].value_FloatValue
Property return IndexedPathProxy
Declared kind numeric:float
Declared default 0.0
Flags input, output, connectable, stored, keyable
Verified explicit path · Plug node.plugs["value"][i1]["value_FloatValue"]

Observed limitation on the tested fixture: AttributeError: Child 'value_FloatValue' not found under 'api_RemapValue.value[0]'. Indices are Maya logical indices; choose existing or intended elements.

node.value_interpNative spec

Access to native plug value[].value_Interp.

Item Type / behavior
Maya path value[].value_Interp
Property return IndexedPathProxy
Declared kind enum
Declared default 0
Flags input, output, connectable, stored, keyable
Native enum values 0 = None, 1 = Linear, 2 = Smooth, 3 = Spline
Verified explicit path · Plug node.plugs["value"][i1]["value_Interp"]

Observed limitation on the tested fixture: AttributeError: Child 'value_Interp' not found under 'api_RemapValue.value[0]'. Indices are Maya logical indices; choose existing or intended elements.

Specs inherited from DGNode6
Property Maya plug Returns Description
message message None Node message plug; used for connections, with no numeric value.
frozen frozen _ValuePlugProxy · .value: bool Native evaluation freeze state.
is_historically_interesting isHistoricallyInteresting _ValuePlugProxy · .value: int Node interest level in Maya history.
bin_membership binMembership _ValuePlugProxy · .value: str Maya bin membership.
caching_enabled caching _ValuePlugProxy · .value: bool Native node caching switch.
caching_node_state nodeState _ValuePlugProxy · .value: int Native nodeState evaluation state.

No additional public method; inherited methods remain available.

Methods inherited from DGNode7
Method Returns Description
create None Creates a missing node; does nothing if it already exists.
delete None Disconnects live connections, detaches the wrapper and deletes the node.
snapshot DGSnapshot Captures and stores an identity and spec-driven SVD dictionary.
snapshot_svd SVDSnapshot Captures Source / Value / Destinations for the requested list.
svd SVDView Returns a read-only live view of source, value and destinations; it is not a frozen capture.
finalize None Applies all sources, then undriven values, then destinations; enabled FSET dispatch follows.
clear_attr_cache None Clears this instance attribute cache; does not delete nodes or clear the global wrapper registry.
Methods inherited from Node2
Method Returns Description
has_fn(fn_type) bool Test compatibility with a Maya function set.
clear_node_registry() None Detach registered wrappers and clear their shared registry.
Attribute Value / composition
NODE_TYPE 'remapValue'
SPEC_LAYERS get_dg_specs_all, get_remap_value_specs_all

NODE_REGISTRY and other class attributes not overridden here remain inherited. Exported Snapshot types describe dictionaries; use node.snapshot() to capture state.

Point Behavior
Identity A node recreated under the same name is a new Maya object.
Creation and geometry The constructor creates nothing; call create() before live operations.
Capture Snapshots can contain Maya objects; do not assume JSON-ready data or complete geometry reconstruction.

Self-contained Maya Python Script Editor example. In mayapy, initialize maya.standalone before this block. The demonstration creates its own nodes and removes them in finally.

from uuid import uuid4
from weSkel.src.core.node.dg.remap_value.lib import RemapValue
node = RemapValue("api_remap_value_" + uuid4().hex[:8])
try:
node.create()
node.input_min = 0.0
node.input_max = 1.0
node.output_min = 0.0
node.output_max = 10.0
for index, position in enumerate((0.0, 1.0)):
node.plugs["value"][index]["value_Position"].value = position
node.plugs["value"][index]["value_FloatValue"].value = position
node.plugs["value"][index]["value_Interp"].value = 1
node.input_value = 0.5
assert abs(node.out_value.value - 5.0) < 1e-6
print("RemapValue: native evaluation OK")
finally:
node.delete(snapshot=False)

Expected result : RemapValue: native evaluation OK.

SDK checkpoint 87c3486. Member inventory checked against loaded classes in Maya 2025.3 and 2026.3; reads and compatibility are specified in the member cards. Example run in both versions, including explicitly documented expected failures. The example does not cover every method. Listed limitations remain in source; these checks do not validate the compiled package.