Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread Howard Jones
works a treat!

 
Howard



>
>From: Ivan Busquets 
>To: Howard Jones ; Nuke user discussion 
>
>Sent: Tuesday, 25 October 2011, 23:40
>Subject: Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?
>
>
>Here, this is what I would do it if "speed" is not constant:
>
>(please note the expression could use some further work to avoid divisions by 
>0, etc, but you get the idea)
>
>set cut_paste_input [stack 0]
>version 6.3 v4
>push $cut_paste_input
>Text {
> font /Library/Fonts/Arial.ttf
> size 240
> yjustify center
> box {457 389 1371 1167}
> center {914 778}
> name Text2
> selected true
> xpos -353
> ypos -32
>}
>Crop {
> box {0 0 1828 1556}
> name Crop1
> selected true
> xpos -353
> ypos -6
>}
>set Na4151610 [stack 0]
>OFXuk.co.thefoundry.time.oflow_v100 {
> method Blend
> timing Speed
> timingFrame 1
> timingSpeed {{curve x1 1 x38 3}}
> filtering Normal
> warpMode Simple
> correctLuminance false
> automaticShutterTime false
> shutterTime 0
> shutterSamples 1
> vectorDetail 0.2
> smoothness 0.5
> blockSize 6
> Tolerances 0
> weightRed 0.3
> weightGreen 0.6
> weightBlue 0.1
> showVectors false
> cacheBreaker false
> name OFlow
> selected true
> xpos -240
> ypos 71
>}
>push $Na4151610
>NoOp {
> name NoOp1
> selected true
> xpos -353
> ypos 156
> addUserKnob {20 User}
> addUserKnob {7 avg_speed}
> avg_speed {{"OFlow.timingSpeed.integrate(OFlow.first_frame,frame) / 
>(frame-OFlow.first_frame)"}}
> addUserKnob {7 test l frame R 0 1000}
> test {{"(frame-OFlow.first_frame) * avg_speed + OFlow.first_frame" i}}
>}
>
>
>
>On Tue, Oct 25, 2011 at 3:31 PM, Ivan Busquets  wrote:
>
>Yes, you're right Howard.
>>That expression only works assuming the speed is constant.
>>
>>If the speed parameter is animated, you would have to find the average speed 
>>up until that point (the integrate from start to current, divided by 
>>current-start), and use that in place of "timingSpeed"
>>
>>
>>
>>
>>On Tue, Oct 25, 2011 at 2:52 PM, Howard Jones  wrote:
>>
>>Hi
>>>
>>>
>>>Just thought I'd try this but no luck, could be me.
>>> 
>>>Howard
>>>
>>>
>>>set cut_paste_input [stack 0]
>>>version 6.3 v5
>>>push $cut_paste_input
>>>add_layer {rgba rgba.beta}
>>>Text {
>>> font /Library/Fonts/Arial.ttf
>>> yjustify center
>>> box {480 270 1440 810}
>>> center {960 540}
>>> name Text1
>>> selected true
>>> xpos 1073
>>> ypos 139
>>>}
>>>set N2114dbf0 [stack 0]
>>>OFXuk.co.thefoundry.time.oflow_v100 {
>>> method Motion
>>> timing Speed
>>> timingFrame 1
>>> timingSpeed {{curve x16 0.5 x38 3}}
>>> filtering Normal
>>> warpMode Simple
>>> correctLuminance
 false
>>> automaticShutterTime false
>>> shutterTime 0
>>> shutterSamples 1
>>> vectorDetail 0.2
>>> smoothness 0.5
>>> blockSize 6
>>> Tolerances 0
>>> weightRed 0.3
>>> weightGreen 0.6
>>> weightBlue 0.1
>>> showVectors false
>>> cacheBreaker false
>>> name OFlow
>>> selected true
>>> xpos 1073
>>> ypos 242
>>>}
>>>push $N2114dbf0
>>>NoOp {
>>> name NoOp1
>>> selected true
>>> xpos 976
>>> ypos 238
>>> addUserKnob {20 User}
>>> addUserKnob {7 test l frame R 0 1000}
>>> test {{"(frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame"}}
>>>}
>>>
>>>
>>>
>>>
>>>>
>>>>From: Ivan Busquets 
>>>>To: Nuke user discussion 
>>>>Sent: Tuesday, 25 October 2011, 19:56
>>>>Subject: Re: [Nuke-users] OFlow: Source Frame at the current Frame using 
>>>>Speed?
>>>>
>>>>
>>>>
>>>>If it's set to speed, something like this should do it:
>>>>
>>>>(frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame
>>>>
>>>>
>>>>
>>>>On Tue, Oct 25, 2011 at 11:43 AM, David Schnee  wrote:
>>>>
>>>> 
>>>>>Does anyone know how to derive the actual source frames on the current
frame when using the 'Speed' timing method in OFlow?  I'm looking to
get a curve to export ascii data of the source frames on the current
frame for a range.
>>>>>
>>>>>Cheers,
>>>>>-Schnee
>>>>>--  \/ davids / comp \/ 177
/\ tippettstudio /\ sno 
>>>>>___
>>>>>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
>>>
>>
>
>
>___
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

Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread Ivan Busquets
Here, this is what I would do it if "speed" is not constant:

(please note the expression could use some further work to avoid divisions
by 0, etc, but you get the idea)

set cut_paste_input [stack 0]
version 6.3 v4
push $cut_paste_input
Text {
 font /Library/Fonts/Arial.ttf
 size 240
 yjustify center
 box {457 389 1371 1167}
 center {914 778}
 name Text2
 selected true
 xpos -353
 ypos -32
}
Crop {
 box {0 0 1828 1556}
 name Crop1
 selected true
 xpos -353
 ypos -6
}
set Na4151610 [stack 0]
OFXuk.co.thefoundry.time.oflow_v100 {
 method Blend
 timing Speed
 timingFrame 1
 timingSpeed {{curve x1 1 x38 3}}
 filtering Normal
 warpMode Simple
 correctLuminance false
 automaticShutterTime false
 shutterTime 0
 shutterSamples 1
 vectorDetail 0.2
 smoothness 0.5
 blockSize 6
 Tolerances 0
 weightRed 0.3
 weightGreen 0.6
 weightBlue 0.1
 showVectors false
 cacheBreaker false
 name OFlow
 selected true
 xpos -240
 ypos 71
}
push $Na4151610
NoOp {
 name NoOp1
 selected true
 xpos -353
 ypos 156
 addUserKnob {20 User}
 addUserKnob {7 avg_speed}
 avg_speed {{"OFlow.timingSpeed.integrate(OFlow.first_frame,frame) /
(frame-OFlow.first_frame)"}}
 addUserKnob {7 test l frame R 0 1000}
 test {{"(frame-OFlow.first_frame) * avg_speed + OFlow.first_frame" i}}
}


On Tue, Oct 25, 2011 at 3:31 PM, Ivan Busquets wrote:

> Yes, you're right Howard.
> That expression only works assuming the speed is constant.
>
> If the speed parameter is animated, you would have to find the average
> speed up until that point (the integrate from start to current, divided by
> current-start), and use that in place of "timingSpeed"
>
>
>
> On Tue, Oct 25, 2011 at 2:52 PM, Howard Jones wrote:
>
>> Hi
>>
>> Just thought I'd try this but no luck, could be me.
>>
>> Howard
>>
>> set cut_paste_input [stack 0]
>> version 6.3 v5
>> push $cut_paste_input
>> add_layer {rgba rgba.beta}
>> Text {
>>  font /Library/Fonts/Arial.ttf
>>  yjustify center
>>  box {480 270 1440 810}
>>  center {960 540}
>>  name Text1
>>  selected true
>>  xpos 1073
>>  ypos 139
>> }
>> set N2114dbf0 [stack 0]
>> OFXuk.co.thefoundry.time.oflow_v100 {
>>  method Motion
>>  timing Speed
>>  timingFrame 1
>>  timingSpeed {{curve x16 0.5 x38 3}}
>>  filtering Normal
>>  warpMode Simple
>>  correctLuminance false
>>  automaticShutterTime false
>>  shutterTime 0
>>  shutterSamples 1
>>  vectorDetail 0.2
>>  smoothness 0.5
>>  blockSize 6
>>  Tolerances 0
>>  weightRed 0.3
>>  weightGreen 0.6
>>  weightBlue 0.1
>>  showVectors false
>>  cacheBreaker false
>>  name OFlow
>>  selected true
>>  xpos 1073
>>  ypos 242
>> }
>> push $N2114dbf0
>> NoOp {
>>  name NoOp1
>>  selected true
>>  xpos 976
>>  ypos 238
>>  addUserKnob {20 User}
>>  addUserKnob {7 test l frame R 0 1000}
>>  test {{"(frame-OFlow.first_frame) * OFlow.timingSpeed +
>> OFlow.first_frame"}}
>> }
>>
>>
>> --
>> *From:* Ivan Busquets 
>> *To:* Nuke user discussion 
>> *Sent:* Tuesday, 25 October 2011, 19:56
>> *Subject:* Re: [Nuke-users] OFlow: Source Frame at the current Frame
>> using Speed?
>>
>> If it's set to speed, something like this should do it:
>>
>> (frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame
>>
>>
>> On Tue, Oct 25, 2011 at 11:43 AM, David Schnee wrote:
>>
>> **
>> Does anyone know how to derive the actual source frames on the current
>> frame when using the 'Speed' timing method in OFlow?  I'm looking to get a
>> curve to export ascii data of the source frames on the current frame for a
>> range.
>>
>> Cheers,
>> -Schnee
>>
>> --
>>
>> \/ davids / comp \/ 177
>> /\ tippettstudio /\ sno
>>
>>
>> ___
>> 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
>>
>
>
___
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

Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread Ivan Busquets
Yes, you're right Howard.
That expression only works assuming the speed is constant.

If the speed parameter is animated, you would have to find the average speed
up until that point (the integrate from start to current, divided by
current-start), and use that in place of "timingSpeed"


On Tue, Oct 25, 2011 at 2:52 PM, Howard Jones wrote:

> Hi
>
> Just thought I'd try this but no luck, could be me.
>
> Howard
>
> set cut_paste_input [stack 0]
> version 6.3 v5
> push $cut_paste_input
> add_layer {rgba rgba.beta}
> Text {
>  font /Library/Fonts/Arial.ttf
>  yjustify center
>  box {480 270 1440 810}
>  center {960 540}
>  name Text1
>  selected true
>  xpos 1073
>  ypos 139
> }
> set N2114dbf0 [stack 0]
> OFXuk.co.thefoundry.time.oflow_v100 {
>  method Motion
>  timing Speed
>  timingFrame 1
>  timingSpeed {{curve x16 0.5 x38 3}}
>  filtering Normal
>  warpMode Simple
>  correctLuminance false
>  automaticShutterTime false
>  shutterTime 0
>  shutterSamples 1
>  vectorDetail 0.2
>  smoothness 0.5
>  blockSize 6
>  Tolerances 0
>  weightRed 0.3
>  weightGreen 0.6
>  weightBlue 0.1
>  showVectors false
>  cacheBreaker false
>  name OFlow
>  selected true
>  xpos 1073
>  ypos 242
> }
> push $N2114dbf0
> NoOp {
>  name NoOp1
>  selected true
>  xpos 976
>  ypos 238
>  addUserKnob {20 User}
>  addUserKnob {7 test l frame R 0 1000}
>  test {{"(frame-OFlow.first_frame) * OFlow.timingSpeed +
> OFlow.first_frame"}}
> }
>
>
> --
> *From:* Ivan Busquets 
> *To:* Nuke user discussion 
> *Sent:* Tuesday, 25 October 2011, 19:56
> *Subject:* Re: [Nuke-users] OFlow: Source Frame at the current Frame using
> Speed?
>
> If it's set to speed, something like this should do it:
>
> (frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame
>
>
> On Tue, Oct 25, 2011 at 11:43 AM, David Schnee  wrote:
>
> **
> Does anyone know how to derive the actual source frames on the current
> frame when using the 'Speed' timing method in OFlow?  I'm looking to get a
> curve to export ascii data of the source frames on the current frame for a
> range.
>
> Cheers,
> -Schnee
>
> --
>
> \/ davids / comp \/ 177
> /\ tippettstudio /\ sno
>
>
> ___
> 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
>
___
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

Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread Howard Jones
Hi

Just thought I'd try this but no luck, could be me.

 
Howard

set cut_paste_input [stack 0]
version 6.3 v5
push $cut_paste_input
add_layer {rgba rgba.beta}
Text {
 font /Library/Fonts/Arial.ttf
 yjustify center
 box {480 270 1440 810}
 center {960 540}
 name Text1
 selected true
 xpos 1073
 ypos 139
}
set N2114dbf0 [stack 0]
OFXuk.co.thefoundry.time.oflow_v100 {
 method Motion
 timing Speed
 timingFrame 1
 timingSpeed {{curve x16 0.5 x38 3}}
 filtering Normal
 warpMode Simple
 correctLuminance false
 automaticShutterTime false
 shutterTime 0
 shutterSamples 1
 vectorDetail 0.2
 smoothness 0.5
 blockSize 6
 Tolerances 0
 weightRed 0.3
 weightGreen 0.6
 weightBlue 0.1
 showVectors false
 cacheBreaker false
 name OFlow
 selected true
 xpos 1073
 ypos 242
}
push $N2114dbf0
NoOp {
 name NoOp1
 selected true
 xpos 976
 ypos 238
 addUserKnob {20 User}
 addUserKnob {7 test l frame R 0 1000}
 test {{"(frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame"}}
}




>
>From: Ivan Busquets 
>To: Nuke user discussion 
>Sent: Tuesday, 25 October 2011, 19:56
>Subject: Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?
>
>
>If it's set to speed, something like this should do it:
>
>(frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame
>
>
>
>On Tue, Oct 25, 2011 at 11:43 AM, David Schnee  wrote:
>
> 
>>Does anyone know how to derive the actual source frames on the current
frame when using the 'Speed' timing method in OFlow?  I'm looking to
get a curve to export ascii data of the source frames on the current
frame for a range.
>>
>>Cheers,
>>-Schnee
>>--  \/ davids / comp \/ 177
/\ tippettstudio /\ sno 
>>___
>>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

Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread David Schnee

Thank you kindly Ivan, this is perfect.

I do think it should be included though for any retime tools to return 
the source frame during 'Speed' timing methods, I'll setup a user tab 
that does this for ours here.


Cheers,
-Schnee

On 10/25/2011 11:56 AM, Ivan Busquets wrote:

If it's set to speed, something like this should do it:

(frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame


On Tue, Oct 25, 2011 at 11:43 AM, David Schnee > wrote:


Does anyone know how to derive the actual source frames on the
current frame when using the 'Speed' timing method in OFlow?  I'm
looking to get a curve to export ascii data of the source frames
on the current frame for a range.

Cheers,
-Schnee

-- 


\/ davids / comp \/ 177
/\ tippettstudio /\ sno
 



___
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



--

\/ davids / comp \/ 177
/\ tippettstudio /\ sno

___
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

Re: [Nuke-users] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread Ivan Busquets
If it's set to speed, something like this should do it:

(frame-OFlow.first_frame) * OFlow.timingSpeed + OFlow.first_frame


On Tue, Oct 25, 2011 at 11:43 AM, David Schnee  wrote:

> **
> Does anyone know how to derive the actual source frames on the current
> frame when using the 'Speed' timing method in OFlow?  I'm looking to get a
> curve to export ascii data of the source frames on the current frame for a
> range.
>
> Cheers,
> -Schnee
>
> --
>
> \/ davids / comp \/ 177
> /\ tippettstudio /\ sno
>
>
> ___
> 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] OFlow: Source Frame at the current Frame using Speed?

2011-10-25 Thread David Schnee
Does anyone know how to derive the actual source frames on the current 
frame when using the 'Speed' timing method in OFlow?  I'm looking to get 
a curve to export ascii data of the source frames on the current frame 
for a range.


Cheers,
-Schnee

--

\/ davids / comp \/ 177
/\ tippettstudio /\ sno

___
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