-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeking Assistance with this Plugin Integration Using in Unity #29
Comments
Interesting approach. How exactly are you running Python, and more so, Blender embedded Python in Unity? |
It appears that the Unity in-process python API fails to handle the requirements of Things you could try:
|
Thank you so much for replying. I've tried the first tip but failed. The blender just quit and didn't report any errors. I will try the second later and hope it will help. |
The second will definitely work, but you will have to implement client-server communication between your Python script and Unity. It's cumbersome, but that's the standard way to do it. |
Thank you so much!!!!! It's really exciting to receive your reply because this problem have bothered me for so long. |
I have ran Blender in the background with this addon successfully before. So this is odd. What is the content of |
What happens when you run it with an empty script? |
What does that mean? Nothing will happen I believe. It's not until the code "bpy.ops.alignment.apply()" that the error of "icon" emerge. |
Ah, there we go. The addon tries to display a popup, which obviously won't work in background. |
“retargeting_context”? Is that defined in addon already, or I have to define it with bpy.context? |
No that is already defined. Take a look at your code, you are already using it to select the source armature. |
The bake operator unfortunately also triggers a popup, after a successful bake. Sadly this cannot be bypassed, so unless you find a way for your implementation to tolerate popups, you will have to fork this repo and remove this popup invocation. |
I hope this message finds you well. I am a college student currently working on an undergraduate research project that involves utilizing Unity and Blender software. I am reaching out to you as I have encountered some challenges and would greatly appreciate your guidance.
In our project, we are developing an integrated system, and one of the key functionalities involves transferring human body movements from a video to a skeletal structure. We are using this plugin developed by you, and since our final platform is built on Unity, we need to replicate everything from Blender, including this plugin, in Unity.
For various aspects in Blender, such as bone binding, I have successfully used Python code files (bpy package) that can be directly invoked in Unity. However, I am encountering persistent errors with the plugin. The code segment responsible for calling the plugin works flawlessly in Blender but generates errors in Unity. The specific error messages are: [anim-retarget-addon] set source armature to Armature, [anim-retarget-addon] cleared IK controls, [anim-retarget-addon] cleared drivers.
I am truly in need of your expertise and assistance in resolving this issue. Any guidance or suggestions you can provide would be immensely valuable to our project. If possible, could you please share any insights or solutions you may have regarding this error?
Thank you very much for considering my request, and I sincerely hope to hear back from you soon. Your help would be greatly appreciated.
Best regards
The text was updated successfully, but these errors were encountered: