How to get the current users name?

DraagonStormDraagonStorm Posts: 748
edited December 1969 in Daz Script Developer Discussion

I want my script to create a subfolder where the name of the folder (by default) is the DAZ Studio users' name. But can't seem to find where I can get the users' name.

Help anyone?

Comments

  • rbtwhizrbtwhiz Posts: 2,250
    edited December 1969

    var oAuthor = App.getCurrentAuthor();
    print( oAuthor.name );

    -Rob

  • DraagonStormDraagonStorm Posts: 748
    edited December 1969

    rbtwhiz said:
    var oAuthor = App.getCurrentAuthor();
    print( oAuthor.name );

    -Rob

    Thank you... Rob, I was soooooo close :)

Sign In or Register to comment.