# OOP: interface?

**URL:** <http://forum.vvvv.org/t/oop-interface/2065>\
**Category:** general\
**Created:** [July 6, 2007, 8:25am UTC](http://forum.vvvv.org/t/oop-interface/2065 "2007-07-06T08:25:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![guest](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/g/999999/32.png) [@guest](http://forum.vvvv.org/u/guest)\
**Post date:** [July 6, 2007, 8:25am UTC](http://forum.vvvv.org/t/oop-interface/2065/1 "2007-07-06T08:25:32Z")

</div>

Hello.

I think I am missing a basic point about vvvv.

I think I understand the module/subpatch concept.

As a programmer coming from other OO languages, is there any way to define an “interface” for a module?  
… and then have the ability to plug in any module that has the correct inputs/outputs?

Is this possible?

Thanks  
343

---

<div class="post-metadata">

**Author:** ![tonfilm](http://forum.vvvv.org/user_avatar/forum.vvvv.org/tonfilm/32/406_2.png) [@tonfilm](http://forum.vvvv.org/u/tonfilm)\
**Post date:** [July 6, 2007, 9:26am UTC](http://forum.vvvv.org/t/oop-interface/2065/2 "2007-07-06T09:26:21Z")

</div>

this would be achived with simpliy replacing a module. to do so, doubleclick on the module you want to replace and type a letter to bring up the node pulldown list, or rightclick to bring up the node list. nodes with exactly the same in and out pins will be replaced seamless, means the connections remain.

another handy shortcut is, double click on the module and type in . (dot), this lists all patches, which are saved in the same directory like the current pach.

---

<div class="post-metadata">

**Author:** ![kalle](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/k/999999/32.png) [@kalle](http://forum.vvvv.org/u/kalle)\
**Post date:** [July 6, 2007, 1:07pm UTC](http://forum.vvvv.org/t/oop-interface/2065/3 "2007-07-06T13:07:00Z")

</div>

thats the exactly the reason why i’m praying the [naming conventions](https://vvvv.org/documentation/naming-conventions) of in- and outlets.

btw.: i didn’t know that dot thing by now, lovvvvely feature!  
is this documented somewhere?  
are there more features like this?

---

<div class="post-metadata">

**Author:** ![diki](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/d/999999/32.png) [@diki](http://forum.vvvv.org/u/diki)\
**Post date:** [July 6, 2007, 4:42pm UTC](http://forum.vvvv.org/t/oop-interface/2065/4 "2007-07-06T16:42:55Z")

</div>

it’s a pity that the naming conventions cannot be viewed by mortals ;)

---

<div class="post-metadata">

**Author:** ![kalle](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/k/999999/32.png) [@kalle](http://forum.vvvv.org/u/kalle)\
**Post date:** [July 6, 2007, 5:20pm UTC](http://forum.vvvv.org/t/oop-interface/2065/5 "2007-07-06T17:20:00Z")

</div>

oh.  
yes.  
it seems that since that dot feature it is reserved to higher creatures.  
perhaps we have to join the [Church of the Flying Spaghetti Monster](http://www.venganza.org/) to get access again.

---

<div class="post-metadata">

**Author:** ![kalle](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/k/999999/32.png) [@kalle](http://forum.vvvv.org/u/kalle)\
**Post date:** [July 6, 2007, 5:27pm UTC](http://forum.vvvv.org/t/oop-interface/2065/6 "2007-07-06T17:27:50Z")

</div>

meanwhile one could get some information[here](http://vvvv.org/tiki-index.php?page=Modules#_Naming_Conventions)

---

<div class="post-metadata">

**Author:** ![m9dfukc](http://forum.vvvv.org/user_avatar/forum.vvvv.org/m9dfukc/32/17_2.png) [@m9dfukc](http://forum.vvvv.org/u/m9dfukc)\
**Post date:** [July 7, 2007, 12:44pm UTC](http://forum.vvvv.org/t/oop-interface/2065/7 "2007-07-07T12:44:05Z")

</div>

@tonfilm why not linking your . thing trick over to west’s vvvv tricks page [here](http://vvvv.org/tiki-index.php?page=WestTricks&highlight=tricks)!?

---

<div class="post-metadata">

**Author:** ![guest](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/g/999999/32.png) [@guest](http://forum.vvvv.org/u/guest)\
**Post date:** [July 9, 2007, 11:25pm UTC](http://forum.vvvv.org/t/oop-interface/2065/8 "2007-07-09T23:25:22Z")

</div>

I don’t think I was clear enough…

Replacing the module is exactly what I want to do, but I want to do this in response to a bang (actually a MIDI message)… i.e. press a key and have vvvv load a different sub-module… and associate different keys with different modules so that I can “plug-in” different modules to different stages of the compositing process.

does this make sense at all?

---

<div class="post-metadata">

**Author:** ![diki](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/d/999999/32.png) [@diki](http://forum.vvvv.org/u/diki)\
**Post date:** [July 9, 2007, 11:54pm UTC](http://forum.vvvv.org/t/oop-interface/2065/9 "2007-07-09T23:54:11Z")

</div>

yes it does! [catweasel made a patch for that.](http://vvvv.org/tiki-index.php?page=catweasel-Patches)
