Page 1 of 1

Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 8:42 am
by marcus54
Hello
I have a DJI drone and I can retrieve telemetry data from a flight. There is one piece of information per image.
I would like to display the flight altitude on my drone videos, for example.
I followed a tutorial on YouTube:


I'm a beginner on fusion, the video goes pretty fast.
I managed to make a gauge, but I can't link it to a data table.
The data table is easily accessible.
Code: Select all
E:\OneDrive - Conseil régional Grand Est - Numérique Educatif\MesDocs\Blackmagic Design\DaVinci Resolve\Fusion\Textdata\altitude2.txt


Code: Select all
: array = assert(bmd.readstring(io.open(comp:MapPath("Comp:/Textdata/altitude2.txt"), "r"):read("*all"))); i = table.getn(array); sek = time+1; if sek <= i then return array[sek]; else return "No more data"; end


But the indications in fusion remain red and the dynamic indications do not change.

In this video, it is described that you need to make a Lua table containing the dynamic data you want to display.
I have the impression that this table is poorly structured.
altitude2.txt :
Code: Select all
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}

(7549 values)
Can you tell me what you think, thank you.

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 8:45 am
by Sander de Regt
Check out the Vonk Ultra nodes for Fusion. These make it much easier (and interactive) to work with data like this.

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 9:23 am
by KrunoSmithy
Yeah, you probably want VonkUltra Nodes for this kind of work. They are essentially modifiers you connect to, but live as nodes in the flow and can be used to import and prepare data so you can connect sliders and driver parameters of other regular nodes in the flow. Similar how you would use publish and connect to process. Except when you put VonkUltra nodes in the flow they are ready to be connected to by default.

Here is more information and examples: https://www.steakunderwater.com/wesuckl ... php?t=5412

E.g.

Vonk Mission Control

Overview

The "Mission Control" Vonk data node example simulates a small propellor-powered aircraft's cockpit dashboard by rendering a mix of digital and analog style gauges. The logic for the controls is wired together using Vonk Number and Text data types.

Phase Two of this project will connect a pre-recorded NMEA ASCII format GPS datastream text file as the external driver of the airplane gauges via NMEA GPGGA and GPRMC strings.

This example is available for installation using the Reactor Package Manager. Navigate to the "Kartaverse/Vonk Ultra" category on the left side of the Reactor window to locate the atom package named "Vonk Example | Mission Control".

https://www.steakunderwater.com/wesuckl ... 2&start=15

Dsg8tBz.png
Dsg8tBz.png (243.64 KiB) Viewed 2756 times


xDFsqfo.png
xDFsqfo.png (548.1 KiB) Viewed 2756 times

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 9:33 am
by marcus54
Reactor is not installed, it is the free version of Davinci.
I used Sony Vegas before, but at the moment I have no plans to buy the studio version.

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 9:39 am
by Sander de Regt
You can install the Vonk Ultra nodes manually. You don't need Reactor to run them. It just makes it easier to install them. It's up to you of course whether or not to upgrade to Studio, but I've always found it worth the money. (and that's from when I paid $2500-$5000 for a single Fusion license)

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 10:04 am
by marcus54
I note for the future to maybe buy the studio version and use the Vonk Ultra nodes.

But for the moment could you help me out on what I started.
Thank you

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 1:23 pm
by Pieter Van Houte
marcus54 wrote:Reactor is not installed, it is the free version of Davinci.


That's a Blackmagic Design decision, and Reactor is completely free and free of charge, which means making it work on free versions is basically out of the goodness of our hearts and we unfortunately can't eat goodness.

There is a very solid solution for you, but because BMD it's either not one click, or it's a few hundred dollars (none of which helps Reactor dev, which is ironic).

Good luck!

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 1:40 pm
by DavySilva
Parsing data and converting it to a Fusion node isn't simple but it's totally doable.

PS:never done in free version, but I would imagine it works just fine.

Obv you will need some general knowledge in Resolve, Lua and Compositing. Alternatvely, you could try to find software or plugin that create what you want. One that comes to mind is a plugin that extracts data from Bike comuter and creates visual graphics (speed, power and all). The only thing I know about it it can be very heavy. I don't even know the plugin name.

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 2:05 pm
by marcus54
For the moment I'm not looking for a plugin,
I'm just trying to check the syntax to access a list of data:
Is my list formatted correctly?
Is the syntax to access it correct?
Thank you

Re: Dynamic Data Display csv or Lua

PostPosted: Wed Jun 04, 2025 5:14 pm
by marcus54
Ok I installed VonkUltra Nodes
Can you show me how to insert the contents of a .csv list on a video
Thank you

Re: Dynamic Data Display csv or Lua

PostPosted: Sat Jun 07, 2025 6:54 am
by marcus54
Hello
At my first request, you all suggested that I use the VonkUltra Nodes tool very quickly.

Finally, it's installed, could you help me to display a dynamic data list.

Thank you.

Re: Dynamic Data Display csv or Lua

PostPosted: Sat Jun 07, 2025 8:09 am
by marcus54
How to link "vTextViewer" to "Text1"?

Re: Dynamic Data Display csv or Lua

PostPosted: Sat Jun 07, 2025 8:22 am
by KrunoSmithy
Generally you right click on for example parameter or in this case text + filed and choose connect to... and Vonk nodes should be already available to link to.

Re: Dynamic Data Display csv or Lua

PostPosted: Sat Jun 07, 2025 8:45 am
by marcus54
Great thank you it works.
On "vTextFromSubtitle1" I have output only if I select "index" and move it manually.
If I select "timecode" nothing is displayed...

Re: Dynamic Data Display csv or Lua

PostPosted: Sat Jun 07, 2025 3:03 pm
by marcus54
What functions can I use to index the csv list with the video?

Re: Dynamic Data Display csv or Lua

PostPosted: Mon Jun 09, 2025 6:39 pm
by marcus54
That's it, I did it
With Fusion and with subtitles.
You didn't help me much, but thank you