Cinema 4D Lite Reference: Automating Animation with Expressions and Linked Parameters

Share this video
  • Duration: 07:01
  • Views: 3848
  • Made with Release: 16
  • Works with Release: 16 and greater

Use parameter animation and Expressions to automate certain animation tasks.

Besides Position, Scale and rotation, we can animate any object parameter inside Cinema 4D Lite, as long as it has the Little Round dot next to it. Let’s look at a few of these Parameters, and see how we can do, impressive stuff. We will also drive one object’s animation using another objects parameter. Getting curious?

show less

Transcript

- Besides position, scale and rotation, as I showed earlier we can animate any object parameter inside Cinema 4D Lite as long as it has that little round dot next to it. Let's look at a few of these parameters and see how we can do pretty impressive stuff. In this file, we have swept a text spline along another spline. What I want to do is animate the growth of the sweep so start growth, but at the same time I want the camera to look at the text. I want to achieve that by only animating one parameter. And that parameter will drive a different parameter. Let me explain exactly what I mean. The parameter I'm going to animate is a start growth and it will go from 100% all the way to 0%. But how can that affect the camera position? Well, let me show you a few tricks here. I'm going to go and create a null object which is the equivalent of a null object we have in After Effects. It's an object that has position, scale and rotation but no geometry whatsoever. I'm going to double-click and call it "target." Now what I'm going to do I'm going to add a very special tag. Right click here, go to Cinema 4D tags and select the second one, align to spline. Now I'm going to select my null just to make sure that I can see it a bit better because currently it's just a dot. I'm going to change the display type of the null from a dot to a circle. And I'm going to make the circle larger. This just affects the display in the viewport nothing else. Now if you select the align to spline tag, what it needs as an input is a spline path and because we want the camera to look at the text which has been swept on a spline, I'm going to use the same spline I used in the sweep generator. Click drag. I'm going to put it here. Now what's going to happen is that when this value changes, you can see that the null follows the spline. We can go to the top view, press H to maximize it and here we can see it better. By moving the position of the align to spline expression it changes where that null is placed along our spline. And what you will see is that both the position is a percentage and if we go to our perspective view and for the sweep the start growth is a percentage as well. So how do we connect these two? Well, it's fairly simple. You go to the parameter you wanted to be the main driver, you right click, you say expressions, set, driver. It's a sort of a copy command. Then let's select the tag, you go to the position you want to drive, you right click expressions again, set driven, absolute. Now watch this. I'm going to select my sweep, go to the object tag and you can see the icon here has changed because it indicates it's driving something else and when I increase this value you can see that the null follows the text. Fantastic. "And how does that help us with a camera?" you're gonna ask me. Well it's very simple. First of all, we need to add a camera to our scene. So click here once, and now we have a camera. Don't forget activate it so we're viewing through this camera. Now let's go and set our final framing. Let's assume this is our final frame. And this will establish the position relationship between our camera which is here and our null which is here. And once I've done that I'm going to make the camera a child of the target. The driver driven process added another null with some other tag an expresso tag. This is if I double click this, this is where the code, so to speak, of that connection between the start growth and the position is established. But more on this later. Just leave it as it is, don't delete it because this does the calculation for us. But watch this now, when I select the sweep go to the object tab and change this. Now not only we are changing the sweep value we're actually moving the camera as well. So let's go to frame 80 and set the final frame by just clicking once here. The fact that the icon has changed does not mean that we cannot keyframe it. If it's driving a parameter like in this case you can keyframe it. If it's a driven parameter you cannot because it's value is defined by the driver. Let's go back to frame zero. What I'm going to do, I'm going to set this to 99 and set the keyframe. Rewind, press play and you have a procedural animation that drives two different parameters which in turn because of hierarchy, allow the camera to look at our text. At any given moment you can go to your sweep object go to the details and you can change the actual shape of your sweep. You don't need to run the animation to do that and you can always deactivate the camera to get a better view of what's going on. The camera has been unmoved, we're just viewing through the default camera now and what I can do in the details is go to the rotation for example and let's Cmd+click here, here and here. Pull this up so we create an extra twist, but this seems a bit too abrupt so how do I make these nice and round? Well, there's another hidden arrow here so we have this arrow that opens up the details and then this arrow that opens up the parameters of the rotation. Twirl this open, scroll down and you will see that the interpolation of the spline currently is linear. Let's make it cubic and that is based on the point you have selected. So I'll select all these, make them cubic, and now you will see that it's a bit round and in order to add more segments here, I need to go to my spline and just make sure that we have more segments in our uniform subdivision. Let's select our camera, deselect everything for a clean interface, rewind, press play and we have the same animation over a different type of path. You have successfully learned how to animate parameters and link object values via drivers and driven keys. All it takes is a click on the dot or a right click on the parameter.
Además de la posición, escala y rotación, como he mostrado anteriormente podemos animar cualquier objeto parámetro dentro de CINEMA 4D Lite siempre ya que tiene ese pequeño punto redondo junto a ella. Veamos algunos de estos parámetros y ver cómo podemos hacer más o menos cosas impresionantes. En este archivo, hemos barrido a lo largo de una spline texto otra spline. Lo que quiero hacer es animar el crecimiento de la barrido a fin de comenzar el crecimiento, pero al mismo tiempo quiero la cámara para mirar el texto. Quiero lograr sólo animando un parámetro. Y que el parámetro impulsará un parámetro diferente. Voy a explicar exactamente lo que significa. El parámetro que voy a animar empieza con un crecimiento y pasará de 100% hasta llegar a 0%. Pero ¿cómo puede afectar la posición de la cámara? Bueno, deje que le enseñe algunos trucos aquí. Voy a ir y crear un objeto nulo, que es el equivalente de un objeto nulo que tenemos en After Effects. Es un objeto que tiene la posición, escala y rotación, pero sin geometría que sea. voy a hacer doble clic y llamarlo "objetivo". Ahora voy a hacer y voy a añadir una etiqueta muy especial. Derecha haga clic aquí, ir a CINEMA 4D y etiquetas seleccione la segunda, se alinean con spline. Ahora voy a seleccionar mi nula sólo para asegúrarme de que lo puedo ver un poco mejor ya que de momento es sólo un punto. vamos a cambiar el tipo de visualización de la nula desde un punto de un círculo. Y voy a hacer el círculo más grande. Esto sólo afecta a la visualización de la ventana gráfica nada más. Ahora bien, si se selecciona la alineación de spline etiqueta, lo que necesita como entrada es un camino spline y porque queremos que la cámara para mirar el texto que ha sido barrido en una tira, voy a utilizar la misma spline que utilicé en el generador de barrido. Haga clic en el arrastre. Voy a ponerlo aquí. Ahora lo que va a pasar es que cuando estos valores cambien, se puede ver que la hipótesis nula sigue la curva de selección. Podemos ir a de la vista superior, pulse H para maximizar y aquí podemos ver mejor. Al mover el posición de la alineación de spline expresión cambia cuando esa nula se coloca a lo largo de nuestra spline. Y lo que se ve es que tanto la posición es un porcentaje y si vamos a nuestra vista en perspectiva y para el barrido del crecimiento de inicio es un porcentaje también. Entonces, ¿cómo conectamos estos dos? Bueno, es bastante simple. Va al parámetro que quería ser el controlador principal, haga clic derecho, se dice expresiones, conjunto, conductor. Es una especie de un comando de copia. A continuación, vamos a seleccionar la etiqueta, de ir a la posición que desea conducir, hacer clic derecho expresiones, defina impulsado, absoluta. Ahora mire esto. Estoy yendo para seleccionar mi barrido, ir a la etiqueta objeto y se puede ver el icono de aquí ha cambiado, ya que indica que está conduciendo otra cosa y cuando puedo aumentar este valor se puede ver que la hipótesis nula sigue el texto. Fantástico. "Y ¿cómo nos ayudan con una cámara?" va a preguntarme Bueno, es muy simple. En primer lugar, tenemos que añadir una cámara a nuestra escena. Asi que clic aquí una vez, y ahora tenemos una cámara. No hay que olvidar que activar por lo que estamos viendo a través de esta cámara. Ahora vamos a ir y establecer nuestra encuadre final. Vamos a suponer que esto es nuestro cuadro final. Y esto va a establecer la relación entre la posición de nuestra cámara que está aquí y nuestra nula que es aquí. Y una vez que lo he hecho Voy a crear la cámara a un hijo del objetivo. El proceso impulsado por el conductor añadió otra nula con alguna otra etiqueta de una etiqueta de expresso. Esto es, si hago doble clic en este, aquí es donde el código, por así decirlo, de esa conexión entre el crecimiento y la posición de inicio se establece. Pero más sobre esto más adelante. Acaba de salir de él, ya que es, no lo borre, ya que esto hace el cálculo para nosotros. Pero mira esto ahora, cuando selecciono el barrido, vaya a la pestaña objeto y cambiar esto. Ahora no sólo estamos cambiando el valor de barrido que en realidad estamos moviendo la cámara también. Así que vamos al frame 80 y establecer el marco final con sólo hacer clic una vez aquí. El hecho de que el icono haya cambiado no significa que no podemos fotogramas clave de la misma. Si se trata de la conducción de un parámetro como en este caso, puede que los fotogramas clave. Si se trata de un parámetro impulsado no puede porque su valor se define por el conductor. Vamos a ir de nuevo a frame cero. Lo que voy a hacer, voy a establecer este a 99 y establecer el fotograma clave. rebobinado, pulse play y tiene una animación progresiva que impulsa dos parámetros diferentes que a su vez causa la jerarquía, permitir a la cámara mirar nuestro texto. En un momento dado se puede ir a su barrido de objeto ir a los detalles y puede cambiar la forma real de su barrido. No es necesario para ejecutar la animación hacerlo y siempre se puede desactivar de la cámara para obtener una mejor visión de lo que está pasando. La cámara ha sido indiferente, sólo estamos viendo a través del defecto de la cámara ahora y lo que podemos hacer en el detalles se van a la rotación, por ejemplo, y dejar de Cmd + clic aquí, aquí y aquí. Tire esto de modo que creamos un extra de giro, pero esto parece un poco demasiado brusco por lo ¿Cómo puedo hacer esto agradable y redondo? Bueno, hay otra flecha oculta aquí, así que tienen esta flecha que abre los detalles y entonces esta flecha que abre los parámetros de la rotación. Girar esta abierta, desplácese hacia abajo y verá que la interpolación de la spline Actualmente es lineal. Vamos a hacer que cúbico y que es basado en el punto que ha seleccionado. Así que voy a seleccionar todos éstos, hacerlos cúbico, y ahora se verá que se trata de una pequeña ronda y con el fin de añadir más segmentos de aquí, necesito ir a mi spline y sólo asegúrese de que tenemos más segmentos en nuestra subdivisión uniforme. Vamos a seleccionar nuestra cámara, anule la selección de muebles para una interfaz limpia, rebobinado, pulse play y tenemos la misma animación de más de un tipo diferente de ruta. Ha aprendido con éxito cómo animar los parámetros y valores de objeto de enlace través de los conductores y las teclas accionadas. Todo lo que necesita es un clic en el punto o un clic derecho sobre parámetro.
Resume Auto-Scroll?