soupday / CCiC-Blender-Pipeline-Plugin

Python plugin for CC4 and iClone8 to re-import character exports from CC3/CC4 Blender Tools auto-setup add-on.
GNU General Public License v3.0
100 stars 15 forks source link

Sending Just Mesh back to CC #48

Open BDMarkN opened 3 months ago

BDMarkN commented 3 months ago

I have the new versions installed and trying to figure out how to just send a change in mesh back to CC. I see the button send mesh, but that just gives a message in CC "Frame Sync Received". Not sure how to go from there.

soupday commented 3 months ago

Which version of Blender is it?

Are there any errors in the System Console in Blender or the Console Log in CC4?

BDMarkN commented 3 months ago

4.1. No errors I saw. Screenshot 2024-06-29 145346 Screenshot 2024-06-29 145359

BDMarkN commented 3 months ago

Once I hit mesh, I am i supposed to do anything else???

soupday commented 3 months ago

No success notification at the bottom of the window in Blender either.

Any errors would be in the python console logs: Blender Menu > Window > Toggle System Console CC4 Menu > Script > Console Log

BDMarkN commented 3 months ago

From Blender:

AttributeError: 'NoneType' object has no attribute 'data' Writing to C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\exports\Meshes\CC_Base_Body_mesh.obj OBJ export of 'CC_Base_Body_mesh.obj' took 29.90 ms Info: Replace Mesh sent...

Error: Failed to read blend file 'F:\downloads\Interior Modles\Interior Models VOL1-VOL3\Beds\cabinet-34967_frame_dark_oak.blend': Missing DNA block Error: Failed to read blend file 'F:\downloads\Interior Modles\Interior Models VOL1-VOL3\Cabinets\cabinet-641422_Frame_White_2.blend': Missing DNA block Warning: Unable to read 'F:\downloads\Interior Modles\Interior Models VOL1-VOL3\Cabinets\cabinet-643897_frame_camphor_veneer.blend': insufficient content Error: Failed to read blend file 'F:\downloads\Interior Modles\Interior Models VOL1-VOL3\Kitchen\kitchen-sweet_wall_hood_85cm_frame_peltrox.blend': Missing DNA block Error: Failed to read blend file 'F:\downloads\Interior Modles\Interior Models VOL1-VOL3\Shelves\shelf-301627_frame_mint_blue.blend': Missing DNA block

On Sat, Jun 29, 2024 at 4:21 PM Victor Soupday @.***> wrote:

No success notification at the bottom of the window in Blender either.

Any errors would be in the python console logs: Blender Menu > Window > Toggle System Console CC4 Menu > Script > Console Log

— Reply to this email directly, view it on GitHub https://github.com/soupday/CCiC-Blender-Pipeline-Plugin/issues/48#issuecomment-2198327008, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM62ZUZ32YE22S6PQC25ZUDZJ4JMLAVCNFSM6AAAAABKDFCGM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGMZDOMBQHA . You are receiving this because you authored the thread.Message ID: @.***>

BDMarkN commented 3 months ago

Log from CC

On Sat, Jun 29, 2024 at 4:21 PM Victor Soupday @.***> wrote:

No success notification at the bottom of the window in Blender either.

Any errors would be in the python console logs: Blender Menu > Window > Toggle System Console CC4 Menu > Script > Console Log

— Reply to this email directly, view it on GitHub https://github.com/soupday/CCiC-Blender-Pipeline-Plugin/issues/48#issuecomment-2198327008, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM62ZUZ32YE22S6PQC25ZUDZJ4JMLAVCNFSM6AAAAABKDFCGM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGMZDOMBQHA . You are receiving this because you authored the thread.Message ID: @.***>

using Blender Executable Path: C:\Program Files\Blender Foundation\Blender 4.1\blender.exe Using Datalink Folder: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link not supported command: Service timer started Listening on TCP *:9333 Incoming connection received from: 127.0.0.1:60544 Hello Received Connected to: Blender 4.1.1 Using file path: Exporting Character: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\RootNode\RootNode.fbx

New Avatar Export, Fbx Exporting Avatar FBX: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\RootNode\RootNode.fbx Exporting without motion C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\RootNode\RootNode.json C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\RootNode\RootNode.fbx

self.receive_replace_mesh(data) File "C:/Program Files/Reallusion/Character Creator 4/Bin64/OpenPlugin/CC4-Blender-Tools\btp\link.py", line 2931, in receive_replace_mesh

avatar.ReplaceMesh(cc_mesh_name, obj_file_path) AttributeError : 'RIAvatar' object has no attribute 'ReplaceMesh' Exporting Character: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_8\CC3_Base_Plus.fbx

New Avatar Export, Fbx Exporting Avatar FBX: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_8\CC3_Base_Plus.fbx Exporting without motion C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_8\CC3_Base_Plus.json C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_8\CC3_Base_Plus.fbx

self.receive_replace_mesh(data) File "C:/Program Files/Reallusion/Character Creator 4/Bin64/OpenPlugin/CC4-Blender-Tools\btp\link.py", line 2931, in receive_replace_mesh

avatar.ReplaceMesh(cc_mesh_name, obj_file_path) AttributeError : 'RIAvatar' object has no attribute 'ReplaceMesh' Error: Client socket recv:recv header failed! -> ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None) Closing Client Socket Service timer stopped Closing Server Socket Service timer started Listening on TCP :9333 Incoming connection received from: 127.0.0.1:49522 Hello Received Connected to: Blender 4.1.1 Using file path: Exporting Character: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_5\CC3_Base_Plus.fbx

New Avatar Export, Fbx Exporting Avatar FBX: C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_5\CC3_Base_Plus.fbx Exporting with current animation: 534 C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_5\CC3_Base_Plus.json C:\Users\markm\AppData\Local\Temp\iClone8Temp\iClone8Temp\Data Link\imports\CC3_Base_Plus_5\CC3_Base_Plus.fbx

self.receive_replace_mesh(data) File "C:/Program Files/Reallusion/Character Creator 4/Bin64/OpenPlugin/CC4-Blender-Tools\btp\link.py", line 2931, in receive_replace_mesh

avatar.ReplaceMesh(cc_mesh_name, obj_file_path) AttributeError : 'RIAvatar' object has no attribute 'ReplaceMesh'

soupday commented 3 months ago

Aha. You need to update CC4 to the latest version: 4.42.3004.1 That's the only version with the ReplaceMesh API functions.

BDMarkN commented 3 months ago

Got it...thanks!!

On Sat, Jun 29, 2024 at 10:54 PM Victor Soupday @.***> wrote:

Aha. You need to update CC4 to the latest version: 4.42.3004.1 That's the only version with the ReplaceMesh API functions.

— Reply to this email directly, view it on GitHub https://github.com/soupday/CCiC-Blender-Pipeline-Plugin/issues/48#issuecomment-2198413505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM62ZU7CMLJI3FLOEMHLPBDZJ5XONAVCNFSM6AAAAABKDFCGM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGQYTGNJQGU . You are receiving this because you authored the thread.Message ID: @.***>