Proper way to load a figure through SDK action
![iyelang99](https://secure.gravatar.com/avatar/28dc1df13043105ca30f825ae8712de2?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2F28dc1df13043105ca30f825ae8712de2_100.png)
Hi! I tried the following code to load a figure through SDK, the core codes are as follows. I generated dll file and DAZ studio loaded it but I got error for reading asset. Not sure why this happens. Thanks! There is a symbol in the filePath not interpreted properly they are in fact back slashes.
//DzMainWindow *mw = dzApp->getInterface();
//if( !mw )
// return;
//mw->goFullScreen();
DzAssetIOMgr *iopm = dzApp->getAssetIOMgr();
const QString filePath = "D:\DAZ3D\Library\Gen2Male\Genesis 2 Base Male.duf";
DzFigure **Figure1;
iopm->doFigureLoad(filePath,Figure1);
Post edited by iyelang99 on
Comments
\ is the escape character - \n is new line for example. If you wanted a literal \ you'd have to escape it with two characters "\\". However, I think you should be using / as the path separator in DS anyway.