Forum: Poser Python Scripting


Subject: How can I introduce "illogical" steps in a Python script?

numanoid opened this issue on Oct 10, 2003 ยท 7 posts


numanoid posted Fri, 10 October 2003 at 6:37 PM

OK, I have written a fantastic new script for Michael, but I need some help to convert the script for Vickie.

My problem is this. Python, like most programming languages is a logical progression of steps, and I need to find a way to introduce illogical steps into the script.

Let me explain what the script does and why I need to introduce illogical steps.

I have written a script that lets Michael choose what clothes to wear, depending on the scene in which I place him. For instance, if I place Michael on the bridge of a star ship, he will automatically be imported with a complete sci-fi outfit, helmet and weapons and accessories from my clothing and props library. If I place Michael in water, he will appear in the scene in a wet suit with flippers and a diving mask. The script chooses the most appropriate clothing and accessories according to certain parameters such as the scene file name, the amount of light, the names of props in the scene and other factors too numerous to explain here.

The problem is that when I apply this script to Vickie it stays logical. A real woman placed on the bridge of a space ship would be imported wearing high-heeled boots, and not magnetic soled shoes. A real woman placed in water would appear dressed in a bikini with sunglasses on, not in a wet suit. And looking at the artwork in the galleries it seems like a real woman placed in a medieval combat situation will be imported barefoot wearing a chain mail bikini and a veil, as opposed to combat armour and fur boots.

So I need to find some way of introducing illogical steps into the script to artificially copy the thought processes of a real woman. If anybody has any ideas let me know. If anyone wants to have a look at the script just leave a message and I will e-mail it to you.

Please note that no poser characters were harmed during the writing of this script.