DzMorphLoader Script help
I'm working on a scirpt to create a morph via script. I came accross this http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/morphloader_dz and the sample of this http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/import_obj_morph_loader_silent/start I wanted to make a morph without saving the obj, and thought the
String | createMorph ( vertexmesh_dz mesh, DzNode node, Boolean onlyErrorsOrWarnings=true, Boolean plainText=true ) |
function would work, but it seems to be calling the file overload of the function
String | createMorph ( DzFileIOSettings settings, DzNode node, Boolean onlyErrorsOrWarnings=true, Boolean plainText=true ) |
as it says it cannot load the file (.) (null) because I didn't pass a filename. I tried to force the overloaded version for DzVertexMeshPtr with oMorphLoader['createMorph(DzVertexMeshPtr, DzNode*, bool, bool)'] but it still seems to want a file, but I want to create a morph from a given vertex mesh.
Am I missunderstanding this overload of the createMorph function?
Thanks.
Comments
I'm working on a scirpt to create a morph via script. I came accross this http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/morphloader_dz and the sample of this http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/import_obj_morph_loader_silent/start I wanted to make a morph without saving the obj, and thought the
function would work, but it seems to be calling the file overload of the function
as it says it cannot load the file (.) (null) because I didn't pass a filename. I tried to force the overloaded version for DzVertexMeshPtr with oMorphLoader['createMorph(DzVertexMeshPtr, DzNode*, bool, bool)'] but it still seems to want a file, but I want to create a morph from a given vertex mesh.
Am I missunderstanding this overload of the createMorph function?
Thanks.
You might want to move your thread over to the DAZ Script Developer Discussion under DAZ Studio Discussion. That's where the script types hang out and where you might get a more meaningful response.
Merged threads - you could have moved the existing thread by editing the first post.
@Richard Thanks, sorry, new at the fourm thing.