How to play your video tutorials within Daz Studio
![Tugpsx](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/userpics/856/nJ6H8W5VWG3DA.jpg)
The question has come up time and again about how to play a tutorial or other product purchased through the Daz Store from within Daz studio.
How often have you bought a tutorial and cant find a product or content launcher and therefor forgot you even have the content?
Using the provided script you can launch your tutorials and other videos right from within the Daz Studio environment.
// DAZ Studio version 4.8.0.18 filetype DAZ Script// Create a file info object, using the path of the current scriptvar oFileInfo = new DzFileInfo( getScriptFileName() );// Prompt the operating system to do whatever it does with the given file type; same path/name as scriptApp.showURL( String("file:///%1/%2.mp4").arg( oFileInfo.path() ).arg( oFileInfo.baseName() ) );
dsa![](/forums/plugins/FileUpload/images/file.png)
![](/forums/plugins/FileUpload/images/file.png)
dsa
![](/forums/plugins/FileUpload/images/file.png)
VideoScriptGen.dsa
375B
![](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/thumbnails/FileUpload/34/77c8d6178fe4b541891eefc6aecfa5.png)
![](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/thumbnails/FileUpload/34/77c8d6178fe4b541891eefc6aecfa5.png)
HowtovideoinStudio.PNG
922 x 662 - 134K
Post edited by Tugpsx on
Comments
That wil fail if the thing was isntalled through Connect (fairly unlikely, unless it already has a player script too). This is more robust if the target is in a mapped directory http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/general_ui/display_document_dynamic/start
Thanks Richard. We will have to modify your provided script to launch based on the scripts name. I don't think most users are going to venture into finding the relative path and the file name, hence why the previous script i presented only looked for the scripts name and sent it to the default OS application.
The script you provided does have a few good error checking so modifying it to use the scripts name shold work for most users.
It would be relatively easy for them to change the name of the launch script to the name of the file they would like to play/launch as in th previous version.
Thanks for all your help.
Don't forget to include the encessary CC By Attribution elements if you are distributing the results.
Thanks Richard, based on the script you provided, users can add the file names as shown below
.