Adding (or selecting) a Curve operator gave me the following exception:
Unknown property: "loadControlCurves" in undefined
I replaced MagmaFlowEditor_Functions (I don’t have Krakatoa installed on my laptop, so I’m guessing that’s why this variable is undefined) in Genome_MagmaFlow.ms (line 7276) with GenomeMFEditor_Functions and that seemed to fix it.
Pressing the “Open Curve Editor…” button inside a Curve operator gives me an error as well (event “on MagmaFlowEditor_CurveControlRollout open do” @ line 460 in Genome_MagmaFlowCurveEditor.ms). It contains a bunch of Krakatoa variables so probably same issue as above.
I will try to remove Krakatoa from my install completely and test all this.
We don’t want to edit those names since the plan is to use the SAME source for Krakatoa and Genome, I don’t want to write the editor twice
As for the other error, I fixed it by changing the code to
if MagmaFlowEditor_Functions.isGenome magma then
format "::GenomeMFEditor_Functions.loadControlCurves crv_CurveControl theCI \n" to:txt
else
format "::MagmaFlowEditor_Functions.loadControlCurves crv_CurveControl theCI \n" to:txt
The variable “MagmaFlowEditor_Functions” is local to the editor and is set to the global variable ::MagmaFlowEditor_Functions for the Krakatoa version of the file, and to ::GenomeMFEditor_Functions when it is the Genome version (the hope is this will be the only change to be made to that file)
But this stuff is in global scope due to the execute call, so the correct global struct has to be accessed.