You could use the lerp command.  which you can dissolve between 2
parameters.
check out the example below


set cut_paste_input [stack 0]
version 9.0 v8
BackdropNode {
 inputs 0
 name BackdropNode1
 tile_color 0xbc632cff
 label "blending between \n2 cameras"
 note_font_size 42
 selected true
 xpos -480
 ypos -144
 bdwidth 378
 bdheight 290
}
push $cut_paste_input
Camera2 {
 translate {1.684999943 0 0}
 rotate {0 13 0}
 name CameraB
 selected true
 xpos -284
 ypos -13
}
Camera2 {
 inputs 0
 translate {-1.208439112 0 1.349363685}
 rotate {0 15 0}
 name CameraA
 selected true
 xpos -439
 ypos 1
}
Camera2 {
 inputs 0
 translate {{lerp(CameraA.translate,CameraB.translate,slider)}
{lerp(CameraA.translate,CameraB.translate,slider)}
{lerp(CameraA.translate,CameraB.translate,slider)}}
 rotate {{lerp(CameraA.rotate,CameraB.rotate,slider)}
{lerp(CameraA.rotate,CameraB.rotate,slider)}
{lerp(CameraA.rotate,CameraB.rotate,slider)}}
 scaling {{lerp(CameraA.scaling,CameraB.scaling,slider)}
{lerp(CameraA.scaling,CameraB.scaling,slider)}
{lerp(CameraA.scaling,CameraB.scaling,slider)}}
 name Camera_dissolved
 selected true
 xpos -360
 ypos 76
 addUserKnob {20 User}
 addUserKnob {7 slider}
 slider 0.515
}



On 23 September 2016 at 19:19, Bruno-Pierre Jobin <bpjo...@gmail.com> wrote:

> Got it working. Thank you Michael!
>
> --
> Bruno-Pierre Jobin
>
> On Sep 20, 2016, at 8:26 PM, Bruno-Pierre Jobin <bpjo...@gmail.com> wrote:
>
> Not sure why I’m getting this error...
>
> <Screen Shot 2016-09-20 at 8.25.32 PM.png>
>
> On Sep 20, 2016, at 5:06 PM, Michael Habenicht <m...@tinitron.de> wrote:
>
> If you have a knob called mix which contains the amount of one of the
> cameras the expression should be this: Camera4.world_matrix*mix+
> Camera5.world_matrix*(1-mix)
> With this you should be able to mix between the two cmaera paths.
>
> Best regards,
> Michael
>
> On September 20, 2016 10:21:04 PM CEST, Bruno-Pierre Jobin <
> bpjo...@gmail.com> wrote:
>
> How would you guys mix animations from Camera 4 and Camera 5 into
> Camera 6? Putting Camera4.world_matrix+Camera5.world_matrix into
> local_matrix knob won’t work and I can understand why. But I’m having
> trouble figuring out what's the right expression.
>
> Thank you
>
>
>
> set cut_paste_input [stack 0]
> version 10.0 v3
> Camera2 {
> inputs 0
> translate {{curve x1021 50 x1041 150} {curve x1021 50 x1041 150} {curve
> x1021 50 x1041 150}}
> name Camera5
> selected true
> xpos -1715
> ypos 6719
> }
> Camera2 {
> inputs 0
> useMatrix true
> matrix {
> {{Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}}
> {{Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}}
> {{Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}}
> {{Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}
> {Camera4.world_matrix((Camera4.world_matrix-Camera4.
> world_matrix)+Camera5.world_matrix)}}
> }
> name Camera6
> selected true
> xpos -1763
> ypos 6819
> }
> push $cut_paste_input
> Camera2 {
> translate {{curve i x1001 0 x1021 50} {curve i x1001 0 x1021 50} {curve
> i x1001 0 x1021 50}}
> name Camera4
> selected true
> xpos -1811
> ypos 6716
> }
> Scene {
> inputs 3
> name Scene6
> selected true
> xpos -1942
> ypos 6803
> }_______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> --
> Sent from my Android tab with K-9 Mail. Please excuse my brevity.
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
>
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to