Save number for RealBox

Hello everyone

I would like to save a number and retrieve it using: RealBox, SetDocumentData and GetDocumentData. But I have several problems:
RealBox returns a number and SetDocumentData not support numbers, only string.
RealBox in default_number not support variables.

Is there a way to do it?


Is this for python and are you trying to make it so you use the same number between runs of your script? If that is the case, look at the ‘sticky’ sample in the EditPythonScript editor.

Thanks, this I has solved the problem.