Hello,
I was looking for how to export the animation as a video file that I made in AnyPortrait. I'm currently want to use this feature for sound editing in the video editor software. Because it is easier to do it since I'm better at video editor softwares such as Premiere Pro, After Effects or Audition. I'm going to make a sound editing for a whole animation, and then render as .mp3 or .wav then re-import to Unity to use in the game. Probably it would better if I create new Gameobject for sounds since I have multiple animation clips in one portrait.
Or is there better/easier solution for sound editing inside Unity without exporting the animation as video file? I'm open to suggestions.
Also I might be use this video export feature for not only game animation creation, maybe other things as well such as wallpaper animation etc...
Thanks.
Hello,
Yes, it solved the one last error.
Thank you!!
Hi!
It's nice that the problem is almost solved.
The reason for that one error would be the same.
At the moment of activating GameObject, apPortrait's Initialize() function is not called yet, so error 1 occurs. (In the next frame, it works normally since Initialize() is called.)
Our recommendation is that when activating a GameObject containing apPortrait, you manually call apPortrait's Initialize() function. Then the above 1 error will also disappear.
Check out the tutorial link we attached in the previous answer.
Thank you.
Hello,
I understood the reason for the +999 error now. This error was caused by the fact that the CIASoundCheck(); code checked it repeatedly in the update and in my scene, the portrait gameobject was deactive when the game was first started (Because when the player clicks the button, the portrait object becomes active). I reduced the error count to 1 by typing the following code into Update ().
Yet, there is one error left.
There's something related with 992. line in original AP script or my script causing this.
Thank you.
Hi!
We have received your e-mail and analyzed the script.
We didn't find any problems in the script you sent.
Assuming the member properties are well set in the Unity Scene, our conclusion is that your script will work without much weirdness.
The error that occurred in the "IsPlaying" function you reported is that the "Initialize" function of apPortrait was not called, or it was stopped due to an error.
Since apPortrait's "Initialize" function is called automatically, the related errors do not occur continuously.
If so, what we suspect is that the initialization was aborted due to an unknown error while executing the "Initialize" function.
There may be other error logs in the console window other than those caused by "IsPlaying". Check it out.
(Of course we have other possibilities in mind, but in most cases it was caused by a bad initialization.)
First, take a look at the following tutorial related to initialization, and check if there is anything weird about the console window and your scene.
https://rainyrizzle.github.io/en/AdvancedManual/AD_InitializeScript.html
Even when the scene is not loaded, similar problems can occur in various cases such as duplicating, creating, deleting, and referencing GameObjects.
Please take this into account.
It was difficult for us to find problems within your script file. Therefore, we recommend that you check the other scripts, scene settings, game execution process, etc. overall.
If you can give us additional information, we can help you further.