You are using tcl code rather than expression language which is not
necessary.
Just use something like "Camera1.translate(refFrame)" where refFrame is
the name of your user knob that dictates the freeze frame.
On 25/07/15 12:13, jean-luc wrote:
Hi all.
I’m trying to make a card3d that reads the camera
position/orientation/focal/haperture for a chosen frame.
So far I have managed to get the current values from the camera node into the
card3d node but I’m having no luck freezing the value in the card3d based on a
frame number.
I have made a user knob in the card3d where I can type in a frame number but I
can’t find a way to include it in the expressions.
Any clue appreciated!
Cheers
Jean-Luc
set cut_paste_input [stack 0]
version 9.0 v6
push $cut_paste_input
Camera2 {
translate {{curve x1 -46.86717224 -46.78176117 -46.69502258 -46.60133362
-46.49479675 -46.3761673 -46.24979401 -46.11851883 -45.98080063 -45.83921814
-45.69579315 -45.54741669 -45.39286041 -45.23329926 -45.07129288 -44.90534592
-44.73511124 -44.56331635 -44.39016342 -44.21460724 -44.03630447} {curve x1
10.7158947 10.72329426 10.72901917 10.73317909 10.73708057 10.7416029
10.74696445 10.75333118 10.7607317 10.76839828 10.77566051 10.78277302
10.78992367 10.7965889 10.80292797 10.81013775 10.81856346 10.82698441
10.8341608 10.84014416 10.8450985} {curve x1 -134.2999725 -134.4136047
-134.5258789 -134.6435547 -134.7759399 -134.9231873 -135.0790558 -135.2397461
-135.4071198 -135.5773621 -135.7473145 -135.9217072 -136.1033325 -136.2901459
-136.4789276 -136.6728973 -136.8731995 -137.0754242 -137.2785034 -137.4846954
-137.6951904}}
rotate {{curve x1 2.34580636 2.280040979 2.281855345 2.284330845 2.272335768
2.323544264 2.396030903 2.441349506 2.455587149 2.503642321 2.544698
2.524883032 2.506432056 2.521956682 2.537404299 2.511016369 2.525126457
2.548155308 2.572134256 2.564255476 2.578071594} {curve x1 -40.12734985
-40.12635803 -40.12849426 -40.13124847 -40.12887192 -40.13011169 -40.130867
-40.13417435 -40.13299179 -40.13294983 -40.13288879 -40.13110733 -40.13029861
-40.13278198 -40.13180161 -40.1316185 -40.1343689 -40.1326561 -40.13677597
-40.13261032 -40.13327408} {curve x1 -0.4476558864 -0.4414544106 -0.4402637482
-0.4494505227 -0.4505181015 -0.4460328519 -0.4477212429 -0.4676540792
-0.4786237776 -0.4777699411 -0.4794820547 -0.4831857681 -0.4749012589
-0.4599528909 -0.4525681734 -0.4533542693 -0.4473361373 -0.4414656758
-0.4441825151 -0.4452542067 -0.4370557666}}
focal 53.68421173
haperture 23.76000023
vaperture 17.81999998
name Camera3
selected true
xpos 1058
ypos 563
}
CheckerBoard2 {
inputs 0
name CheckerBoard1
selected true
xpos 1222
ypos 437
}
Card3D {
inputs 2
translate {{"\[value input1.translate.x]"} {"\[value input1.translate.y]"}
{"\[value input1.translate.z]-1"}}
rotate {{"\[value input1.rotate.x]"} {"\[value input1.rotate.y]"} {"\[value
input1.rotate.z]"}}
uniform_scale 100
pivot {0 0 1}
lens_in_focal {{"\[value input1.focal]"}}
lens_in_haperture {{"\[value input1.haperture]"}}
shutteroffset centred
name Card3D1
selected true
xpos 1227
ypos 575
addUserKnob {20 User}
addUserKnob {3 RefFrame l "Reference frame"}
}
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users