log file ... wonderful but
alan bard newcomer
Posts: 2,160
everytime we open a scene in daz it lists all the things it does and then when we close that scene it sums it all up
So Daz knows how to start a log file because sometime in the begining there was no log file
--
Code
if log line equals = closing scene file>retrieve scene name>rename logfile to scenename.logfile>move to save folder.
Then when I open my next scene daz says OH new scene, I'll create a new log file and use it until log line =closing scene file and I'll run the renaming etc sub routinue
This will supply a logfile that matchs every scene file.
And opening an existing scene file would open the existing log file .. append the new data and then on closing save it again.
Comments
So, are you requesting a Scene-specific log? What is the aim of that?
my current log file has 72,000 lines in it... scrolling gets to be a pita
plus obviously I would guess it get truncatated at some point it time.
---
So having a log file attached to each scene would keep the info on it intact and short.
And would theoretically list all the assets used in the scene file?
Fisrt thing I do when I open daz is open the log file ctrl+A backspace, then save. Makes troubleshooting a lot easier when I need it lol. A cool option daz could consider is iterative logs, create a new log for each session, maybe use time and date appended to differintiate, not sure how difficult that would be to do though.
it should be easy as it creates new entries in the logfile with each scenefile ... and it's all timestamped.
So it's the same code that creates the logfile when the program is first installed ..
at User Close Scene prompt > copy scene name>rename logfile to scenename.txt >close.
The with the next scene there's no logfile so it starts a new one until it's closed an it runs the close scene and rename subroutine.