simonbs / SBSAnimoji

🐵 Animoji app using Apples AvatarKit
1k stars 103 forks source link

Update for Memoji? #31

Open gerardmassey opened 6 years ago

gerardmassey commented 6 years ago

Is it possible to get an update that supports Memoji?

NetOpWibby commented 6 years ago

Haha, came here to ask this. This app works on the latest beta and shows the new additions. Memoji must be a separate API.

moimart commented 6 years ago

Hi,

I've been digging through the new APIs and found the new PersonalAnimoji object. However, by default, it can instantiate a neutral memoji and there seems to be APIs to load others from a bundle. I can access the URL where the memojis supposedly are stored but didn't figure out yet how to get the names to load them.

I'm attaching a screenshot of the default memoji loaded. unnamed

moimart commented 6 years ago

Pinging @simonbs

yomybaby commented 6 years ago

@moimart Great! Can you share your code or PR?

moimart commented 6 years ago

Sure. I'll upload it on a fork

moimart commented 6 years ago

https://github.com/moimart/SBSAnimoji/tree/memoji

It's in the memoji branch. I guess interesting to look at is:

https://github.com/moimart/SBSAnimoji/blob/memoji/SBSAnimoji/AvatarKit/AVTPuppet.h

moimart commented 6 years ago

Btw, Apple changed the API from beta 1 to beta 3

lcolok commented 6 years ago

@moimart Great job! How can I import the custom Memoji already made in Messages?

moimart commented 6 years ago

Hi @sunloj, that's where I got stuck. I get a path for where the custom memoji are stored but didn't figure out how to get the names of the custom memojis; However, I have not checked the private API changes that happened in beta 3; Maybe it's clearer now.

lcolok commented 6 years ago

@moimart Thanks!

jchand commented 6 years ago

@moimart Wondering if you've been able to take a look at this again?

moimart commented 6 years ago

@jchand on a vacation for the next 2 weeks and pretty much away from a computer. Will have a look when I come back 😄

SamGabbay commented 6 years ago

@moimart Any luck here?

ABUAIJUTIE commented 3 years ago

Any update here? 🥲

JCsplash commented 1 year ago

Any update here? @moimart