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

Sign In or Register to comment.