Search the Community
Showing results for tags 'file'.
-
Hey there, I am somewhat new to Unigine and I am trying to get a animated character into the editor. As far as I know it should be possible to import an FBX of an animated character and it should work. However when I try to import it, it gives the the error: AutodeskImport::load(): can't initialize ''File path'' file Unexpected file type. I am unsure how to fix this. Also if there are any further tips of getting a animated character into the engine, it is appreciated. Kind regards Frans
-
Hi, In a unigine script, I would like to save a Node (recursively) in a .node file. I've searched in the documentation in the functions of engine.world but it seems that the function saveNode() exists only for C++ and C#. https://developer.unigine.com/en/docs/2.3/api/library/engine/class.world?rlang=usc I've tested anyway the function engine.world.saveNode(file, n) in my unigine script and I was happy (and also surprised) that it works. I need to know : is it an omission in the documentation ? or is it a function that will disapppear later ? Regards
-
[SOLVED] Terrain node file doesn't contain reference to filepath
philip.atha posted a topic in UnigineScript
I'm automating the process of creating tiled terrains through code and I have an unusual problem when saving the node files. <?xml version="1.0" encoding="utf-8"?> <nodes version="1.19"> <node type="ObjectTerrain" id="575191784" name="Terrain_x7_y11"> <terrain/> <lod_distance>20</lod_distance> <lod_progression>2</lod_progression> <flatness_threshold>3</flatness_threshold> <visible_distance>8000</visible_distance> Basically my terrain tag is completely empty. I'm not sure that my script has any knowledge of the terrain filepath being saved at all. Should I: 1. Generate the terrain. 2. Save it to a node file. 3. Load the terrain node file ?? Or is there some other/better method for this -
there is a move file / rename file or delete file but missing copy file function. So I can easily copy one file from one dir to another dir. Also if there is a simliar function engine.filesystem.getFileName for file system will be great. Because i want to use it in usc script. right now it's very hard to locate the assets from the relative path as some assets are inside a directory which not show in the path. example: valley demo assets are relative to valley folder but the vally actually inside demos folder. I need this 2 features for an assets packing tool