set row and column data in a matrixctrl

nicnut's icon

I know this seems like a pretty basic question, and I believe I've done this before but can't remember how.

How do you input just a row into a matrix? Like if I wanted row 1 to be a list of values, how would I go about doing that?

I looked at the help file and I couldn't find it and I looked at the reference file, and I searched the forums. It's driving me crazy since it seems like such a basic thing and I can't figure it out.

Thank you and any help is greatly appreciated.

nick

Dave Holton's icon

There aren't any messages to matrixctrl that do it for you, you've got to work it out by patching. listfunnel and zl should be pretty much all you need.

nicnut's icon

Ok thanks, I'll check it out.

nicnut's icon

well, I was able to figure out how to input data into a desired column, but I can't figure out how to get data into the desired row. Any hint as to which zl object I should use?

Here's what I have so far:

Max Patch
Copy patch and select New From Clipboard in Max.

seejayjames's icon

if you use [listfunnel] you'd just need to change the indices, so instead of

$1 0 $2 //column, row, value --- the row stays hard-coded

it's

0 $1 $2 //column, row, value --- the column stays hard-coded

I'd like a "setrow" and "setcolumn" message to matrixctrl, too, seems like it should have it.

nicnut's icon

damn, that was a serious brain teaser, I don't know why that was so hard to figure out. Here is what I came up with.

Max Patch
Copy patch and select New From Clipboard in Max.

juliew9855's icon

Hi !
I've just visited this forum. Happy to get acquainted with you. Thanks.