v0.1.3.46808 - max 2012 - x86 - Curve op

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.

Martijn

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.

Martijn

Very helpful!

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 :wink:

Does it help if you replace line 475 with

try(FranticParticleRenderMXS.updateIconColors())catch()

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.

See if this helps.

Removed Krakatoa from the plugin.in and found the other problems, working on it.

See if this fixes the issues…
Genome_MagmaFlowCurveEditor_20120327.zip (3.82 KB)

Yup, works fine now!

While we’re on the subject, is there any way to discard changes made in the curve editor?