Sequence Custom Parameters Loading Issue - Only First Parameter Applies

Hi! I’ve encountered an issue with
reproSequence.toe (50.1 KB)
Sequence custom parameters in TouchDesigner version 2023.12000. It seems that when we load Sequence custom parameters from a JSON file, only the first parameter is applied.

The issue appears if the base parameter already has an existing parameter set. Here’s a project to reproduce the issue:
reproSequence.toe (49.2 KB)

  1. Open the project.
  2. Select the moduleSave component and change/add Sequence parameters.
  3. Click on the “Save” button to save the moduleSave custom parameters to the jsonParameter DAT.
  4. Click on “Load Module” to apply what’s in jsonParameter to the moduleLoad component.
  5. It should work correctly (Check the moduleLoad component).
  6. Go back to moduleSave, change all your Sequence parameters, and repeat steps 3 and 4.
  7. Only the first Sequence parameter gets updated.

Thank you

1 Like

Hi @jcmacenamf,

thank you for the report and testcase. Can replicate and we are having a look.

cheers
Markus

Yeah I see the problem and will fix for next release.

Thanks @jcmacenamf for the great test file. I’ll send you a workaround once I get this all sorted.

If you want to try using the functions in this file, everything should work.
TDJSON.zip (6.8 KB)

Let me know how it goes if you do. Either way, this fix will be in next release.

Sorry I was busy in the last week. I will look at it

Hi!

I’m still encountering issues with Ints and Floats. I added print statements to investigate, and it seems the problem occurs here:

pg.mode = [ParMode.CONSTANT for val in v]

on line 608. For some reason, strings are updated, but Ints are not.


As shown in the attached image, when I try to change an Int value to 1, it remains at 0 (e.g., (0,)). However, Str values are updated correctly as expected.

You can test this by using the .toe file linked earlier and following the same repro steps. Let me know if you see the same behavior!

I also noticed strange behavior when the sequence was long enough to include parameters from other pages. For example:

  • Page 1 has a sequence with a block size of 4 parameters, followed by 3 additional parameters.
  • Page 2 has 1 parameter.

It looks like the sequence also includes the first parameter from Page 2, which shouldn’t happen. Unfortunately I don’t have repro for that

Sorry again for the responding delay. Thank you for your help!

Interesting… can you post a simple test file so I can make sure I’m looking at the same thing, please? I’m not sure exactly what I’m looking for, and everything seems to be working on my end.