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
89 stars 14 forks source link

Add action_name_prefix and use_fake_user #41

Closed cuddlyogre closed 3 weeks ago

cuddlyogre commented 3 weeks ago

Add an option to specify an action name prefix and to mark whether the sent action should have a fake user. There is a companion addition to cc_blender_tools. The rationale is that it makes it easier to organize and preserve poses and motions sent to Blender.

soupday commented 3 weeks ago

Ok, I'll take it.

There may be problems with Retargeting if later Rigifying as I use the first part of the name to identify the source rig... however I am going to move away from putting the identifiers in the name, as this is too easy to break, and put them in custom properties instead, so this won't be a problem much longer.

soupday commented 3 weeks ago

I've cleaned up the action name prefix code. Sequences weren't fetching the name prefix, and my naming logic for the replace_action_motion was almost non-existent. I have it renaming all the actions according to the character/rig name and using the prefix as appropriate. It also now doesn't remove any pre-existing actions, only the unused ones from the motion import.

I've also got the initial character import (Send Avatar / Go-B button) to also use the action name prefix.

All in all it's a good feature.

cuddlyogre commented 3 weeks ago

Fantastic! This feature saved me probably a couple hours of work yesterday and I'm glad it can help other people, too. The code for this plugin is very clean and intuitive. It was a treat to work with.

cuddlyogre commented 3 weeks ago

Is there a way to get the name of the pose/motion when you apply it to the character? If so, having that be the default name or prefix for poses and motions would be incredibly helpful.

I've looked through https://wiki.reallusion.com/IC_Python_API:RL_Python_Modules#Animation but I'm not finding anything.

soupday commented 3 weeks ago

Clips do have names but it is not exposed in the API.