• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 20. Synchronizing with Digital Vi... > Adding Comments and a Global Variabl...

Adding Comments and a Global Variable to a Movie Script

In this task, you're going to create a variable that holds the channel number of the digital video. Then you will use this variable to refer to the digital video channel in every script that needs it. You will also add comments to your scripts to make them more understandable to humans.

A comment is an explanation in the script itself, provided to help humans reading the script understand how each part works. Special characters preceding each comment—two hyphens—tell Director to ignore this text as it runs the script; comments provide information to you and whoever else reads your script, not to Director. Comments are not required in any script, but including them is good programming practice and will make your work much easier to follow. You should include comments in all of your handlers as you write them. The comments can be as long as you wish; Director skips over them, so they won't slow down your scripts when they run. You'll see good examples of comments throughout this book.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint