Instant Terra Forum
Instant Terra => Crash and bug reports => Topic started by: Danilo Nishimura on January 03, 2020, 11:24:23 PM
-
Hi there,
It seems I can't define how the Terrain will be exported through the C# api.
The exposed properties are "file_name", "user_defined_range", "min_height" and "max_height".
Is there a way to do it?
-
Hi,
It's currently only possible to set number properties and file name properties, not properties defined by a list, such as the file format property.
We're going to fix that in a future release.
-
We've just added the new "file_format" property.
The valid values are:
- "Bmp"
- "Tga"
- "Png8"
- "Png16"
- "Tiff8"
- "Tiff16"
- "Tiff32"
- "Exr"
- "Raw16"
- "Raw 32"
This feature will be available in Instant Terra 1.8.5 to be released on January 8th.
-
Thanks!
-
Alexis, just noticed on your message the "Raw 32" has a space in the string. Is that correct?
One more thing. Those keys need to be updated on the documentation.
The parameter "File Format" is there, but not the string keys.
https://www.wysilab.com/OnLineDocumentation/Nodes/Nodes_Export_Terrain.html
-
Sorry I did a mistake, the correct value is "Raw32" with no space.
You're right about the documentation. We plan to improve the C# and Python API documentation and put more information about the available parameters and values.