node_calculator
node_calculator copied to clipboard
Create Maya node-network by entering a math-formula.
`a` is an NcNode, without any attrs. `b` is an NcAttrs, with the attribute `tx`. `b.ty` is concatenated onto `b.tx` and gives `b.tx.ty` rather than replacing it with `b.ty`. This...
Add a resolution setup that picks the most efficient node available to do the job. Right now a simple 1D-multiplication uses the overloaded multiplyDivide node. That could be done in...
Using methods instead of properties would be a major improvement: - `plusMinusNode.input3D[0].input3Dx` would be possible (set/getitem could be used for attribute definition). - No more confusion what's an attribute and...
I believe that by now most people use this tool under the name of "noca" anyways, so there's no need to keep the long name.
If it's a live connection: Grab worldMatrix and decompose it, otherwise use the worldSpace-flag..
As example: implement: https://en.wikipedia.org/wiki/Smoothstep
Currently ``` with noca.Tracer(pprint_trace=True): b.tx = noca.Op.set_range(a.tx) ``` results in ``` var1 = cmds.createNode('setRange', name='nc_SET_RANGE_translateX_0_1_0_1_setRange') cmds.connectAttr('A.translateX', var1 + '.valueX', force=True) cmds.setAttr(var1 + '.minX', 0) cmds.setAttr(var1 + '.maxX', 1) cmds.setAttr(var1 +...
Give warning or check for compound attributes that aren't fully initialized: A compound attribute only truly exists once all its children are created. Check: http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/addAttr.html