Blend shapes don't animate
Greetings!
When I import an animated object with blend shapes from Cinema 4D, the blend shapes themselves seem to be stored within a "Blenshapes" (typo in the engine?) component in the animated object, but the blend shapes stay their initial value and don't animate. Also a bit curious, when I try to change a blend shape's value to 0, the blend shape disappears.
Hi Bt,
How are you playing the animation back in Lens Studio? Are you using the PlayAnimation script in the documentation? Let me know if you're still not seeing your blend shapes after trying that script.
Also, thanks for pointing out that typo. I'll let the team know.
Best,
Peter
I modified the idle animation template at first so I could understand why no animation was working at first, but I've since started using the PlayAnimation script (apparently, for Cinema 4D anyway, you have to change the animation layer name from "BaseLayer" to "Layer0", took me a while to figure that out). Both ways of playing the animation leaves the blend shapes in their initial value, not animating.
Sorry to hear you're still having trouble getting your blend shapes to animate properly.
In Cinema4D, what's the Envelope of your blendshape? That is, what's the range of values that blend it from base pose to target pose (e.g. 0.0 - 1.0)?
Also, here's a script you can use to test out your blendshapes just to make sure they're being imported properly. Follow these setups to create a test:
1) Create a new project.
2) Import your mesh.
3) Select the SceneObject with the BlendShapes component.
4) Add a Script component to that Scene Object.
5) Add the following Script to that Script Component, and set it to "Initialized"
This script will automatically oscillate between the min and max blend values for your blendshape. You can define those min and max values in the Inspector. Just supply the name of your blendshape in the "Blend Shape Name" property.
If your blendshapes have been imported properly, you should see it transitioning back and forth between the base shape and target shape. You can also adjust the speed by changing the "Blend Speed" property in the Inspector. If you're not seeing the shape change, try changing the Max Blend Value property to something large, like 100.0.
When you've had a chance to try out this script, let me know what you see.
Best,
Peter
Hi Peter,
Maybe I have the same issue. I use a "Displacer"object to make animation in C4D.
And try to let it work in Lens studio by different way:
1.Export as a normal FBX, Import to a Animation template, remove what need Remove and edit what need Edit.
certainly,it doesn't work because it haven't skeleton.
2.I baked animation to a copy object according to the course, and the Animation Mixer still can't find items.
3.I try not use the Animation template, build a new project and use the PlayAnimation Script, still doesn't work.
4.I try the BlendShapes Script u gave, still doesn't work.
Hope u guys could told me how to let it work well : )
Hi again, Peter.
Sorry for the late reply. I believe I've discovered the problem, and it turns out to be another C4D quirk - or maybe I'm just a little too green when it comes to exporting: The blend shapes, when assigned to the "pose morph" tag in Cinema 4D, must be set to "relative" and not "absolute".
Please correct me if I'm wrong, but I don't remember seeing this in the official guide. I'm sure a lot of C4D users would appreciate it if it's added to the guide.
Hey Bt.
You're completely right.
You should set the "Pose Morph" tag in Cinema 4D to relative.
If absolute option is selected, the point positions are stored as absolute. When you blend in an absolute morph target, the object will take the shape the morph target had when set to Absolute, even if you have changed the base morph since then. With that said if you're using absolute mode, your using PLA(Point Level Animation) to morph between two and the PLA is not currently supported by Lens Studio. but if relative option is selected, the changes are stored relative to the base morph which is supported by Lens Studio.
We added the PLA in our feature request for future updates.
You can learn more about the Pose morph tag in here.
Best,
Amir.
Hi There,
I am having similar issues animating a Blend Shape. PLA animation works great when I import the .fbx into Lens Studio however Blend Shape animations don't work when importing.
I have attempted various import/ export options including absolute vs relative. Is there any way to import a Blend Shape with the animation similar to other .fbx files with PLA animation?
Thanks!
Alex