![](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/e2f141c1-731a-4a3a-843a-06a08ba8e1f0/FlowerRig_0001_shaded.jpg)
Flower Rig
Flower Rig
This project has been created to demonstrate how to set up an IK/FK switch for a simple character. This project also introduces some scripting and SeExpressions for the Petals.
Demonstrating the IK / FK Switch that happens on this rig
Demonstrating how some simple SeExpressions can bring a rig to life
Basic structure for the expression applied to each petal joint
// Expressions
// 1. Create a speed control attribute
// 2. on each master petal joint add these lines for rotateZ
petal01_JNT_01.rotateZ = 3 * sin(frame/FLOWER.speed);
petal01_JNT_01.rotateY = .4 * cos(frame/FLOWER.speed);
Simple script to speed up the rigging process:
// 1. select parent joint, select your child joint
// 1a. make a list for each joint in a petal
// 1b. separate the list into a parent list (first 4), and the children (second 4)
// 2. make the rotation connection
// 3. do this string
$petalParents[] = {"petalArm05_01", "petalArm05_02", "petalArm05_03", "petalArm05_04"};
$petalChildren[] = {"petalArm05_02", "petalArm05_03", "petalArm05_04", "petalArm05_05"};
global proc jointRotation(string $myParent, string $myChild){ // this function connects the rotation of 2 joints
connectAttr -f ($myParent + ".rotate") ($myChild + ".rotate");
}
int $i; // variable to iterate through the list
for ($i = 0; $i < 4; $i++) {
jointRotation($petalParents[$i], $petalChildren[$i]);
}
![flowerShaded.jpg](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/243c41b9-9185-4b94-9d75-dbd185b95d76/flowerShaded.jpg)
![flowerWireframeonShaded.jpg](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/318bb7fc-777b-4437-8ea0-5b023073fabc/flowerWireframeonShaded.jpg)
![Some fun things I played around with using some simple scripts.](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/9d357c69-957d-43a1-8f9d-132bdc951135/flower01.png)
![These have nothing to do with the project.](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/e729aa73-da69-4dec-be39-025867022daf/flower02.png)
![Trying different things while helping students](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/165e7ae6-6fc5-4064-ac52-043495775552/flower03.png)
![Quite interesting to look at.](https://images.squarespace-cdn.com/content/v1/63c4e1b8ca7c743a67827932/4a71ce9e-ebce-46a7-895c-2c34e78eb22f/flower04.png)
The photos above are some fun things I played around with using some simple scripts. These have nothing to do with the project, but were interesting.