(question) how scirpt set Armature custom prop id and shape key name for custom morph(driven)?

Issue #234 closed
engetudouiti created an issue

It is somehow related with #224 though I only need confrim the way add on set property for driven shape keys.

When import “custom morph”, and I select my hand-made morphs. or vendor offered item morphs like gen ot tops etc.

plug in may generate new shape keys, with shape key ID (or name? which we see in property panell >shape key)

Then with driver add option, it generate custom-prop with new morph sysutem rule for driver target rig.

so I can see, bpy.data.objects[“ genesis 3 female”][“csutom morph”] as actor rig object proeprty, for each purpose.

But I can not find clear rule, for shape key labell name and the prop id. Of course I know you aleady offer useful function, to list dic about all props of rig (which daz importer added)

What I hope is,, check shape key labell name of one mesh, then if there is rig csutom prop or not.

From some version change, you seems use new rule, to set prop name (from dsf file, use daz set ID or daz set name, or labell name)

Then how you set “prop id of rig” (in blender) and shape key name, when import one custom dsf? (use ID in the dsf for the prop, or use file name, or use labell etc)

Ideally, there should be way to get shape key of mesh, from custom property of Rig,

and get custom property name of rig from shape key. (when driver already set).

I can easy make funciton, to serch driver from shape key name of the mesh. but I can not find good way, to check the rig already have property (driver variable target) which drive other mesh shape key. from shape key name which we can find. because sahpe key name of custom morph and rig prop name not much in many case.

(it only need for mesh shape key.which not attached for the current rig. Though I suppose you already know way how to manage for re-target funcition)

Comments (4)

  1. engetudouiti reporter

    To my question more clear,

    When we save as “morph” and make new property (all controller include shape morph etc, we need it ,then save as dsf)

    DS auto set the dsf file name, and it include user set controller id, name, and labell for UI.

    Then daz improter can only use one of those 4 value in the morph.dsf “Dsf name” “id” “name” “labell” to set rig prop id to driven, and mesh shape key id

    before I rememer plug in auto added prefix for ID, to distinguish each morph purpose. when improt jcms or daz default morphs.

    But recent versions seems not add those for ID. so I suppose you may pick ,the parameter ID, or labell or file name from imported morph.dsf then use it for Rig property, and mesh shape key name. but “Shape key name” and “Target RIg prop id” seems not same, when I import custom shape keys.

  2. Log in to comment