The ONEs Themselves menu

MographToNulls for C4D R20 – Free Download Python Script Tag

certified TheONE expert badge
4 mins read

Practically everyone who has ever worked with Cinema 4D knows the power of MoGraph. A super handy toolset with which you can create cool motion graphics in no time. The integration of effectors (and fields) help you to control all kinds of settings such as PSR, color, and weighting. And what about blending clones... With "MoData" - either the data node or through scripting - you have access to your individual clones, except for...

What if your individual clones themselves contain a hierarchy, how do you get access to the elements within that hierarchy? The short answer: you can't, but there is a handy solution.

MographToNulls for C4D R20 (& R19)

Years ago, Peranders published the "MographToNulls" in Coffee script. I have often used it in the past. But, since release 20 of C4D, the Coffee module has been written off, and we no longer have access to it.

It was about a year ago that it was announced that R20 no longer supported coffee. Since then, I have been learning Python in between jobs and in my free time. Fortunately, I had tested and done enough that I was able to convert the Coffee script to a (more convenient :) Python version.

MographToNulls for C4D R20 – Free Download Python Script Tag

The advantage of a scripting tag instead of a plugin is that it can be used in the same way in both R20 and R19. A plugin would require two different versions since the plugin structure in R20 has also been changed.

The second advantage is that you can easily implement any changes yourself. If you have an interesting addition or modification, I will appreciate it if you send me a message.

Tip before use: If you download the c4d file, you will see a Null object with a Python scripting tag. Press with your right mouse button on the tag & click on "Save Tag Preset ...". With this, you always have access to the tag when you need it.
...Tags / Load Tag Preset / User / Tags / MographToNulls_py

MographToNulls

This is how simple the scripting tag works:

  1. Attach the MographToNulls_py tag to an object
  2. Add one object "as a child" below the object to which the tag is attached - this object can, of course, have a complete hierarchy of itself
  3. Drag a Cloner - or Matrix - to the link field of the MographToNulls tab of the tag
  4. Press the "duplicateChild" button to duplicate one object to all Clone instances of your Cloner object & voila, you have access to everything you want
  5. If you want to undo something or get a new set of objects, press the “removeAll_butOne” button to delete anything but one object. And then press "duplicateChild" again

As you will notice, the button interactions are very useful. It ensures that the entire flow is done in seconds. In contrast, the old coffee version was more awkward to deal with. If you know this version, you will be happy with the new one.

Although I have tested this tag in various setups in R19 & R20, I cannot guarantee the workings in every situation. Save your work first before applying the tag. The script at this moment only works for one frame / a still. An update for animation will follow soon…

DOWNLOAD NOW: MographToNulls_py.c4d.zip


A practical example where the MographToNull tag was necessary:

The basic concept of the video below was the generation of geometry through an animated and looping noise pattern. In short, the trick was to feed a jpg sequence to a clone’s vectorizer, extrude it, displace it and apply a polygon reduction. Without the workflow of Peranders, this could only have been done by copying the MoGraph setup and then applying a destructive CTO. It is possible, but it doesn’t work very well.


The entire "infiniteNoise" setup was made in Xpresso. If you press pause here and there, you may see a few more useful items for your own setup. But the bottom line is that everything also works in C4D R20.

If you want to know more about the MographToNulls script or the setup of the preview video, you can always contact me via CallTheONE.

Article rating: 4.5 (8 reviews)
Share this article

Related articles

Show more

Popular articles

Show more

Instant contact with a C4D expert

Creatives and designers
Jochem de Klerk
Jochem de Klerk
Free
(3)
I'm the ONE who can tell you all about motion graphics and design
show profile
Creative missionary
Tilburg ,  Netherlands
Languages: German, English, Dutch
'TheONE' badge for Jochem de Klerk
c4d photoshop after effects adobe cinema4d illustrator graphic design p2p platform
Jochem is available now
Hit me
Hari Patel
Hari Patel
$ 0.18 PM
I'm the ONE Creative Tech Guru
show profile
youtuber
Surat ,  India
Languages: English, Hindi
video editing photography photoshop lightroom graphics design premiere pro adobe windows mac basic html basic css trouble shooting
Hari is available now
Call me
Brian West
Brian West
$ 1.11 PM
I'm the ONE to ask about about digital media, video content and all things comedy
show profile
Writer, producer and digital content specialist
Greater London ,  United Kingdom
Languages: English
video editing copywriting comedy writing digital media premiere pro cc podcasting stand-up comedy tv comedy moho sitcom writing sketch writing edinburgh fringe digital content video content facebook video
Brian is available now
Call me
Paria BM
Paria BM
$ 0.18 PM
I'm the ONE I am the ONE in DESIGN - Think design act design
show profile
D E S I G N E R
Berlin ,  Germany
Languages: German, English, Persian, Italian
video editing design graphic design design thinking brand identity design english
Paria is available
but not online right now
Callback request
Mohamed Amine Messaoudi
Mohamed Amine Messaoudi
$ 0.07 PM
I'm the ONE Art is my life , music is my savior ...
show profile
Photographer
Budapest ,  Hungary
Languages: Arabic, German, English, French
video editing mechanical microsoft office mechanical design mechanics informatics photography photoshop adobe photo lightroom premere pro shooting maintenance handyman
Mohamed Amine is available now
Hit me