 |
 |
Ideas For Creative Movie Props? (Page 9)
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
Python, JavaScript, and AppleScript all seem about the same level of “not difficult”.
|
|
|
|
|
|
 |
|
 |
Administrator 
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
Yeah, Java Script is easier than straight Java, which likes to play with stuff on a hardware level (like C).
|
Glenn -----OTR/L, MOT, Tx
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
After Effects uses JavaScript. Logic uses nothing.
My home automation software used to use AppleScript, but since Apple hates AppleScript for some reason, they ditched it for Python. I’m thankful, because if it didn’t force me to learn some basics, I’d have had no idea I could use it to brute force Logic with a string of keyboard commands
It’s the opposite of elegant, but gets the job done if I feed it right (no error checking). The worst thing about it is how long it takes to finish. I’ve put in ridiculous sleep times in case it hangs a bit opening or saving a file.
I started to learn Java at some point, and then decided I’d be happier “going native” with obj-c. Yeah, umm… kinda sorta stalled out. 
|
|
|
|
|
|
 |
|
 |
Administrator 
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
"Elegant" in programming is not always a good thing. Elegant code is often less efficient than "brute force" where that's appropriate.
I had a college professor demonstrate an "elegant" way to walk through a linked list in C. He used 4 lines of code to do what should have been done in a single line - the textbook example of how smooth and terse C can be - and introduced many places to make a mistake. Which he took advantage of at least once. Yes, he explicitly showed the steps involved, but...
|
Glenn -----OTR/L, MOT, Tx
|
|
|
|
|
 |
|
 |
Moderator 
Join Date: Aug 2001
Location: Nobletucky
Status:
Offline
|
|
Sometimes you need to show students the long way around, so they can better understand the efficacy of the shortcuts. Kind of a “know the rules first, so you can break them right” thing.
|
|
|
|
|
|
 |
|
 |
Administrator 
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
I agree. If he’d done it right, and not made coding errors in his demonstration.
The thing is, he was supposedly teaching “object oriented programming with C++”. He didn’t create a “linked list object” or anything like that. He just put a bunch of overly long, not-well-written code on the board….
|
Glenn -----OTR/L, MOT, Tx
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
The big thing annoying me about it is the pauses I necessary so the script doesn’t get ahead of itself. I originally had it at 2 minutes total for extra safety. Shaved that down to a minute. It should really take 20 seconds or less.
The wildcard is the size of the movie file. The bigger it is, the longer it takes for Logic to open it and extract the audio.
|
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
My script is now mysteriously typing a period where it shouldn’t.
There are worse places it could do that, like in a filepath, but it’s still pretty annoying.
|
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
Aaaaand, I’m a moron.
The formula I’m using in Excel to generate a filename from the logs is adding an extra space. I looked directly at it in a monospaced font and it still didn’t register.
The period? That was MacOS autocorrect “fixing” my two spaces. Kinda surprised that’s turned on in a save dialog.
|
|
|
|
|
|
 |
|
 |
Administrator 
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
Yeah. File names should NEVER be “corrected.”
|
Glenn -----OTR/L, MOT, Tx
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
Especially with a period of all things.
|
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
I just manually tested it to be sure it wasn’t an artifact of the Python module I’m using for keyboard input. In Monterey, in Logic Pro, it does indeed autocorrect two spaces into a period in the save dialog.
|
|
|
|
|
|
 |
|
 |
Moderator 
Join Date: Aug 2001
Location: Nobletucky
Status:
Offline
|
|
Originally Posted by subego
Especially with a period of all things.
At least it didn’t put the period at the start of the filename.
|
|
|
|
|
|
 |
|
 |
Posting Junkie
Join Date: Apr 2007
Location: Iowa, how long can this be? Does it really ruin the left column spacing?
Status:
Online
|
|
Ha - THAT would have been a fun one to figure out.
|
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
I’ve been wanting to show stuff, but don’t want to ruin any surprises.
I figure the cat’s out of the bag on this one though…
Edit: Thanks again to reader for the packing peanut idea which made it possible!
(
Last edited by subego; May 9, 2022 at 06:39 PM.
)
|
|
|
|
|
|
 |
|
 |
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Online
|
|
“No, no. Fire is good.”
|
|
|
|
|
|
 |
 |
|
 |
|
|
|

|
|
 |
Forum Rules
|
 |
 |
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |