Follow us on Facebook Follow us on Twitter Flickr Watch us on YouTube
Register
Results 1 to 10 of 10

Thread: SaveScene()

  1. #1
    Super Member nickdigital's Avatar
    Join Date
    Nov 2006
    Location
    Burbank, California USA
    Posts
    4,576

    SaveScene()

    Is there a way to do a SaveScene() and automatically pass it a "yes"? Even the normal Layout "Save Scene" gives you that user prompt despite changing the Alert Level.

    It would be nice to be able to save without that prompt...other programs do that.
    My opinions and comments do not represent those of my employer.
    Profile piece
    2010 Reel
    'The X's' Reel

  2. #2
    automator of tasks xchrisx's Avatar
    Join Date
    Jul 2003
    Location
    Nevada
    Posts
    591
    Blog Entries
    6
    AutoConfirm is your friend, it will automatically override dialogs' Ok buttons. Just be careful to always set it to 0 afterward you are done or you wont be prompted in the future.

    AutoConfirm(1);
    SaveScene();
    AutoConfirm(0);


    -chris
    My Lscript Collection | LinkedIn
    3D Generalist IGT

  3. #3
    Super Member nickdigital's Avatar
    Join Date
    Nov 2006
    Location
    Burbank, California USA
    Posts
    4,576
    Thank you!
    My opinions and comments do not represent those of my employer.
    Profile piece
    2010 Reel
    'The X's' Reel

  4. #4
    Are you sure that's what you want?
    If all you need is the current state of the scene on disk for parsing, it might be better to not save over the user's file, but rather use SaveSceneCopy(tempScenePath). That will just dump the scene without overwriting anything, and it will also not reset the location of the current scene loaded.

  5. #5
    Registered User
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    466
    Sorry for high jacking your thread.

    I wanted to write an LScript related to saving a scene and wanted to ask if there is a LScript Doc to LW where I can see a list of commands with description.

    Greetz
    Kevin "K-Dawg" Reeves

  6. #6
    Super Member nickdigital's Avatar
    Join Date
    Nov 2006
    Location
    Burbank, California USA
    Posts
    4,576
    I reference Dodgy's site and the pdf documentation. If that fails then I scream for help on the forum.

    http://mikegreen.name/Lscript/Lscript%20Index.html
    My opinions and comments do not represent those of my employer.
    Profile piece
    2010 Reel
    'The X's' Reel

  7. #7
    Registered User
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    466
    Thanks for the Link. Really helpful. Which PDF do you mean?

    If that fails then I scream for help on the forum.
    I hear ya

    EDIT:

    Is there a function to save a scene and/or object incrementally in LScript?
    Last edited by K-Dawg; 07-12-2012 at 12:56 PM.
    Kevin "K-Dawg" Reeves

  8. #8
    Super Member nickdigital's Avatar
    Join Date
    Nov 2006
    Location
    Burbank, California USA
    Posts
    4,576
    Quote Originally Posted by K-Dawg View Post
    Thanks for the Link. Really helpful. Which PDF do you mean?
    There should be a link for lsript docs in your Registration page. At least there is in mine.

    Or use these:
    ftp://ftp.newtek.com/products/LightW...tUserGuide.pdf
    ftp://ftp.newtek.com/products/LightW...tReference.pdf
    My opinions and comments do not represent those of my employer.
    Profile piece
    2010 Reel
    'The X's' Reel

  9. #9
    Super Member nickdigital's Avatar
    Join Date
    Nov 2006
    Location
    Burbank, California USA
    Posts
    4,576
    Quote Originally Posted by K-Dawg View Post
    Is there a function to save a scene and/or object incrementally in LScript?
    Not sure off the top of my head...still a lscript noob. The hack would be to get the name of the file, get the version number and then increment that. Then save out the new filename.
    My opinions and comments do not represent those of my employer.
    Profile piece
    2010 Reel
    'The X's' Reel

  10. #10
    Registered User
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    466
    Thanks for the links. I only have a user refrence guide in my Download section. Oddly, since I have LW 9+ I have all Version of LW in my Downloads, but my LW 5.6 is not listed anymore. I know it's a while back, but I was always wondering why.

    Anyhow, thanks for the links. I'll have to look into those.
    Kevin "K-Dawg" Reeves

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:59 AM.
Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Copyright 2000-2012, NewTek
vBulletin Skin By: PurevB.com