I'm wondering how you change the temperature curve via Lua. I've got the LevelInfo but I can't seem to change the curve. I've tried a string, array (/object) and I've tried using ffi but I just get the same error saying "table expected, got nil" in luaBinding (line 149). Any help would be appreciated
Do you mean this curve? If so, it can be done as follows: Code: scenetree.findObject("theLevelInfo"):setTemperatureCurveC({{5, 20}, {6,20}}) core_environment:reset() Result:
Perfect, thanks. Question, where did you find "setTemperatureCurveC"? I didn't see it in any of the scripts, maybe I'm just blind ♂️
I just wrote "dump(scenetree.findObject("theLevelInfo"))" And saw this method at the bottom - Code: { assignFieldsFromObject = "<function 16>", clone = "<function 17>", decRefCount = "<function 18>", delete = "<function 19>", deleteObject = "<function 20>", deletePersistentId = "<function 21>", dump = "<function 22>", dumpGroupHierarchy = "<function 23>", generatePersistentId = "<function 24>", getClassName = "<function 1>", getDeclarationLine = "<function 25>", getDynDataFieldbyName = "<function 9>", getDynamicFields = "<function 26>", getField = "<function 27>", getFieldInfo = "<function 4>", getFieldList = "<function 5>", getFields = "<function 6>", getFieldsForEditor = "<function 7>", getFileName = "<function 28>", getGroup = "<function 29>", getID = "<function 30>", getId = "<function 31>", getInternalName = "<function 32>", getName = "<function 33>", getOrCreatePersistentID = "<function 34>", getStaticDataFieldbyIndex = "<function 35>", getStaticDataFieldbyName = "<function 8>", getTemperatureCurveC = "<function 72>", incRefCount = "<function 36>", inheritParentFields = "<function 37>", inspectUpdate = "<function 38>", isChildOfGroup = "<function 39>", isEditorDirty = "<function 40>", isHidden = "<function 41>", isLocked = "<function 42>", isNameChangeAllowed = "<function 43>", isSelected = "<function 44>", isSubClassOf = "<function 45>", onEditorDisable = "<function 46>", onEditorEnable = "<function 47>", postApply = "<function 48>", preApply = "<function 49>", registerObject = "<function 50>", save = "<function 51>", serialize = "<function 52>", serializeForEditor = "<function 53>", serializeToDirectories = "<function 54>", serializeToNameDictFile = "<function 55>", setCanSave = "<function 56>", setDeclarationLine = "<function 57>", setDynDataFieldbyName = "<function 11>", setEditorDirty = "<function 58>", setEditorOnly = "<function 59>", setField = "<function 60>", setFileName = "<function 61>", setHidden = "<function 62>", setInternalName = "<function 63>", setIsSelected = "<function 64>", setLocked = "<function 65>", setName = "<function 66>", setNameChangeAllowed = "<function 67>", setSelected = "<function 68>", setStaticDataFieldbyIndex = "<function 69>", setStaticDataFieldbyName = "<function 10>", unregisterObject = "<function 70>", setTemperatureCurveC = "<function 73>" }