|
|||||||
![]() |
|
|
Thread Tools |
|
|||
|
Hi all!
I've finally put a trial version of my python script online: "Espresso" It's (yet another) script for doing displacement painting in Blender. No fancy adaptive geometry, but maybe a few other goodies... More info and download on my PyTablet-page: http://members.fortunecity.de/pytablet/ Check the Readme! Michael Schardt Last edited by Michael_S; 05-May-06 at 13:33. |
|||
|
#1
|
|||
|
|
|
||||
|
that seem impressive, hope to be able to try it soon.
............................................
A|| \'//AY§ |
||||
|
#2
|
|
|||
|
Very nice script, easy interface, just a little slow on my PIII....
( Hmm, really don't like the popup advertisements on that site. I don't want some Javascript almost forcing me to check my registry file.... )
Last edited by SoftWork; 28-Apr-06 at 16:57. |
|||
|
#3
|
|
||||
|
great script !!!
I am playing with it and it works nice !!! Hope your going to implement it . Thanks alot !!!
|
||||
|
#4
|
|
||||
|
Hey Michael, like the content of your website! Got to see more people getting into python.
Are you aware Sculpting tool is a possible GSOC project? Your convex hull interests me, Im going to see if I can modify it to make a plastic wrap script ![]() - Cam
............................................
BPython Cookbook * How to get features into Blender * Code Metrics Hire Me ideasman42<at>gmail.com |
||||
|
#5
|
|
|||
|
Why would python scripting be a Gsoc ? Scripts get out dated or non working so fast and are slower.. And get lost in the mix..
Otherwise neat use of floating windows trying now |
|||
|
#6
|
|
|||
|
Is it really gonna support tablet only in windows?
I thought that Blender would only integrate pieces (internally/included scripts) that were completely cross platform. It would be really annoying if one of the last few programs that is just as good in other platforms as in windows starts turning windows only (or windows/mac only).
............................................
- Evan Discombobulator: http://www.elysiun.com/forum/viewtopic.php?t=36561 |
|||
|
#7
|
|
||||
|
Just did some updates to Convex hull, less code, some improved logic.
Also uses Mesh rather then NMesh now Code:
............................................
BPython Cookbook * How to get features into Blender * Code Metrics Hire Me ideasman42<at>gmail.com Last edited by ideasman42; 30-Apr-06 at 05:53. |
||||
|
#8
|
|
|||
|
Thanks all for your replies!
Just a few thoughts: Quote:
Nevertheless i hope it works quite nice on a decent PC. I use my Notebook (P4 HT 3.2GHz, GeForce FX). Since I've put my development version online you can check timings in the console. On my computer i'm framerate-limited by Blender's redraw-command - not by my python code in most situations. For example the default cube mentioned in the readme: 24578 vertices, Toolsize 0.4, displacement 0.2, airbrush-tool, frontview: vertex selection and displacement: ~7ms interface redraw: 2-3ms interface redraw + Blender.Redraw(): ~41ms!!! That means: the screenredraw takes about 38ms and i can't do anything about it. The higher the vertex count the worse. If i subdivide again (98306 verts) i get: vertex selection and displacement: ~21ms interface redraw: 2-3ms (same as before) interface redraw + Blender.Redraw(): ~105ms!!! If we wouldn't need to redraw all the time... I wonder if the Redraw() does a few more things behind the scenes than just redrawing the screen... To Cambo: Thanks! I've been following your posts for quite some time now. Not just since you released your new sculpting tool - much more advanced than our old sculptmesh (written by letterrip and myself - btw. too bad we didn't have the 'new' mesh-module at that time...) I didn't know there are plans for a native painting tool in Blender. Nevertheless i would have written my script anyway. It is fun to test out the possibilities! I learned a lot of things... Also thanks for the update on ConvexHull. It is an old script and was part of a bigger script. At time i wrote it there wasn't the mesh-module just nmesh. I decided to put ConvexHull online and didn't modify it very much - basically i replaced a few lists by sets and added the header and GPL-block. Now - The tablet support: First of all: the .dll i wrote is not meant to be included into Blender. As far as i know there are plans to add native (crossplatform) support for graphic tablets anyway. I wrote the dll two years ago (see this thread: http://blenderartists.org/forum/showthread.php?t=32091) to add tablet support to sculptmesh. Quite a few people asked if i could do something like that for linux also. Short answer: I don't think so - sorry. I'm not very familiar with linux programming. That doesn't mean you can't use your tablet under linux. My dll just adds a python module to Blender that can query data directly from the tablet-driver. Therefore i have access to information on tip-pressure values or pen-orientation. Without that info, the pen can still be used like an ordinary mouse (you still have the mousepos, buttonstatus and so on) Sooner or later - when Blender has it's own tablet support - all information including tip-pressure and so on will be available natively. Until then i'll have to rely on my dll to report these values. A script can always test if the PyTablet module is present. If not, it can use ordinary mouse functions. That means you can write the script such that it will allways work crossplatform. You just get a little extra bonus if you can use my .dll Greetings, Michael |
|||
|
#9
|
|
|||
|
This is a very cool script! I'm relatively new to Blender and not sure if this is a problem with pythin scripts in general but, if I have my mouse set to select with left, painting does not work at all.
As a little side note, I think the UI is wonderful and think it would be awesome if something like this were available and easily customizable for whatever blender commands you choose. It would be similar to the UI customization of Silo.
............................................
GruvSyco |
|||
|
#10
|
|
||||
|
EDIT!, just updated convex hull, had some problems
............................................
BPython Cookbook * How to get features into Blender * Code Metrics Hire Me ideasman42<at>gmail.com |
||||
|
#11
|
|
||||
|
I like this GUI - very intuitive. Nice script, but very slow
. After full open GUI redraw of 3D View very slow down...This script have nice mirror mode and powerfull tools... |
||||
|
#12
|
|
|||
|
Oh, oh, oh...
Ok I'll have to see, if there's a possibility to check the user's mouse button assignment. I use the default button layout: select with RMB. Therefore i used leftmouse for painting. If i can retreive the user's settings, the paint button could be automatically set to the "non-selecting" mousebutton - otherwise I'll use a userdefined configuration file. (might be a better choice anyway - if i add PyTablet, i'll also need more configuration options) Quote:
Also - you shouldn't have a subsurf-modifier on your object! Currently the modifier module is worked on. As soon as i have (read-)access to the object's modifier stack, i expect quite a few changes for my script. Quote:
Michael |
|||
|
#13
|
|
|||
|
I've put v1.0.1 online.
New: a configuration file "Espresso_Config.txt" in the "EspressoData"-folder. You can assign you mousebutton for painting there (default is still LMB) Make sure to overwrite all files with the new ones. Michael Last edited by Michael_S; 02-May-06 at 10:53. |
|||
|
#14
|
|
||||
|
Quote:
............................................
http://www.macouno.com |
||||
|
#15
|
|
|||
|
Most BPy types are implemented as thin wrappers around Blender data. NMesh is old legacy code that carries around copies of the Blender data. This is why it has things like getRaw().
Mesh uses the Blender data directly so it has a smaller memory footprint for large meshes and is faster for some operations. Mesh is the future. |
|||
|
#16
|
|
|||
|
It's me again
I was cleaning up the source code to put it online, when i found this mysterious speedbug: On the first run of Espresso everything seems ok, but then if you restart Blender again and run Espresso a second time, (redraw)speed is only about half. This concerns even the builtin Blender.Redraw() command(???). The only way out, was a complete restart of the computer - restarting Blender only didn't seem to help... The problem seems to be with the splash image at the beginning. Until i get it working correctly (and until i have a nice new splash), you can disable the splash screen as follows: In the file "Espresso.py" (in your scripts-folder) find this line (somewhere around line #67): ... "splash_image": "splash.png", ... and replace it with: ... "splash_image": None, ... Don't forget the Comma at the end! Save the modified file and you're done... If you're lazy, you can also download from my PyTablet-page (see: first post) Michael Last edited by Michael_S; 03-May-06 at 15:46. |
|||
|
#17
|
|
||||
|
nice script, very inspirating, would be good for those which are going to try to implement that painting in gsoc...
|
||||
|
#18
|
|
|||
|
still won't work on Linux w/ Python 2.4
![]() Are you ever going to release the .py instead of .pyc? |
|||
|
#19
|
|
|||
|
Doesn't work under Linux?
I'm still cleaning up my sourcecode. I will release it as soon as possible but i can't promise it's today or tomorrow. I've tested an earlier version of my script (also .pyc-files) with OpenSuse Linux 10 and i had no problems. It was the release version of Blender 2.41 linked static to Python 2.4. I'll try again... EDIT: I tried v1.0.2 - works without problems here. Did you follow the readme? Is "Espresso.py" in the .blender/scripts folder and "EspressoData" in the .blender/scripts/bpydata-folder? And did you activate the Spacehandlers after calling the script from the menu? (stupid questions, sorry) Can you tell me what errors you get (console output)? Anyone else having problems with Linux? Sorry for these complications, Michael Last edited by Michael_S; 05-May-06 at 08:50. |
|||
|
#20
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Italian espresso! | fambros | Finished Projects | 16 | 07-Feb-05 12:08 |
| Nice Espresso | maYO | Works in Progress | 6 | 05-Oct-04 14:29 |
| Espresso | sirfragalot | Works in Progress | 18 | 27-Sep-04 09:25 |