It looks like you're new here. If you want to get involved, click one of these buttons!
Hello guys. I'm trying to run a canvas file in KL using the DFGBindingWrapper, but it requires RTval type to set up arguments. Is it possible to convert KL types to RTval in KL? All info I can find in the docs refers to the Python and C++ languages.
you can cast them directly.
Here is an example using the relaxOnSurface preset:
String relaxOnSurfacePath = "FabricEngine/2.3.0/Presets/DFG/Fabric/Compounds/Deform/RelaxOnSurfaceVec3.canvas";
inputs["mesh"] = RTVal(myMesh);
inputs["positions"] = RTVal(myPositions);
inputs["iterations"] = RTVal(myIterations);
Boolean res = relaxOnSurfaceNode.executeWithArgs(inputs, outputs, errors);
report("relaxOnSurface ERROR : " + errors);
relaxedPoints = outputs.get("result", RTVal(relaxedPoints));
hope this help.
Thanks! This helped a lot
©Copyright 2017 Fabric Software Inc. All rights reserved. | Privacy