Drag-and-Drop errors after version 2025.XXXXX

Hi this is my content output system and it worked perfectly on version 2023.12600.

However, as shown in the image, drag-and-drop content doesn’t work after version 2025.
The Tab button doesn’t work either (yellow circle).

There were errors inside node but is there any way to fix this?

for_debug.toe (118.3 KB)

Hi @ats_1004,

looking at how paths are constructed in your scripts, it looks like there are extra ' (single quotes) around the path strings which seem to upset the op() method in 2025.30k.

For example:

i = 1
path = '\'' + '/project1/button' + str(i) + '/out1' + '\''
op(path)

would have worked in 2023.10k but now returns None

We will have a look why this is happening but generally those escaped extra quotes are unnecessary for your scripts to work. You can simplify it like this:

i = 1
path = '/project1/button' + str(i) + '/out1'
op(path)

alternatively i like using the .format or f-strings instead of concatenation:

i = 1
# f-strings
path = f'/project1/button{i}/out1'
# .format
path = '/project1/button{}/out1'.format(i)

As it’s cleaner is it also less error-prone with not having to keep track of + and quote marks.
There is a lengthy explanation here on string formatting which can shed more light on the different approaches:

cheers
Markus

1 Like

Hey Markus, thanks.
Oh that’s true, could you tell me which operator in my toe file?

Hi @ats_1004,

from a quick look, I found it in:

  • /project1/ATSvj/Button/loadTable starting line 15
  • /project1/ATSvj/Button/button*/drop starting line 9

cheers
Markus

Hey Markus, I worked on it, but it still keeps returning None.
Could you send me a fixed TOE file as an example?
Just one button would be helpful.

Hi @ats_1004,

attached here a file that works for me. Let me know what your solution was that was still returning None so we can see why that would have been.

cheers
Markus
for_debugMH.toe (118.7 KB)

1 Like

Hey Markus, it works perfectly.
Thanks for taking the time.
I’ll fix my main system the same way.
Really appreciate it.