List Info

Thread: external scripts, projectors, & "magical a-life avatars"




external scripts, projectors, & "magical a-life avatars"
user name
2006-11-30 19:00:09
Has anybody been using this approach?
constantly working in an external editor, and importing the
files on 
preparemovie?

I've always thought it wouldn't be worth it, but am thinking
that might 
not be true.
My biggest worry is that I will accidentally edit in the
script window 
as well. and that
those changes will get overwritten. Thinking about it a bit
more, I 
guess an elegant system
could be setup where on script-import, we also store the
scripttext in 
the member's comments
field. Before re-importing a script, check it against its
comments 
field. If it's not identical,
something has changed. A diff can be produced, and be
applied to the 
external file.

Stuff like winmerge actually works pretty well. We could try
to 
automerge the diff back to the (maybe also modified)
external script. If there are no conflicts, just do it. If
there are 
conflicts, throw up a dialogbox with the option
to launch winmerge, and to manually fix the situation..

as long as you have an external editor which is smart about
detecting 
that the file that it is working on has changed,
I can imagine a pretty decent workflow.

Is anybody actually using something like this? I'd love to
hear some 
real life stories.

Bye, Lucas



James Newton wrote:

>Alec Vance wrote:
>  
>
>>Looking through the archives of this list and other
resources on
>>the web, I've been discouraged to find that you
can't have an
>>external linked script (.ls) file that can be
changed-on-the-fly
>>without opening Director and updating it.
>>    
>>
>
>Hi Alec,
>
>Be discouraged no longer.  Call this handler or
prepareMovie():
>
>on UpdateScripts()
---------------------------------------------------
>  -- ACTION: Checks a given folder for *.ls files whose
names match
>  --         existing script members, and replaces the
scriptText of
>  --         those members with the contents of the *.ls
files.
> 
------------------------------------------------------------
--------
>  
>  vFolder = the moviePath -- or a different folder
>  vFileIO = xtra("fileio").new() -- assumed to
be available
>  
>  the itemDelimiter = "."
>  n = 0
>  repeat while TRUE
>    n = n + 1
>    vFileName = getNthFileNameInFolder(vFolder, n)
>    
>    if vFileName = "" then
>      -- There are no more files
>      exit repeat
>    end if
>    
>    if the last item of vFileName = "ls" then
>      -- We've found an *.ls file.  Let's see if its
name matches
>      -- a script in this movie
>      vFilePath = vFolder&vFileName
>      
>      delete the last item of vFileName
>      vMember = member(vFileName)
>      
>      if ilk(vMember) = #member then
>        if vMember.type = #script then
>          -- Read in the new scriptText of this member
>          vFileIO.openFile(vFilePath, 1) -- Read only
>          vScriptText = vFileIO.readFile()
>          
>          if not vFileIO.status() then
>            -- The following line will cause a script
error if the
>            -- contents of the file cannot be compiled.
>            vMember.scriptText = vScriptText
>          end if
>          
>          vFileIO.closeFile()
>        end if
>      end if
>    end if
>  end repeat
>end UpdateScripts
>
>Tested for you in a projector.  Be sure to include the
fileio xtra.
>
>Cheers,
>
>James
>
>_______________________________________________
>dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
>http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
>
>  
>

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
external scripts, projectors, & "magical a-life avatars"
user name
2006-11-30 20:13:49
I have a system:
http://ww
w.enedahl.com/index.asp?page=olesm

It also has a preprocessor.
/Christoffer
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
external scripts, projectors, & "magical a-life avatars"
user name
2006-12-01 07:32:36
Am 30.11.2006 um 20:00 schrieb Lucas Meijer:

> Is anybody actually using something like this? I'd love
to hear  
> some real life stories.

while I use linked scripts a lot I almost never do so to
edit them  
outside director.
I simply miss the compiler, which tells me, that (and if I
am lucky  
WHERE  I
committed a typo.
writing the scripts in bbedit and switching back and forth
to  
director to check the syntax and try what I just done by
starting the  
movie is not practicable for me.

I use bbedit to compare scripts though and to search through
the  
folder of linked library scripts.
For me linked scripts are a great way to share scripts
between movies  
and I wouldn't want to miss them, as they allow me to easily
keep  
track of changes and incremental back up differences and all
the  
stuff you can do with plain text files 

---------------------------

   |||
ażex



_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
external scripts workflow, was: something else about external scripts.
user name
2006-12-01 20:52:43
Hey.

I can't seem to let go of the idea of having all scripts be
external, 
editable both inside and outside of director, coupled with
some smart
code to propagate changes from inside director to outside,
and vice 
versa. (mind you I'm not actually talking about "linked
scripts", just 
fileIO'ing a textfile, and setting the scripttext.

My biggest drive for this is a way to use some sort of
source control, 
even if only for the scripts.

I think it can all be made to work pretty elegantly, and
I've been 
looking at a few external editors that might be good
candidates to be using.
I'm wondering if people have any opinions on any of these:

- Eclipse
- Scite
- Visual Studio
- UltraEdit

I'd like to pick one that can be extended to have support
for 
highlighting / indenting and code folding of lingo code.
I'm afraid compilation is impossible (I tried making a
"compiler" 
projector that takes as input a scripttext, and should
return
what if any compiler error gets thrown, but unfortunattely
the alerthook 
only supplies the description of the problem, not the
linenumber :( )

Am I missing a texteditor that maybe already has some lingo
support?

Bye, Lucas

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
Microsoft announces WPF/E
user name
2006-12-05 16:20:40
At 3:42 PM -0800 12/4/06, Ben Waggoner wrote:
>We just announced "WPF/E" - Windows Media 
>Foundation/Everywhere. It's a cross-platform 
>(Mac and Windows), cross-browser (IE, Firefox, 
>Safari) plugin for doing rich media delivery. 
>And it uses WMV as its video format.
>
>Feel free to mull the implications for a momentŠ
>
>The CTP (Community Technology Preview) builds 
>are available for both Mac and Windows, today.
>
><http://www.microsoft.com/wpfe>http://www.micros
oft.com/wpfe
>
...
Yes, that's THE Ben Waggoner. Famous (well sort 
of famous) for his skills in video compression. 
Now working for Microsoft. They've put together a 
terrific team for this project. I actually have a 
little hope. 

And please digg my posting:
<http://digg.com/tech_news/Microsoft_take
s_aim_at_QuickTime_and_Flash>
-- 
. . . . . . . . . . . . . . . . . . . . . . . .
Lon Koenig Consulting          lonmediagods.com
(612) 965-6305                 http://www.schnoggo.com

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )