Add 1 hour for each operation

I need to type a timecode every EACH operation which adds an hour every iteration. The first number should be 01000000, second 02000000 and so on. How can I do it?

Thanks

If I understand correctly, you are asking how you can increment the timecode by an hour while keeping the leading zero, is that right?

My first thought was that, since there is to be a leading zero for values < 10, we have to think not just about numbers but about strings of text. However, before I got deep into that, I found this in the forum:

Formatting numbers under 10 with a leading zero

The reply by @Tom contains a macro which demonstrates how to handle leading zeros using the "with format" option of the Set variable to calculation action.

That option does not appear by default in this action: it is necessary to enable "format result" in the settings for the action (accessed via the cogwheel icon).

PS: I wonder whether others agree that, if this information is in the Wiki, it is not easy to find.

1 Like

Thanks for your reply!

No, I can use it with no leading zero, I can add it manually later.
The task is the following:

I need to import the video files from the selected folder into the DAW program and place them to the timecodes 01000000, 02000000 etc.

Please have a look at the attached macro. It works but with no placing at specific timecodes

Import videos.kmmacros (12.1 KB)

Type the Shift+P recalls the command in Nuendo to type the timecode position

Oh well, I learned something! :slight_smile: I don't think anyone could have possibly guessed what you really needed to know from the original question, but we're narrowing the problem down gradually... Let's see...

Since I don't have a copy of Nuendo, I cannot test the macro, or guess from looking at the macro exactly what is going on (although I get the gist of what you are trying to do!).

From your own testing, you should be able to tell us the exact step where your macro is going wrong. What does, or does not happen? Can you narrow it down to one particular action, or group of actions? The more precise you can be, the greater is your chance of getting a helpful answer.

I expect we must have one or two other Nuendo users here, so perhaps they can run your macro and advise, too.

1 Like

I am sorry for confusion! :slight_smile:
You are right I was not clear at all.

The macro works but places all videos at one position.

I need after executing Shift+P to have the new number for the every new imported video:

01000000, 02000000 etc. to paste it into the program

1 Like

What if I put it in another way?

For instance, I need the macro which will copy every file in the selected folder into the newly created folders named 1000000, 2000000 and so on? How would I achieve it?

The problem is almost solved!
The one question I can't solve is:
How to make this function

to take into account only the video files. Because the folder can contain audio files too. And the video file will create another cache file as soon as it gets imported into Nuendo

Seems fixed this one too. I am not sure if anyone would need it but the final macro is:
Nuendo video placement.kmmacros (14.8 KB)

1 Like