Problem with cloning

Hi there,

I ran into a little problem with cloning.
I want to create a clone in python and set its parameters like so:

info = parent().create(baseCOMP, ‘testName’)
info.par.clone = ‘MovieInfo’
info.par.enablecloningpulse.pulse()
info.par.reinitnet.pulse()
info.cook(force=True)
info.par.Thumbnail = ‘./thumb’

As you can see, I tried pulsing the enablecloningpulse and the reinitnet and even forced cooking, but it always gives the error, that there is no parameter ‘Thumbnail’.
Of course a frame later it is there, but I thought that one of the pulses or force cooking should do it.

Is there something I overlooked?

Thanks

You have to delay a frame for the clone to take effect.

The alternative is using COMP.copy to start with all parameters ready to go.

Thank you Ivan, COMP.copy did the trick for me :slight_smile:

The wiki entry for the “enable cloning” parameter seems to be a bit misleading, though.

Enable Cloning enablecloning - Control if the OP should be actively cloned. The Pulse button can be used to instantaneously clone the contents.

Cheers, David