ShareCG Main Forums
   >> Open Discussion
Thread views: 23336 View all threadsNext thread*

giulia_87
(Stranger)
06/13/11 06:51 AM
Re: poserpython [re: adp__]Report this article as Inappropriate to us !!!Login to Reply

Thanks for the previous information. Let me know how can I then "reload" the image; I'll explain: I am writing an algorithm that at each iteration move some parts of the body of the actor, then it renders the current scene in order to obtain an image.I save this image into a file and then I open it to use it as an array of pixels. Here is the code :


actorFig=TheFig.Actor("waist")
actorFig.ParameterByCode(poser.kParmCodeYROT).SetValue(xloc[0])
actorFig=TheFig.Actor("Right Forearm")
actorFig.ParameterByCode(poser.kParmCodeYROT).SetValue(xloc[1])


scene.Render()
scene.SaveImage("bmp","C:\Documents and Settings\posizionefin.bmp")
immagine2 = Image.open('C:\Documents and Settings\posizionefin.bmp')
pix2 = immagine2.load()



How can I do the same thing without saving a file? Thanks






Entire thread
SubjectPosted byPosted on
*poserpython giulia_87   06/07/11 03:36 AM
.*Re: poserpython adp__   06/10/11 05:34 PM
.*Re: poserpython giulia_87   06/13/11 06:51 AM
.*Re: poserpython adp__   06/13/11 08:35 AM
.*Re: poserpython giulia_87   06/15/11 12:50 AM
.*Re: poserpython adp__   06/15/11 02:06 AM
.*Re: poserpython giulia_87   07/11/11 07:04 AM
.*Re: poserpython adp__   07/11/11 08:10 AM
.*Re: poserpython giulia_87   07/12/11 12:04 AM
.*Re: poserpython giulia_87   07/13/11 12:31 AM
Jump to

 




© 2020 Internet Business Systems, Inc.
670 Aberdeen Way, Milpitas, CA 95035
+1 (408) 882-6554 — Contact Us
ShareCG™ is a trademark of Internet Business Systems, Inc.

Report a Bug Report Abuse Make a Suggestion About Privacy Policy Contact Us User Agreement Advertise