Forum: Poser Technical


Subject: using readScript like an include (a different take on it)

_dodger opened this issue on Jun 26, 2003 ยท 26 posts


Migal posted Fri, 27 June 2003 at 2:57 AM

When I looked at the way V3 was done, I noticed V3's empty dial slots are utterly identical. When I went to do something similar to V3, I replaced all the code from those empty slots with the same readScript line, calling a single script, and reduced my cr2 from 8.5 to 3 meg. It reminds me of the old dBase do/Procedure command. It's excellent for killing repetitive code. When I call my REM poses, they in turn call the exact same script used by the cr2, which puts the dials back into the empty state. I've nested up to 3 readScripts on JCM injections, but haven't had a reason to attempt further nesting and possibly find a limit. I haven't tried it yet, but I was wondering if anyone had used it to call a crosstalk shield. Hey dodger! Thanks for contributing the exe hack a while back. I've found it very useful. :-)