Proper way to load a figure through SDK action

iyelang99iyelang99 Posts: 1

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

  • Richard HaseltineRichard Haseltine Posts: 101,551
    edited December 1969

    \ 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.

Sign In or Register to comment.