Instant Terra Forum

Instant Terra => Crash and bug reports => Topic started by: Danilo Nishimura on January 03, 2020, 11:24:23 PM

Title: Export Node C# API
Post 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?
Title: Re: Export Node C# API
Post by: Alexis Vaisse on January 06, 2020, 05:14:53 PM
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.
Title: Re: Export Node C# API
Post by: Alexis Vaisse on January 07, 2020, 11:05:55 AM
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.
Title: Re: Export Node C# API
Post by: Danilo Nishimura on January 07, 2020, 06:24:45 PM
Thanks!
Title: Re: Export Node C# API
Post by: Danilo Nishimura on January 08, 2020, 11:33:55 PM
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
Title: Re: Export Node C# API
Post by: Alexis Vaisse on January 09, 2020, 08:23:06 AM
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.