Mono-Flop Tut 1

Well here is a mini tutorial about a major node, the Mono-Flop.
In plain English Mono-Flop means Timer, it is a timer node.
The term mono-flop comes from the worlds of electronics and is there to intimidate you.

Well because it is a timer I'll show the most common use of a timer and that is the light in the hallway.

monoflop

Follow up:

Here is an image of the node:

monoflop-node

To make it work you need to connect a time-node to the time port.
What the node does is count from 0 to 1 when triggered with a given Duration.
You can trigger (bool) with all kind of things like a collision or a compare or any event.

Ok lets make the light thing.
I made a little model of a button and a light bulb.
What I want is when the button is pressed the light switches on and stays on for a given time.

So I set up a compare node to determine the Y position of the button, when the button goes down to a given point the compare node says True.
I connect this to the trigger port of the mono-flop.
As said before I connect a time node to the time port. And in the Duration port I type 30 frames.

On the output side I connect the Out-port to the intensity of a volumetric light.
Like this,

monoflop-setup

The result will be like this,

monoflop1

As you can see the result is very sudden, it is completely on or off. That is because the Out-port gives a bool (0 or 1).
That is ok for a lot of setups but I want a more realistic effect.
So I open the State port, this one gives a range from 0 to 1 on trigger for the given duration.

I connect the State-port to a range mapper to make the smoothness.

mono-mapper

The range mapper makes a smooth bow up and down again. I make it go up and down to map 0 > 1 to 0>1>0

range-spline

The result is a lamp that glows on and off again.

monoflop

There are many possibilities with this node. I makes it possible to make a sequence of events on trigger. Like doors opening and closing automatically as described Here


8 comments

Comment from: Badtastic [Visitor] : 2006-03-14 @ 02:07
Thanks for demystifying this useful node!
Cheers / Alex
Comment from: Trig Fuller [Visitor] : 2006-03-14 @ 02:08
Nice one, another useful tutorial. I always wondered what the use for that node was.

Keep up the good work.

Trig
Comment from: bobc4d [Visitor] : 2006-03-16 @ 03:15
Thanks for the tutorial, this really helps in my animation.
Comment from: Athlon [Visitor] · http://3dbih.org : 2006-03-16 @ 19:52
Great tut
very useful
TNX
Athlon ;)
Comment from: BigBot [Visitor] : 2006-03-18 @ 18:22
Nice Tut. Its nice to see tutorials that tackle expresso nodes.. A-OK!!!!!!!!!
Comment from: Vincent [Visitor] · http://http//www.wipix.fr : 2006-05-09 @ 10:38
toujours aussi bon !
Et, c'est un detail, mais tes gifs sont toujours aussi excellents !!!
Comment from: pablofarra [Visitor] : 2009-01-28 @ 04:09
i´ve been trying do this but with 3 diferent "buttons" when i putting down each one (moving on y axis) their changes the intensity of one spot light the matter is that in my scene there´s one light to be modify... and i´d completely insane... maybe you can help me

useful tutorial
Comment from: base80 [Member] Email : 2009-01-28 @ 04:20
I can not help you going insane. This tutorial is not that easy and should be tagged "difficult". The matter is quite abstract and demands a certain level of comprehension of cinema4d and xpresso.
I hope you will find this tutorial useful in the days to come and exert the patience it needs in the meanwhile. Good luck.

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)