Forums > Jitter

java usesrcdim?

October 11, 2007 | 9:00 pm

how do you set usesrcdim for matrices in java?

sub.setAttr("usesrcdim", 1); // doesn’t seem to work
sub.setUsesrcdim(true); // throws an error
sub.setSrcdimstart(new int[] { 205, 10 });
sub.setSrcdimend(new int[] { 254, 60 } );

thanks,

jeremy


October 13, 2007 | 7:35 pm

It’s OK, I figured it out.

sub.setAttr("usesrcdim", 1);
sub.setAttr("srcdimstart", new int[] { 215, 10 });
sub.setAttr("srcdimend", new int[] { 254, 60 } );

The problem was elsewhere in my code.

I had to use

sub.frommatrix(jitterMatrix);

instead of

sub.matrixcalc(jitterMatrix, new JitterMatrix);

Jeremy

On Oct 11, 2007, at 5:00 PM, Jeremy Rotsztain wrote:

>
> how do you set usesrcdim for matrices in java?
>
> sub.setAttr("usesrcdim", 1); // doesn’t seem to work
> sub.setUsesrcdim(true); // throws an error
> sub.setSrcdimstart(new int[] { 205, 10 });
> sub.setSrcdimend(new int[] { 254, 60 } );
>
> thanks,
>
> jeremy
>


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