Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  import and export blueprint property values in script
#1
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 

  1. export initial skin radius values as an image, 
  2. process the image in other tools, and 
  3. 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?
Reply


Messages In This Thread
import and export blueprint property values in script - by joe smith - 13-09-2021, 11:33 AM