Namespaces

Variants
Actions

jit.scissors

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial upsert from JITobjectNT list)
 
Line 2: Line 2:
  
 
==Using the {{maxword|name=jit.scissors}} object==
 
==Using the {{maxword|name=jit.scissors}} object==
 +
{{maxword|name=jit.scissors}} breaks an incoming matrix into uniform rectangular regions, outputting each region as a new matrix out of separate outlets.
  
 
=={{maxword|name=jit.scissors}} Tutorials==
 
=={{maxword|name=jit.scissors}} Tutorials==
 +
{{maxword|name=jit.scissors}} is covered in [http://cycling74.com/docs/max6/dynamic/c74_docs.html#jitterchapter13 Jitter Tutorial 13: Scissors and Glue].
 +
 +
It is also used in these example patches:
 +
* ./examples/jitter-examples/render/jit.gl.gridshape-scissors.maxpat
 +
* ./examples/jitter-examples/video/analysis/jit.fft-mask.maxpat
 +
* ./examples/jitter-examples/video/spatial/cutandpaste.maxpat
 +
 +
And [http://cycling74.com/category/articles/jitter-recipes/ Jitter recipes] 6, 20, and 22.
  
 
=={{maxword|name=jit.scissors}} Tips and Workarounds==
 
=={{maxword|name=jit.scissors}} Tips and Workarounds==
 +
You can change the number of rows and columns with a message to jit.scissors, but the object only has as many outlets as initially defined by the @rows and @columns attributes typed as arguments. The maximum number of outlets is 256, with a max of 16 for each dimension so it is best to determine the total number of outputs desired when creating the object.
 +
 +
Scripting is your friend! When using objects like {{maxword|name=jit.scissors}} and {{maxword|name=jit.glue}} you sometimes have to connect a lot of inlets and outlets, particularly if you use something like a {{maxword|name=router}} in between. In these cases it can be really useful to take advantage of the script message to the {{maxword|name=thispatcher}} object. This patch creates 256 outlet {{maxword|name=jit.scissors}} and {{maxword|name=jit.glue}} objects  (16 rows and 16 columns) connected through a {{maxword|name=router}} with 256 inlets and outlets and automatically patches it all together, along with a receive to the leftmost inlet of {{maxword|name=router}} to control the patching, all with the click of a button:
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
1727.3oc0ZsraaiCEcsyWAgZAlMptjhj5wLa5rYV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yz4uH1L85IF8Kp8DZi8Lg9qHa3ydSl8frJbHd5vGaBGpNlzoJ9imM7moK9CE
 +
ZK+AMcyu75ydltkuH1fOjoi+fsY8qoKbH1lvO3foycgrf9nsGz.zSFEYxFo9
 +
SqzmVkTMzKhdRrMAPwjWYHZz.UneNhZ9NCeoPzvQXFySr+fPe8WaKlpO+fpA
 +
f9tdG.l8LEuc6CrBQkUnsc4dauOuPcquq9Vdl4V8V+bJXOvqquNieNwExclV
 +
J2V5tBytGeLz24F064m27+j7UloG
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
  
 
==Third-Party Max externals similar to the {{maxword|name=jit.scissors}} object==
 
==Third-Party Max externals similar to the {{maxword|name=jit.scissors}} object==
Line 12: Line 69:
  
 
==People who looked at/used this object also looked at....==
 
==People who looked at/used this object also looked at....==
 +
*{{maxword|name=jit.concat}}
 +
*{{maxword|name=jit.demultiplex}}
 +
*{{maxword|name=jit.glue}}
 +
*{{maxword|name=jit.matrix}}
 +
*{{maxword|name=jit.multiplex}}
 +
*{{maxword|name=jit.split}}
 +
*{{maxword|name=matrixctrl}}
 +
*{{maxword|name=router}}
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==

Latest revision as of 20:38, 22 August 2013

Contents

[edit] jit.scissors online refpage

[edit] Using the jit.scissors object

jit.scissors breaks an incoming matrix into uniform rectangular regions, outputting each region as a new matrix out of separate outlets.

[edit] jit.scissors Tutorials

jit.scissors is covered in Jitter Tutorial 13: Scissors and Glue.

It is also used in these example patches:

  • ./examples/jitter-examples/render/jit.gl.gridshape-scissors.maxpat
  • ./examples/jitter-examples/video/analysis/jit.fft-mask.maxpat
  • ./examples/jitter-examples/video/spatial/cutandpaste.maxpat

And Jitter recipes 6, 20, and 22.

[edit] jit.scissors Tips and Workarounds

You can change the number of rows and columns with a message to jit.scissors, but the object only has as many outlets as initially defined by the @rows and @columns attributes typed as arguments. The maximum number of outlets is 256, with a max of 16 for each dimension so it is best to determine the total number of outputs desired when creating the object.

Scripting is your friend! When using objects like jit.scissors and jit.glue you sometimes have to connect a lot of inlets and outlets, particularly if you use something like a router in between. In these cases it can be really useful to take advantage of the script message to the thispatcher object. This patch creates 256 outlet jit.scissors and jit.glue objects (16 rows and 16 columns) connected through a router with 256 inlets and outlets and automatically patches it all together, along with a receive to the leftmost inlet of router to control the patching, all with the click of a button:

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

[edit] Third-Party Max externals similar to the jit.scissors object

Maxobjects.com listing for the jit.scissors object

[edit] People who looked at/used this object also looked at....

[edit] Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)