stuck with cameras

edited December 1969 in Daz SDK Developer Discussion

I'm just on playing with a C++ exporter converted from a script, everything is going quite well but I'm stuck on the c++ version of

var oViewportMgr = MainWindow.getViewportMgr();

What would the right C++ code be? I thought MainWindow would be DzMainWindow but obviously its not lol

Which QT version is the current SDK using?

thx

Comments

  • mjc1016mjc1016 Posts: 15,001
    edited December 1969

    Not sure about the SDK, but Studio itself is using 4.8.6...

  • edited March 2015

    I prefer QT Creator over VS2010, I was just going to try to build something in QT :)

    Wow I've been here since 2006? I could of sworn I posted stuff in the past!

    Post edited by nigeuk62_1ae701f276 on
  • rbtwhizrbtwhiz Posts: 1,826
    edited December 1969

    if( DzMainWindow *mw = dzApp->getInterface() )
    {
        DzViewportMgr *vpMgr = mw->getViewportMgr();
        //....
    }

    -Rob

    (excuse typos... from phone while standing on train)

  • mjc1016mjc1016 Posts: 15,001
    edited December 1969

    arfur9 said:
    I prefer QT Creator over VS2010, I was just going to try to build something in QT :)

    Wow I've been here since 2006? I could of sworn I posted stuff in the past!

    A couple years back they switched forum software...that reset all post counts to zero.

  • edited December 1969

    Thank you Rob it was a great help :)
    I get typos in a static chair lol


    @ mjc1016; yeah I was having a look around and realized that, it was mainly the Carrara forums I hung around in

  • edited December 1969

    is there any C++ examples on getting the world position values for cameras or lights? location rotation
    Maybe I should of started with scripts first, but C++ is better for the "end game" ;)

  • rbtwhizrbtwhiz Posts: 1,826
    edited December 1969

    DzLight inherits DzCamera. DzCamera inherits DzNode. See DzNode::getWSPos() and DzNode::getWSRot().

    -Rob

Sign In or Register to comment.