Notifications
Clear all

[Closed] Storage Tone Mapping State in MaxFile

This is probably going to be one of the questions that will require the most advanced knowledge, because I have no idea if it’s possible to do what I want and I don’t even know where to start.

What I want is to be able to save multiple Tone Mapping states within a max. In Scene States or States Sets style.

Corona Renderer is the main target for this function, but I intend to do this for Vray in the future as well.

This is already possible to do, but generating another file (*.conf). But the idea is not to have several files disassociated from the .max file, but inside it. Or else it is associated within Asset Tracking as a file to be “loaded”. But the idea is that this information is inside the .max file somehow.

Corona Renderer already gives access to the codes to capture this information from Tone Mapping through this link: https://wiki.corona-renderer.com/maxscript . In other words, the question is more in relation to how to store this, for when I send the max file, for example, this information goes together and does not work only on my computer or when I load it manually.

If not, I’ll drop the idea. But I will be very grateful to anyone who gives me a direction on how I can do this.

3 Replies
2 Replies
(@nathanwk)
Joined: 10 months ago

Posts: 0

Sorry a thousand times for my beginner’s ignorance, I’m starting on this part of storage inside the max.

In App Data, do I store it in a scene object?

What is the simplest method that is “invisible” but within the max?

In this “File Data Stream” is simple to configure? Do you have an example script?

I don’t need to read this from outside the max, because what I have are variables that I’m going to collect with “getProperty” and save with “setProperty”, in the post link the Corona Renderer already gives this method, what I need is a form to store these Tone Mapping variables within a group when clicking a button and restore this data when clicking another button.

(@serejah)
Joined: 10 months ago

Posts: 0

if your values can be easily converted to/from string then I’d stick with get/set app data on scene rootNode

app data is least visible. No way to access the data from the GUI. Is is stored on any maxobject

I guess you can download the script from the link and see how it works. But perhaps you don’t need it since you ain’t gonna access values outside max or from the different opened max scene.
Better have a look at fileProperties.addProperty in the reference

Depending on the data type you can store it in max scene multiple ways.
Right on the scene node using SetAppData/GetAppData, in node’s User Poperties, in Custom Attributes.
Another way to go is to use Custom Scene File Data Stream that was added not so long ago.
https://cganimator.com/csmergeby-powered-by-3dsmax-2019-custom-scene-file-data-stream/