Creating editable history nodes in MEL..?

I've written a fair few MEL scripts that require an input value and I'd like to be able to generate a (user editable) history entry/input node for them.

for example, If I chamfer a vertex, there is a polyChamfer1 input entry in my channel box that I can change the chamfer width with, and it updates in my viewport on the fly..

Is there any way to do the same thing with a MEL script, for example I have a script that deletes edges based on their angle, and I'd like there to be an INPUT where you can change the given angle and have it affect the object (though I'm not botherered about it being dynamic)

is this something you can do with MEL?, or are history/input nodes only something you can do with the API..?

if this is achieveable with MEL, can anyone point me in the direction of any instructions..?

:nathaN

Don't confuse node-calculation ( or graph evaluation ) with calculations that happen inside script. When script executes it mostly results in creating some nodal structure. This nodal structure evaluates "automatically" or - on api level if you wish. You have some limited control over this evaluation via mel by using expressions.

For some custom "history" you can create any kind of node ( say transform ), add custom attributes and connect them to whatever attributes they need to drive in other nodes.

You can't create full custom node ( with custom calculations, total control over node's data etc. ) without using api.

If you want more specific suggestions - elaborate in more detail on what exactly you want to do.

Actualy it is ppossible to do a null node that controlls something in a scriptjob thats carefully designed to react to changes in the null so rthat it reverts to a previous situation and then modiefies again...

Its not economical tough!

Also note that some commands like delete have vertexlists, wch mat be changed by such a script without problem so only the logic should be needed to run withourt problems