Tue, Nov 19, 9:27 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 18 10:25 pm)



Subject: Mene, mene, tekel upharsin


ockham ( ) posted Fri, 26 March 2004 at 6:48 PM · edited Tue, 19 November 2024 at 9:26 AM

Attached Link: http://ockhamsbungalow.com/PPP/writer1.zip

I've been fiddling with this for quite some time. Finally today I had nothing more interesting to do, so finished it...... Basically, it draws a line in animated form. You move the "Nib" to make strokes, letters, whatever. Activate the script, and it forms a line on the paper by making a series of copies of the Nib. I think the images will explain it better. The script is fairly fussy at the moment, but it's a highly specialized task, so maybe fussy is OK.

My python page
My ShareCG freebies


ockham ( ) posted Fri, 26 March 2004 at 6:49 PM

file_103767.jpg

Here's a rather dumb wiggle. The nib is attached to the point of the pencil.

My python page
My ShareCG freebies


ockham ( ) posted Fri, 26 March 2004 at 6:50 PM

file_103768.jpg

And here's what the animation looks like after applying the Writer script.

My python page
My ShareCG freebies


igohigh ( ) posted Fri, 26 March 2004 at 7:07 PM

?? You mean it actually 'draws' in Poser, or do the actuall lines come from a texture or postwork?


ockham ( ) posted Fri, 26 March 2004 at 7:10 PM

It actually draws. It leaves little copies of the "lead" embedded in the paper. The "after" GIF is a little misleading because it keeps looping. The trace appears just where the pencil hits the paper, and then it stays there.

My python page
My ShareCG freebies


diolma ( ) posted Fri, 26 March 2004 at 7:13 PM

LOL Ockham - you've done it again!! Now how about a "razor" that gets rid of unwanted hairs? (sorry - just a joke..) Cheers, Diolma



igohigh ( ) posted Fri, 26 March 2004 at 7:15 PM

Cool! You guys are realy amazing with the Python scripts!!


xoconostle ( ) posted Fri, 26 March 2004 at 10:20 PM

I recently bought a good book on Python scripting without realizing that it assumes the reader already know quite a bit of Perl, which I don't. I wonder if anyone can recommend a book that would be appropriate for a beginner with minimal programming skills. (Simple Visual Basic and HTML, if that counts.) ...Or does one actually have to learn Perl first? Thanks for any advice. ockham, your work is really amazing!


ockham ( ) posted Fri, 26 March 2004 at 10:37 PM

A pretty good book is "Python and Tkinter Programming" by John Grayson. You're better off starting from scratch, I think; I had a hell of a hard time unlearning long-held C ideas. If you have the feel of Basic, you'll catch Python nicely.

My python page
My ShareCG freebies


nruddock ( ) posted Fri, 26 March 2004 at 11:37 PM

O'Reilly ( www.oreilly.com ) have "Learning Python". There is also the "Cookbook" and "in a Nutshell". They have TOCs and sample chapters for each book so you can get a feel for which ones might be useful.


xoconostle ( ) posted Sat, 27 March 2004 at 2:02 AM

Thanks very much for the recommendations, I've written them all down. Actually I have the O'Reilly book, it looks excellent, but that's the one I referred to earlier, that suggests you know some Pearl before diving in. Maybe I should just ignore that. :-) Thanks again, I appreciate your advice.


hauksdottir ( ) posted Sat, 27 March 2004 at 2:56 AM

It actually draws? A couple years ago, I gave some friends the zen kit for Japanese brush writing. Dip brush in water, practice the calligraphy on the board which went black as ink, and then the letters dry and vanish. It had much this same feel. :) Thanks! Carolly


TrekkieGrrrl ( ) posted Sat, 27 March 2004 at 6:21 AM

O.o Wooow! Just when I though I'd seen everything!! This is STUNNING!!

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You just can't put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
  Using Poser since 2002. Currently at Version 11.1 - Win 10.



TrekkieGrrrl ( ) posted Sat, 27 March 2004 at 6:26 AM

And... and.. with the script bushi made... you could make the writing animation automatic.. perhaps.. with a character holding the pencil and all

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You just can't put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
  Using Poser since 2002. Currently at Version 11.1 - Win 10.



hauksdottir ( ) posted Sat, 27 March 2004 at 7:57 AM

Oh, no! Not the hand drawing the hand drawing the hand?!? Arrrrrrgh! :sound of feet rapidly running:


ockham ( ) posted Sat, 27 March 2004 at 11:49 AM

Adjusting the height of the trace: The Writer script always puts its dots at a fixed Ytran with respect to the item named Paper. I could have inserted a height-adjust slider, but that would require many tries to get the result right. (The adjustment would be "blind" at that stage.) Best way is the good old Carrier trick. Set up your actual paper surface as a child of a simple Box prop, and name the box "paper". Then the Writer script will parent its dots to the platform at its standard height, and you can slide the real surface up or down until the trace looks right. This will be especially important if your real surface has some thickness.

My python page
My ShareCG freebies


FishNose ( ) posted Sat, 27 March 2004 at 5:21 PM

Wow. Just wow. :] Fish


numanoid ( ) posted Sat, 27 March 2004 at 7:18 PM

What will you come up with next? Just when I start running out of ideas you come from the left-field and through a new ball into play. Very interesting idea. Thanks.


skee ( ) posted Mon, 29 March 2004 at 1:19 PM

I find this very interesting and I am trying to get it to work. I have followed the steps and I still can not get anything to show on the "paper". I know I must be doing something wrong. Any help would be great. Thanks skee

NOTE: No trees were killed in the sending of this message, but a large
number of electrons were terribly inconvenienced.


ockham ( ) posted Mon, 29 March 2004 at 1:39 PM

First thought: Scaling may be a problem, especially if you've parented the 'Nib' to a pen or brush or something. Look at the three (x,y,z) scale figures after parenting. If they show like 0 or 1% on the parameter dial, try cranking them up a little.

My python page
My ShareCG freebies


skee ( ) posted Mon, 29 March 2004 at 1:59 PM

Thanks ,I will try this. I did scale the paper(one sided square) and I did not parent the nib to anything. If I drop the paper to the floor and also the nib, will this not put everything on the same plane? The paper was rotated on the X to 90 degrees so that it was flat on the floor. hope this was right. skee

NOTE: No trees were killed in the sending of this message, but a large
number of electrons were terribly inconvenienced.


ockham ( ) posted Mon, 29 March 2004 at 2:07 PM

Another possibility is that the nib might not have been close enough to the paper. The script tries to make lines only where the pen is touching; there's only a little room for error (I think 0.001 poser units). You might try setting a Min limit on the nib's Ytran, so that it can't go below the paper.

My python page
My ShareCG freebies


skee ( ) posted Mon, 29 March 2004 at 2:31 PM

I will have to try to figure this out at a later time. I have a dental appointment now. I hope that I can contact you later about this. Thanks for your help so far. I will type at you later. skee

NOTE: No trees were killed in the sending of this message, but a large
number of electrons were terribly inconvenienced.


skee ( ) posted Mon, 29 March 2004 at 4:47 PM

ockham, sorry to have been gone so long. I have tried moving the nib on the y both up and down and nothing shows on the paper. Do I need to have some other py script like tiler on. The writer script runs and the animation works but, still nothing on paper. I have tried it in both poser5 and poser4pro. Is there something I need? If I set the paper to drop to floor and the nib to drop to floor, the nib goes below the paper level. So I tried to set the nib to .001 on Y , still no drawing on the paper. I know that it is just something that I am doing wrong. Still trying skee

NOTE: No trees were killed in the sending of this message, but a large
number of electrons were terribly inconvenienced.


skee ( ) posted Tue, 30 March 2004 at 8:42 AM

ockham, I did it and it's great. The problem was that I was trying to set the point of the nib to the paper,not the wide part. In your instructions tell people to set the upper(wide part of the nib ) to the surface of the paper. I was looking at the nib as the point of a pencil, when it was really a wide drawing tool. Sorry for the misunderstanding. It really is a great script. skee

NOTE: No trees were killed in the sending of this message, but a large
number of electrons were terribly inconvenienced.


shadownet ( ) posted Tue, 30 March 2004 at 3:55 PM

Great title for this thread! Thanks again. Your ingenuity never ceases to amaze me. :O)


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.