Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 20.01.2026 - 13:02:18
Pages:  1  

Trim error using variable

AuthorMessage

dadhania

Legend


Statistics:
Messages: 176
Registration: 10.24.2003

Framerate() returns a float, trim need integer. See Round(), Ceil() and Floor()



Message # 1 23.08.23 - 15:24:02
RE: Trim error using variable

DK325IS

Legend


Statistics:
Messages: 48
Registration: 08.01.2003

In your code you probably want :- c=round(c) fc=round(fc) ft=round(ft) But this is closer to the original post:- Code:



Message # 2 23.08.23 - 15:35:05
RE: Trim error using variable

southsails

Legend


Statistics:
Messages: 482
Registration: 09.07.2003

To add to what IanB is telling you, note that a line such as round(c) effectively does nothing - the result is calculated and then thrown away. You have to assign the result to something: c = round(c) Also, frames are numbered from 0, so the last frame is framecount-1, not framecount. That's why it's more convenient to use trim(..., 0) to select up to the end of a clip.



Message # 3 23.08.23 - 15:44:28
RE: Trim error using variable
Next topic: Back from hell
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Driven by: Flatboard 3.10.10