Forum: Poser Python Scripting


Subject: Lipsync script: 1st approximation

ockham opened this issue on Mar 24, 2001 ยท 11 posts


jcarp posted Mon, 26 March 2001 at 12:08 PM

Anthony Appleyard had the answer to indents in another thread. Use the pre pre HTML tags around your code in the post. (You'll have to imagine the angle brackets in that last sentence because the post will eat anything in angle brackets even wrapped in pre pre. I don't know what's up with that, but I quess it means you'll have to avoid angle bracket pairs in your code. Still it's an improvement.) For instance (quoting but formatting from above using tags),

    if SoundLen < 1024:
       exit
    else:
                #convert buf to array of float
       floatbuf = Numeric.array(buf,"Float")

QED. Cheers for Anthony!