Author Topic: Export Node C# API  (Read 2965 times)

Danilo Nishimura

  • Sr. Member
  • ****
  • Posts: 66
  • Senior Technical Artist at Massive Entertainment
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?

Alexis Vaisse

  • Administrator
  • *****
  • Posts: 189
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.

Alexis Vaisse

  • Administrator
  • *****
  • Posts: 189
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.

Danilo Nishimura

  • Sr. Member
  • ****
  • Posts: 66
  • Senior Technical Artist at Massive Entertainment

Danilo Nishimura

  • Sr. Member
  • ****
  • Posts: 66
  • Senior Technical Artist at Massive Entertainment
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

Alexis Vaisse

  • Administrator
  • *****
  • Posts: 189
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.