Page 1 of 1

CinemachinePriority cut parameter not working

Posted: Wed Apr 28, 2021 11:59 pm
by destrucity
Hi!

I am trying to use the sequencer command CinemachinePriority. It works fine, except the "cut" optional prameter only seems to work for the first call to CinemachinePriority.

For example, with this sequence script:

Code: Select all

CinemachinePriority(PeteVcam,99,cut);
CinemachinePriority(JodyVcam,100,cut)@2;
{{default}}
The game will cut to PeteVcam, but then ease in/out to JodyVcam. I can switch the order so that we cut to JodyVcam first, but I can't get two consecutive cuts.

I am on Unity 2019.4.20, Cinemachine 2.7.3 and the academic version of DS 2.2.15. Thanks again for letting me use DS for my class, it's great (and at least some of the students are going on to buy the full version ;) ).

Re: CinemachinePriority cut parameter not working

Posted: Thu Apr 29, 2021 9:21 am
by Tony Li
Hi,

Are there any errors or warnings in the Console window? Maybe a typo in the second command?

Re: CinemachinePriority cut parameter not working

Posted: Thu Apr 29, 2021 9:40 am
by destrucity
Thanks for the reply!

There are no console warnings / errors and it does turn green when I hit the check button:

Image

Re: CinemachinePriority cut parameter not working

Posted: Thu Apr 29, 2021 11:34 am
by Tony Li
Can you send a reproduction project to tony (at) pixelcrushers.com?

Re: CinemachinePriority cut parameter not working

Posted: Thu Apr 29, 2021 8:37 pm
by Tony Li
Summarizing the solution for future readers: In DS version 2.2.16 and earlier, the CinemachinePriority() sequencer command needed to be updated to handle cuts properly with Cinemachine 2.7+.