Card to Track v9.2
This location is for Registered Users Only.
Perhaps you need to login or register.
14.0, 13.2, 13.1, 13.0, 12.2, 12.1, 12.0, 11.3, 11 or later
Linux, Mac, Windows
Video Tutorials:
v9.02
Bugs fixed.
- Fixed broken calculation when label text had spaces inside
- Tproject had center point offset, now it will be correctly positioned in the center of the card
- Roto created had still format resolution set to Project fprmat and not input format
- Nuke 15.1 only it seems - stabilization in CProject became broken
v9.01
New features and improvements.
- Added Delete Button per Tab.
- CProject will check if another CProject is positioned upstream and adjust 'Aspect Ratio' automatically.
- Dropdown name in main dropdown changed from '3D Locator' to '3D Locator(Card or Axis)'.
Bugs fixed.
- When stabilizing and Axis was appearing in weird places and not in the center of the card.
- In CProject When press 'Stabilize' while 'Set Input' enabled - label was not updated correctly.
Known Issues.
- Will not work correctly Under Nuke 14.0v1 due to some Nuke Bug. Fixed in Nuke 14.0v5 and higher.
- When CProject gizmo is created animation curves are not disapearing from Curve Editor, solved only when restart nuke. (Nuke bug ID 337536).
v9.00
New features and improvements.
- Nuke 14 tested, still fully based on Classic nodes.
- Full code refactor, various optimizations especially calculation speed improvements in long sequences.
- UI and general extraction are reworked for more fluid and user friendly workflow.
- Tabs per extraction added, extraction info now is stored within CardToTrack node itself.
- Added Stabilization option in 'Adjust TRS' area to help to get more precise card placement.
- Grid thikness and subdivision options added.
- Recalculating card by same name that already was calculated will update exsisting values in Group Tabs.
- Added option to recalculate camera for existing extracted objects.
- It is possible now after camera update to update nodes related to the CardToTrack group in nodegraph.
- Added option to generate linked TProject and CProject.
- Pixel Aspect ratio is taken from the input and not project settings.
- Option to choose between roto or rotopaint added.
- Exposed Axis in the 'Adjust TRS' area to easier card adjustment control.
- Added support to Axis connected to Camera.
- Added support to variable backplate offset in Camera.
- Added support to variable focal lenth values during a shot.
- Camera is not have to be directly connected to CardToTrack anymore.
- added input aspect option in CProject.
- added output format option in CProject.
Known ussues:
It is impossible to create linked roto, (somehow it is not possible to link Roto's matrix knob, Nuke bug?)
Impossible to hide CardToTrack curves (Nuke14 bug?)
Instalation v9.0:
Paste following files to your nuke plugins directory
1 |
card_to_track.py |
Add those lines to your meny.py
1 2 3 4 |
nodesMenu = nuke.menu('Nodes') |
IMPORTANT: Card to track must stay the group, do not convert it to the Gizmo.
HUGE Thanks to numerous contributors and complainers that helped me to shape CardToTrack where it is now! Just to mention few:
Eyal Shirazi, Helge Stang, Adrian Pueyo, Marco Meyer, Tony Lyons, Mark Joey Tang, Pete O'Connell, Ivan Busquets, Nikolai Wusterman, Philip Danner, Igor Majdandzic and aff course MAGNIFICENT TRIXTER FOLKS!!!!
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!
fusionnukegmail.com
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.
lamakahagmail.com
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
lamakahagmail.com
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 other gizmos I have are working inside their folder. Sorry for the waste of time
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.
lamakahagmail.com
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.
Getting this message when try to set the reference frame:
"inconsistent use of tabs and spaces in indentation string line 9"
PLEASE HELP! I LOVE THIS TOOL
Could you please check that you are using latest version?
It is compatible with Python 3.
I believe you are still using the old one.
Thank you.
what is the error it gives to you?
when error happens?
When press 'Go' getting broken CornerPin (due to nuke not able to update world_matrix if world_matrix group is closed )
Update to higher version of Nuke and it should be gone, i did test on Nuke14.0v5 and it seems to be fixed.
(Thanks to Zsolt Sebok for catching this one!!!!!)
Cheers!!!
Thanks!
Thank you for flagging.
https://support.foundry.com/hc/en-us/articles/360000417064
restart nuke cleaning the curve editor from ghost curves.
that the only solution i found so far, not sure if it is possible to refresh the curve editor.
actually interestingly enough after restarting nuke even if i do expose knobs of card to track - everything behaves correctly and no more ghost curves do appear.
But I have a feeling that the generated Roto Node is bugged. Its disconnecting from merges and such when you reopen the script.
For me personally, its not a big deal because i have other tools for pasting the transform matrix into roto/rotopaints /splinewarps etc.
I'm not sure if this is 15.0v2 specific but i have only encountered it recently so it might be related to that version.
Using 9.1
The roto node created is just a standard roto node, so from the moment it is created no magic there. Nuke 14.0... had some issues that folks reported, 14.1 was fixed. Not sure about 15. I will keep an eye on it and if will be able to reproduce will fix.
Thank you and have a nice day.
When tab gets created after hitting "Go!" button, i'm getting an error message: 'NodeType' object is not subscriptable.
When creating a roto i get another error message: 'NodeType' object has no attribute 'setName'
(Clean camera with no axis hooked or anything)
I did download the file now from Nukepedia and did check, all worked fine. Nuke 15.1v1
Could you please give more information? Did it ever worked for you? What exactly you connecting? In what mode you are running it?
Screenshots or even nuke script it self will be helpful as well.
lamakahagmail.com
Cheers.
I did download the file now from Nukepedia and did check, all worked fine. Nuke 15.1v1
Could you please give more information? Did it ever worked for you? What exactly you connecting? In what mode you are running it?
Screenshots or even nuke script it self will be helpful as well.
lamakahagmail.com
Cheers.
May I propose a small commit? :3
Sometimes artists here disconnect BG (or even move precalculated C2T group somewhere else). Without BG, baking `Roto` or `Transform` throws an `AttributeError ` at lines 1091-1092 or 1073-1074.
Do you think it would make sense to add something like this for `calculate_matr ix()` instead ?
```
# Fallback to Root width/height if no input is connected
if C2Tgroup.input( 0):
width = C2Tgroup.input( 0).width()
height = C2Tgroup.input( 0).height()
else:
nuke.executeInM ainThread(lambd a: nuke.message("N o input connected. Using Root resolution for matrix calculation."))
width = nuke.Root().wid th()
height = nuke.Root().height()
```
And I guess similar for 1073-1074?
I Hope to find some hour time this holidays to release
version with fixed anamorph calculation, will catch this error as well, thank you for flagging.
cheers!!!
Have a nice holidays! ( っ˶´ ˘ `)っ
RSS feed for comments to this post