Call to custom pulse parameter from replicator script on master node

i create a container ‘to replicate’ with a custom pulse parameter named “Custompulse”.
Inside that “to replicate” i add a print function using a parameterexec DAT and a ChopExec Dat , as a debug

Then i use a replicate node to replicate this container , inside the replicator call back i would like to pulse this parameter

for c in newOps:
	print("create "+ c)
	c.par.Custompulse.pulse()
	pass

But looks like the pulse is never called
please check the toe if your willing to help !

thanks all
build 2023.12230

replicate.pulse.2.toe (5.7 KB)

Yeah, I see there is a timing issue here. I’ll add this to the bug queue.

For now, you can use this as a workaround:
run("args[0].par.Custompulse.pulse()", c, endFrame=1)

1 Like

Looked into this. It’s a little bit of a tricky timing thing. Whatever we come up with will be in the upcoming experimental builds…

Another workaround is to force cook the parExec that is reacting to the pulse right before you call the pulse function.

Thanks for your feedback !

works fine !

Small update here. In the next experimental release, you will be able to simplify this solution by calling c.par.Custompulse.pulse(endFrame=1) instead of using the run command.