CardtoTrack v8.0
This location is for Registered Users Only.
Perhaps you need to login or register.
13.1, 13.0, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11 or later
Linux, Mac, Windows


how to: https://youtu.be/N-_M2lJWpe4 (a bit outdated but you will get an idea)
v8.00
- New features:
- Nuke 13 ready
- The default calculation length is now taken from Camera first and last animated frames.
- moved all python code to separated .py file (please add it to your plugin directory as well)
- important - i had limited time to test it, so will be glad to.
- 'knobChange' callbacks moved inside of the group to avoid trigering.
v7.05
- New features:
- Possible to export transform node only
- Transform node is replaced with Tproject gizmo in similar to Cproject.
- Possible to choose which which nodes you would like to ceate
- Fixed Bugs:
- If user was standing on frame outside of the comp frame range, error was risen since tool was trying to use this frame as a ref frame, now first frame of animation will be used instead
v7.04
- New features:
- CardToTrack Gizmo - Highpass mode added to Stabilize mode
- CProject Gizmo - added option to manually set reference frame
- Fixed Bugs:
- If Camera had no animation error was risen
- If pixel aspect ration was not 1 wrong resolution was output from CProject
v7.03
- CProject Gizmo added option to Soft/Hard crop or not crop at all, default is hard crop(concatenation preserved). In previous version concatenation was broken by crop.
- BUG fixed, in Geometry and Card modes there was mossing Wireframe preview.
v7.02
- added possibility to calculate from Axis or chain of Axises *
- added possibility to calculate from Deep *
- UI changes to provide more user friendly experience*
- Default frame range is taken from Camera animation and not from project frame range
- Some stability improvements(hope no new bugs introduced)
*Calculation from an Axis: Many times we provided with an animated Axis, in previous version i was copying values from an Axis to the card and calculating, the problem is that if by default an axis had unfortunate rotation like 90 degrees to the camera it was imposible to adjust it. With and Axis option you can connect few Axises together and Card to track will calculate the animation from the workd matrix of the Axis you connected to with CardToTrack.(Supports animated Axises)
*Calculation from Deep: Connect your Deep footage to the Extra input. (The position sampled on the reference frame and can not be animated)
*UI changes: Knob Groups are presented only if they are relevant.
Thanks to Adrian Pueyo for support!
-------------------------------------------------------------------------------------------------------------
Extract files into your plugin directory.
Paste those lines to your menu.py please:
1 2 3 4 5 |
m=nuke.menu('Nuke') |
Older versions:
v7.01
- fixed broken connection in CardToTrack Gizmo
v7.00
- scene size added
- grid hue/opacity added
- stabilization function added
- improved estimation for card passing the Camera origin
- CProject Gizmo reworked
- BUG fixes(and probably few new added :))
v6.05
added aditional input to the Gizmo 'Extra' and pulldown choice:
- Geometry - if you have a Geometry of the scene you can pick the exact position in one click
- Wpos pass - if you have a World position pass you can pick the exact position in one click. (it has to match Nuke World xyz, shuffled to 'rgb')
- Card - now it is possible to connect external Card to the gizmo and run the calculation (supports animated and static cards)
fixed BUG causing colorization of the viewer if the scene is huge
grid look is changed, added Green external grid to mark the position in huge scene, the size of the card is the size of the white grid with the magenta center
CardToTrack command is sitting now in the Gizmo itself and there no need to inport it separately
v6.04
now compatible to Nuke9.08 and higher
help and tooltips added
grid color adjustment added
v6.03
fixed Roto animation update, thanks Magno!
v6.02
fixed CardToTrack gizmo error, thanks Mike!
CardToTrack command(not exist anymore as a separated command and included in the gizmo it self v6.5)
allows you to extract 2D tracking data from position of your card in 3D space of Nuke, it use Reconcile3D as a basis but in addition to 2d position you will have also rotation and scale.As a result you can have a CornerPin, CornerPin(extra matrix), tracked Roto node(extra_matrix). You can extract from static and moving cards. Can be used within CardToTrack gizmo or standalone.
CardTroTrack gizmo
helps you to find position of the object in 3D space and including CardToTrack command as well.
CProject gizmo - replacing CornerPin, added more user friendly interface
V 06.0
1 huge improvement in a speed, you will get the calculation almost instantly (thanks to Helge Stang)
2 including CardToTrack group for easy finding position in 3D space
3 new node created instead of the CornerPin (CProject), with additional features. if CProject is not installed - a CornerPin will be generated.
Known BUG v6.00, fixed in v6.03:
Right after creation of Roto you have to click on the Root layer of freshly created Roto node, so something will be update there and it will remember the animation. Working on solving the problem.
Tip:
Do not cross the Camera origin, calculation will fail in this case, to avoid - keep your card small. In the end result it is not important how big your card was.
Short explanation about how to use it ( sorry for my terrible English :) : http://www.youtube.com/watch?v=-NTdTy2PzQ0&feature=youtu.be
In V.03 --It is possible extract also a corner pin.
In V 03.1 --fixed BUG. Reconcile was not always connected to BG Image.
--Added check box 'Translation only' - if checked - will calculate only 2D position (exactly as Reconcile do) - as result you willl have a Tracker node.
In V 03.2 --2D position of corners in corner pin will exactly match corners of the card in 3D space.
In V 04.0 --It is possible extract CornerPin with transformation animated in 'extra matrix'. (can be used later in Roto or GridWarp matrix).
In V 04.1 --fixed BUG. If a Card had an Animation it was not tracked properly.
In V04.2 --fixef BUG. In some cases tracking points were not positioned on corners of the Card.
In V05.1 --possible to create tracked Roto node (extra_matrix)
in V05.2 -- hopely final cleanups of the code :) . No need anymore to connect a texture to the Card (before Nuke was rising an error if a Card had no texture)
Comments
Sorry for that
It also will support moving/scaling/ rotation of the card (but will not work with card connected to Transform node or with animation in Extra matrix)
Hope it is enough for now, soon (hopefully) will post Tutorial
Hope my English is good enough
http://www.youtube.com/watch?v=-NTdTy2PzQ0&feature=youtu.be
seems to be much faster than using cards with a scanline render.
thanks
Thank you!
fusionnuke
the calculation happening almost instantly.
Huge thanks to Helge Stang for this improvement.
But with CardToTrackGizm o I get:
unable to sample node at given location (1496.4, 1014.8) for the current context (may be zoomed in or have a ROI set)
I'm either all zoomed out, or zoomed in with viewer (as per the video), I don't have an ROI, base size is same as image.
Please advise
NukeX 9.0v8 OSX
Never had this error before, can you please send me a script please? maybe i will be able to recreate that.
lamakaha
exchange plate to constant if cant send the video.
thank you.
just downloaded my own upload. the gizmo had disconnected camera inside, will re-upload...... now
sorry
weird...
yourrotonode['curves'].changed()
after you create everything, it will force it to update the node ui
will try this one and update the submission.
Thanks again Magno!
unable to sample node at given location (1496.4, 1014.8) for the current context (may be zoomed in or have a ROI set)
trying to solve it but can not recreate the error, would like to know if it is some local problem or a gizmo is not working for other people as well.
thank you
sorry for inconvinience
(it should run fine on lower versions though)
FIXED in version 6.04
if your viewer is looking redish - go inside of gizmo and put clamp after blue NoOp node - it is just preview issue, FIXED in version 6.05
the output of NoOp node was not connected to nothing
That was okay till Nuke 9.08, in Nuke 9.08 as turned out to be - if node is not connected to the main tree of the gizmo it is not evaluated (at least for me the solution was just to connect the bloody node to the tree with a merge node and set the mix value to zero)
maybe you can send me a group that errors and i will have a look
cheers
have to say that i also had a plenty errors with nuke expressions
inside of groups and funny enough too frequently i was solving the problem without fully understanding why for example : the simple line as input1.translat e.x is just refusing to work from time to time
(many times solution was to turn the expression into python)
my mail is
lamakaha
I can't use this gizmo on Nuke 10.0v5 (unknown command type when I click on the tab on top).
Anyway after a Copy and Paste it works but when I click "go" it doesn't export correctly the CProject. I only get a normal corner pin. Of course would be the same add some framehold or other but your CProject was very good. Can you help me in this case?
Thank you very much! Awesome job!
i do not work with Nuke 10, still on 9.
But i did run a simple test on 10,0v3 and everything went just fine.
Did you just download the gizmo or you used it before on lower version?
are you sure your CProject gizmo is in your plugin folder?
can not check for Nuke 10,0v5 since i do not have an access to it right now, sorry.
It's the first time that I use it.
I've placed the folder inside .nuke and I've also put the lines into menu.py
please dive inside of CartToTrack gizmo, check if StabSwitch1 is connected to ScanlineRender1 Camera input, if not - reconnect please.
maybe the Gizmo was corrupted on Upload, checking it now, if yes, will re upload ASAP.
thank you
re uploaded newer version, hope that will fix the problem.
worked on Nuke 10.0v03.
Thank you for reporting!
Thanks for the support!
Unfortunately, it's still not working
There's always the CardToTrack: Unknown command error message.
Which tab are you clicking?
are you talking about the CardToTrack menu?
if yes, press "x" , type CardToTrack - it should bring the node.
if you managing to bring the node probably something in your menu.py went wrong check if you did mistype something.
running out of ideas
I was talking about the button on the bar on top (near to "help").
also trying to execute with "x" and typing CardToTrack, nothing.
I just copied and paste the three lines above in the menu.py
maybe there's something strange with this nuke version.
I will keep you updated about it!
I hope the problem is just me
just re read your first post: I've placed the folder inside .nuke
you have to put only files inside of .nuke folder, not a folder with files inside!!! nuke will not access the folder you pasted in, nuke will look into .nuke folder only
i think we are done here :)
Wow, I feel so dumb
Thanks again! You did a great and useful gizmo!
cheers
Can you elaborate on using the now builtin Card2Track Command ?
I'm connection my card to the extra slot, setting the gizmo to "I have a card", but this does not work :(
are you getting some error message?
is your camera connected
do you have animation in your camera
frame range.......
resolution.....
too many things can go wrong
havw you seen tutorial?
you can send me script as well
cheers
are you getting some error message?
is your camera connected
do you have animation in your camera
frame range.......
resolution.....
too many things can go wrong
havw you seen tutorial?
you can send me script as well
cheers
I have an issue with you script.
I am using Nuke 10.5v2 on windows 7.
The gizmo freezes nuke when I press GO!
Its not responding and I wonder why.
I am not using any undistort nodes for the BG.
Can you help me or explain why does it freeze up ?
Cheers
Peter
Never mind its just very slow. Took about 5 mins but it works! :)
I was wondering if you could add another feature in your next version, information that comes in the corner pins and roto node come from undistorted sources due 3d camera and reconcile3d information, would there be a way to also export position information already distorted, say as if there would be an undistorted lensdistortion node in the BG input after the plate, so the gizmo could take that information, copy it and then apply a the distortion into the information, it would would be great specially for the roto node since you normally roto in the distorted plate
a corner pin has points and it is theoretically possible to calculate
their position affected by some lens distortion.
Problem 1 : it is complicated from numerous reasons.
Problem 2: everything between points will be not properly distorted since it will be linearly interpolated between points and will not correspond to the lens distortion.
I will recommend to you to do your masks on undistorted footage and apply the distortion to mask later on.
or, and frankly that is my preferred way : just mask the distorted footage and add 2-3 additional keyframes fo fix possible drift.It will do in the most cases.
cheers
v7.02
added possibility to calculate from Axis or chain of Axises *
added possibility to calculate from Deep *
UI changes to provide more user friendly experience*
Default frame range is taken from Camera animation and not from project frame range
Some stability improvements(ho pe no new bugs introduced)
help me please :)
This happens when you have no keyframes in your Camera animation, .... probably. is this a case?
sometimes it is not working when you standing outside of the comp range on the timeline as well .
If none of this, send me the script so i will be able to debug the issue. no material needed, just a camera and the constant with proper resolution instead of the plate.
Will release new version with additional fixes soon.
lamakaha
cheers.
we baked the animation and all worked
we baked the animation and all worked
Thank you very much for sharing.
So no promises :). one day one day.
Will upload next week with some additional features and fixes.
Hope will fix anamorphic issue (if will find one)
thank you for pointing out.
fixed, reuploaded!
Is it perhaps possible to also export a Tracker-Node with the cornerpin-Data? That would complete the package you get.
Regarding Tracker export - i see Corner pin superior to Tracker in most of aspects - that why i choose to export cornr pin and not tracker.
To export both can be an option, but it will add more weight to script and i saw it as not big necessity so decided not to go this way.
The proper solution will be i guess to let user to decide what he/she would like to .... ideas ideas ideas.
Cant promise anything but i guess i will put it on my list.
cheers!
And btw - why you will prefer tracker over corner pin?
your tool is gréat. i use it in nuke 12.1v1
when i fire it up i get the error CardToTrack.loo k_at_Axis.rotat e: Nothing is named "Nothing". the imported track is from 3de and has an axis attachet do the cam. han theis be the problem?
whem i try to track from a card i get the error line 39, in
AttributeError: 'NoneType' object has no attribute 'setSelected'
is this because of nuke 12 or am i doing something wrong?
i do not think you can use and axis attached to camera, the tool is not collecting data from the camera matrix.
you will have to copy data directly to the camera.
sorry for a late reply
ERROR: CardToTrack.cam _data.xform_ord er: Nothing is named "Nothing"
[ 0:25.55] ERROR: CardToTrack.cam _data.rot_order : Nothing is named "Nothing"
[ 0:27.40] ERROR: CardToTrack1.lo ok_at_Axis.rota te: Nothing is named "Nothing"
nope, nothing attached. Plain camera, baked animation (ticked off read from file); Input is set to grat matchmove; the gizmo also shows a "0" inside the switch for the axis.. so should be set to placeholder axis
Do you have one of the older versions still on your machine? Maybe I can test it with a version prior to the latest here?
Or vice versa I can send you the cam/geo (dont think you need the image? - checkerboard as input?)
i've found my issue... it happened, that... no idea why, my framerange had been extended instead from 1001-1195 to 1001 - 16700... This obviously takes some time to calculate.
Also I think the calculation takes longer, when the gizmo cannot find any camera keyframes anymore (which is the case from frame 1196 on...).
For testing purpose I extended everything to frame 2000 and repeated the creation process and indeed instead of some second it takes 15-20 seconds to calculate... or just crashes as it happened before...
I still get those error messages, though, although it doesn't affect the result.
But yes it usually someone forgot to connect the camera, or used wrong camera or wrong frame range or some other funny thing.
Regarding calculating 1000 frames - it does make sense that it will take 15 seconds, it is not the fastest tool out there, I am aware of that and maybe one day I will finally rewrite it, but not today ,
Have a nice day
Cheers!
the error it self is pretty trivial
It happens when tabs and spaces are mixed in a code.
I did not have this problem so far but i will re-check the code.
Thank you.
It uses different Python version (3) and current is written in (2.7)
I will upload next week version compatible with Nuke 13.
Till then stay strong and have some holidays!
(you still can use Card To Track in previous version and copy resulted nodes to Nuke13 )
Important - had no time to test it in production but seems to work on both Nuke 12 and 13 now.
There is no CProject and Tproject in this update as they should work from previous versions.
please update me if something is not working.
Thanks
Seems to be working fine, except for one small fix: 'cardToTrack.py ' needs to be renamed to 'CardToTrack.py ' before using.
Otherwise, it's a very handy tool! Thank you!
Thank you very much for the feedback, will fix the typo.
Cheers!
The group is calling cardToTrack.py and it works, It can not work with naming changed in the way you proposed.
https://youtu.be/Md3990UwiQQ
I just downloaded the latest version and checked it:
this what is running when you press the 'Go' Button:
import cardToTrack
cardToTrack.go()
so i am not sure how you arrived to error you are getting.
mystery........
At first, I just put the lines you suggest in the menu.py to make a Menu Command. And then it gave me: "CardToTrack: Unknown command" Error.
Then I went into troubleshooting , most likely replacing some lines by accident in the process in your .py file. So in the end I reported the wrong issue.
If I put your .nk in the Toolsets folder, just to avoid adding anything to menu.py, it works fine.
Thank you, for taking the time to figure it out!
you will need it in future in any case.
From the moment you will understand the basic you will be able to install any python code or gizmo.
Good luck
do you use the latest version?
It should work for Nuke 13 without issues
do you use the latest version?
It should work for Nuke 13 without issues
I'd really appreciate if someone could explain this step by step. Where are these files/folders suppose to go and is there something else that I need to do?
https://learn.foundry.com/nuke/content/comp_environment/configuring_nuke/loading_gizmos_plugins_scripts.html
iI assume you are on the Nuke 13 but you are using the older version of CardToTrack. (not Python3 ready)
If you will download and replace with new one - you should be fine.
Correct me if i am wrong, please additionally send full error if possible.
Thank you!
Would appreciate some help.
Thanks
He is looking for the camera but can not find it from what i see.
do you have and axis connected to camera?
there is a chance it will not work in this case, do not remember for sure.
I can update it myself in the .nk file provided for my pipeline, but the bigger issue is its an unknown which versions are out there in other toolsets.
RSS feed for comments to this post