General Category > General Anim8or Forum
Mixing Morph Targets in Scene and saving in Object mode?
Nellucnaiv:
Hi all,
I have often used 0.5 value of one Morph Target and 0.5 of another combined in Scene Mode...or even 0.1 to 0.9 value. The resulting combined Morph Targets are often just the shape I am looking for.
Is there a way to save this as an added Morph Target in Object mode?
The way I understand it is that a mesh is a lot of points that run in the background in a scripted fashion and each Morph Target is a change of coordinates and stored.
I was wondering if there was a way to perhaps export the Object in Scene Mode, pick up it's coordinates and somehow enter them in a script fashion as a "Morph Target New", or is there a way of finding the background script for Morph Targets in the background of Anim8or?
I'm sure many people using Anim8or would love to be able to do this.
I thank you for any responses in advance 🙏👍
Kevin Gales:
I once attempted to solve the problem I have to say I don't think there is a way to do it directly in anim8or.However there are two solutions that might require some coding and serious math.
1.A.This one is easy...I have already posted a simple tool somewhere in this forum that can convert sequence of objects back into anim8or morph targets.I could enhance the code ONLY IF Anim8or could export objects in scene mode *I made a request for this once,to export scene as .obj
(B.Longer solution is also possible,however would require tempering with anim8or such as by hooking the software with a dll and extracting the scene objects.I can achieve this, just that it would require time to code and permission from Steve[anim8or creator] ,since I am not sure hooking the software with an external dll counts as license infringement or something of that sort)
2.Another option is to recalculate morph targets from the scene and use the resultants to inject back as morph targets this can be done directly by editing the an8 file with some code that does the math.* provided the object is not rigged(it is not a figure)
If anyone is interested in how option 2 or option 1B can be implemented let me know let's discuss this
Nellucnaiv:
Thanks so much for your interest and answer Steve!
I really appreciate it. I fancy your 1B option of being able to export as OBJ in Scene mode but as you say the features is not yet available. I think Steve is a very busy man and totally unselfish, still regularly responding to requests and questions and freely giving up his time to do so much at no cost to anyone. I truly admire him!
I like your Option 2, to open the script of the Anim8or Scene and find the mixed Morph Targets and calculate new coordinates and "inject" them in OBJ mode in the script to create a new Morph Target.
I think it could be quite a calculation but perhaps an Excel Spreadsheet could be made to auto calculate combined coordinates from inputs without having to calculate manually. It would then mean taking the Excel outputs, copying them and pasting them as a New Morph Target into the Object part of the script.
What do you think of the idea? Do you think it could work?
I'm not a Script writer but I can go by example in Notepad and do a test.
Perhaps you have a better way or idea.
I'd love to hear what you think 👍
Thanks again.
Kevin Gales:
I did some analysis I think I can come up with something based on option 2.However as I said it would be difficult if the target is a figure since well the math used by Anim8or to move coordinates with bones is something I cannot figure out...I'll quickly code something to make a demonstration using a simple cube (which is not a figure but object with morph targets).
Nellucnaiv:
That would be great if you could write a code for morphing. I use weights in Figure mode, so all attached objects already have Morph Targets.
I personally, would only use it in Object mode.
I look forward to seeing what you come up with!
Navigation
[0] Message Index
[#] Next page
Go to full version