MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

Loop through inputs and outputs in coffee

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
David GruwierLoop through inputs and outputs in coffee
by on Aug 15, 2016 at 10:55:28 am
Last Edited By David Gruwier on Aug 15, 2016 at 10:56:47 am

So basically I want to add a one math operation to several different values in xpresso. Instead of using one xpresso math node for every single value, I've been told I could maybe do it with a coffee script and an array/list and a for-loop. I know what those are, but not how to write and use them.

Lets say I need to add 10 to every value. Basically I need a version of this, that doesn't have every value spelled out individually, but just has the math operation written out once, then automatically goes through and applies that operation to however many inputs and outputs there are to and from the node.

Output1 = Input2 + 10;
Output2 = Input2 + 10;
Output3 = Input3 + 10;
Output4 = Input4 + 10;

Just knowing this one thing would vastly simplify all my xpresso scripts. Any thoughts?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 All Rights Reserved