PDA

View Full Version : Video_Display for release 12


rui_mac
10-17-2010, 12:07 PM
Once I posted here a Video_Display file that would provide a floating video screen in the editor (and in the render, if wanted). This is specially useful when animating following a reference. But having a floating reference of a still is also useful.
After being asked to make a working version for release 12, I decided to code it in Python as another attempt at learning it.
So, after struggling with the documentation and with the great help of some members of this forum, here is a working version for release 12 and, let me say, it works and looks much better :-)
Just add a texture to the Video_Display object (the file already includes one, just for the sake of example) and adjust the User Data parameters.
I hope you find it useful.
Comments and critics are welcome, of course :-)

http://www.ruimac.com/files/Video_Display_r12.zip

Rui Batista

Scott Ayers
10-17-2010, 02:28 PM
Thanks for releasing it with the code visible and not compiled and hidden Rui. :thumbsup:
I'm going to add the info about turning off the cache optimization to my python notes.

It's sad that we all have to stumble through these things blindly. And that's why sharing code snippets and experiences with each other is so very important to my/our learning process.

-ScottA

ernia
10-17-2010, 02:34 PM
That's going to be very helpful, Rui.
And another kudo for letting us see how you did it.

Thanks,
Arik

rui_mac
10-17-2010, 05:44 PM
Not that I would do it but, at least for now, it is impossible to "compile" or protect the code inside Python Generator objects.
However, I believe that it should be possible so I made a suggestion to Maxon for adding that ability in the future.
And yes, I do find that sharing code snippets is a great way for all us to learn how to code :beer:

Rui Batista

CGTalk Moderation
10-17-2010, 05:44 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.