Hi,
I’m having trouble morphing a region of a mesh. I have a mesh with lots of vertices and contours. I would like to translate a set of pre-defined vertices along a vector by using a slider.
For example:
Start with a bunny - assuming a height of 10 (lets say the ears start at a height of 5)
Select (pre-defined, not dynamically with gizmos or RMB) the upper half of ears (all vertices above a height of 7.5)
Move them upward on a slider
Here’s a non morph working solution (I’ve hard coded the height for now).
I loop through the indices, look for positions above a value, and change them if found.
There must be a better way than always looping through all positions?
but I cannot hook it up to the slider because I can’t seem to access my dictionary (or array) of meshes outside of the onSuccess functions - for some reason “myMeshes” shows “bunny” as a key but "myMeshes[“bunny”] is null and won’t allow me to work on it! Any idea?
WOAH! Thanks for checking. That’s what I would expect except for me it is undefined!
Actually my console.log in the slider does display something. It’s the global space (say right before return scene) that shows “myMeshes” as a dictionary with “bunny” and “morphedBunny” but “myMeshes[‘bunny’]” as undefined. I’m confused.
also, target0.influence doesn’t return an error but it doesn’t work either!
SO CLOSE!
is the mesh not updateable? do imported meshes require additional settings to get the influence working?
Can you save your playground and share it with me? I’m going to try and do this outside of the playground.