kl2dfg : need to tweak automatic Compose/Decompose presets

benblobenblo Posts: 29

I just discovered that kl2dfg automatically creates Compose/Decompose presets for structs, which is cool. Problem is, I don't know how to tweak the presets' ports' metadata (default value, slider range, etc).

I tried putting the same \dfg metadata I would on a method, but directly on the structs... nope.
I also tried putting it directly on the fields (which would be even better)... still nope.

Here's what I tried:

/// \dfgPresetDefault floatA 1
/// \dfgPresetRange floatA (0.0, 1.0)
struct MyStruct
{
  public Float32 floatA;

  /// \dfgPresetDefault 1
  /// \dfgPresetRange (0.0, 1.0)
  public Float32 floatB;
};

... nothing works, I'm just getting default ports.

So I still have to manually write constructors for these structs, with all the fields as arguments... and now I'd just rather not have these Compose/Decompose presets generated at all, since they're redundant and confusing for the user: any way to turn them off?

R&D Developer at Dwarf Animation Studio

Tagged:

Best Answer

Sign In or Register to comment.