Dynamically adding to repeating parameter groups

In GLSL TOP, there’s the vectors page, with a variable number of groups of parameters to define the uniforms. Is it possible to add or remove uniforms?

Same thing for constant CHOP, etc.

In the parameter UI panel you can click the add button to add more, but that doesn’t handle cases where the list is dynamically generated (for example in RayTK’s shader generator).

Well in the case of regular sequential operators you can use the sequence class:

example:

n = op(‘/project1/constant1’)
n.par.name0.sequence.numBlocks = 3

n = op(‘/project1/glsl1’)
python >>> n.par.uniname0.sequence.numBlocks = 3

More info:

Cheers

1 Like

Is there a way to create these sequence parameters on custom COMP, or this isn’t exposed yet?

Unfortunately we have not exposed sequencing to custom parameters yet.

No problem, thanks for info anyway :slight_smile: