13-09-2021, 11:33 AM
Hi there,
As described in the title, i'd like to import and export blueprint property using an image.
For example, i'd like to
the manual import/export instruction works fine with GUI.
But we have a large number of cloth models, and i don't know how to use this in a batch script.
In short, i'd like to use it as follows and wonder if it is possible:
Would you please help me how to do this properly?
As described in the title, i'd like to import and export blueprint property using an image.
For example, i'd like to
- export initial skin radius values as an image,
- process the image in other tools, and
- import back it in unity in script.
the manual import/export instruction works fine with GUI.
But we have a large number of cloth models, and i don't know how to use this in a batch script.
In short, i'd like to use it as follows and wonder if it is possible:
Code:
// create the blueprint: (ObiClothBlueprint, ObiTearableClothBlueprint, ObiSkinnedClothBlueprint)
var blueprint = ScriptableObject.CreateInstance<ObiClothBlueprint>();
// set the input mesh:
blueprint.inputMesh = yourMesh;
// generate the blueprint:
yield return StartCoroutine(blueprint.Generate());
// import property values, e.g.
// blueprint.import(property="skinRadius", file="xxx.png", min=0, max=10) ??
Would you please help me how to do this properly?