Forums > Jitter

Set dim to moviedim

Dec 22 2009 | 3:18 am

Hi there,

I’m new to Jitter. This is my first time posting on the forum.

Here’s my question:

Is there a way to automatically set dim to movie_dim on a object when you load a movie?

Here’s why I’m asking the question:

I’m trying to play an MPEG-4 video with I’ve noticed that if I don’t set the dimensions of the video, the dim property defaults to 320×240. My movie is larger than these dimensions. If I let the movie play with the dim set to 320×240, then jagged edges appear in the movie that make it look ugly.

The solution is to set the dimension directly on the object to the correct dimensions. However, this is inconvenient as I want to use Max MSP as a video mixer. This means I would have to check the size of every clip I put into the mixer and input that to my object.

I’ve discovered that the moviedim and movie_dim properties of the object both have the correct size of the video. Hence my question about setting dim to moviedim automatically.

If anyone knows of a way to do this I would appreciate the help!

Dec 22 2009 | 9:01 am

Whenever a movie is read into, it sends out a read message that reports whether the movie was read in successfully. You can use that information to trigger a getmoviedim message to, and use the moviedim to set the dim of and all other objects that need to know that information. Like this.

-- Pasted Max Patch, click to expand. --

Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Jitter