If you do not do the first part (change the element mode) before using Convert Selection, it does not do anything.
The only thing I can think of, if it is possible, is add code to your OpenPanel script that stops it from opening if tS is in PE Mode
Is that possible?
Or at the very least, add:
Code: Select all
if(Node.ConExists(Node.FirstSelected(), 'Selection')) {
if(Node.Exists('Project/Windows Manager Space/ColorPickerFrame'))
if(Node.Exists('Scripts/CustomCommands/Color Picker/ClosePanel'))
ScriptObject.Execute('Scripts/CustomCommands/Color Picker/ClosePanel')
return;
}