I have created the cube like cartoon character with array modifier. I want to add the eyes & mouth shapes as a child object to the specific array count. So when I increase the array count that eyes & mouth always top of the cube. Is this possible?
within the driver settings make the following settings
expression “var - (your body shapes initial height)”
in the variable section set the drop down of var to be a single property.
set the property as your body object.
set the path as dimensions[2] (this is the z-axis height)
(while you can techincally set it to the array modifier count then multiply by the dimensions of the original box subtracting the original box height its overcomplicating the goal to achieve the same result)
if you already created shape keys for animating eyes mouth etc they are lost (merged) when joining all the objects together (if you have not created shape keys yet you still can w/o issue)
advantage
you can now have your array and body shape fit and deform to a curve with the head always appropriately placed.
I have tried the option 01. I am using simple modifier for twist, bend, stretch for the body. How to parent the face objects to them. Please see the output result below for the better understanding…
with regards to the original z position you could start with the expression (where 2 was the original body size): (array_cnt -1)*2
and the variable data path being: modifiers["Array"].count
but once you add a bend that value is no longer accurate and you would need to add a variable for the bend modifer and calculate the arc angle distance offset and change the expression.
you would also need to add a driver to the y and x positions as well as drivers to the x,y,z rotations.
This is why option 2 (using an array cap) simplifies things greatly.
The end cap is always placed at the end of the array
I want to animate the eyes & mouth, so before you mentioned that “option 2” is not suitable for animation.
I have no idea how to add angles to scripted expressions for “bend, twist, stretch (simple modifier)”. I have attached the .blend file. If it possible please go through this blend file and let me know your thoughts.
I did not say you couldn’t animate using an end cap I said if you already had shape keys they would be merged. As such you would need to re-create them.
I have one more query. I have created the 10 different heads for each blocks, I want to switch that when I change the array count. How can I achieve this? Is this possible?