Operator name validation

Hi, is there a python function to automatically validate a name for an operator? I can handle alpha numeric pretty easily, but since we are unicode friendly now, just filtering non alpha numeric would cover way too much ground.

I tried to create an operator, change its name, and hoping to get back a valid name, but got rejected by python :frowning:

I would really like to get my hand on the function that automatically coverts operator names when you type it in by hand.

Thank you.

Da.

tdu.legalName() will convert a string to a legal OP name.

1 Like

Awesome. Thanks, Malcolm.