[SOLVED] dzApp->getImageMgr()->findImage(..) not working correct

LpProjectLpProject Posts: 41

Question to Daz Studio Developers.

In my project when I manually(in ui and file browser) load some *.hdr(or*.exr) images it loaded correctlly,

But when I load same images( *.hdr or*.exr) from code using dzApp->getImageMgr()->findImage(..) function they are not loaded.

Why???

I check and *.jpg loaded. And all files exist :).

Post edited by LpProject on

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,776

    If you want to load an image shouldn't you be using (and error trapping) loadImage() rather than findImage()? I thought the latter was for getting a pointer to loaded images.

  • LpProjectLpProject Posts: 41
    edited March 2016

    From docs findImage(..) get loaded image DzTexture instance.

    And getImage(..) same function, but load image if it not loaded yet

    Now. I use getImage(...)

    Post edited by LpProject on
  • LpProjectLpProject Posts: 41

    If you want to load an image shouldn't you be using (and error trapping) loadImage() rather than findImage()? I thought the latter was for getting a pointer to loaded images.

    LoadImage only for using in scripts, not for plugins(as it is written in docs). I wrote plugin.

    Thanks, your answer prompted me to return again  to docs. :)

Sign In or Register to comment.