View Full Version : Convert paint effects stroke to a curve?
Gnimmel 04-12-2005, 06:29 PM Does anyone know a way to convert a paint effects stroke to a curve so it can be edited? I'd like the ability to draw out a paint effects curve, but then be able to fine tweak it afterwards by moving CV's.
Thanks,
Richard
|
|
Dialector
04-12-2005, 09:35 PM
Try using a curve first, then attached the paint effects brush to the curve via Paint effects>Curve utilities>Attach brush to curves. You will wind up with a paint effects stroke following your curve, you can then edit the curve as you would any curve and the paint effects will follow the curve.
By the way, I LOVE what you did with that vampires hair!
Gnimmel
04-13-2005, 04:16 AM
Thanks for the reply Dialector, however I'm trying to script somthing like the topology tool in Silo 3d and thought paint effects might be a good way to draw on a poly mesh. The tool I'd like to use is the Pencil Curve Tool, but this doesn't work on live polygons.
I think I've found a way to get the curve information I need and build a new curve from it by using the .outPoint array found in the strokeShapeBrush node. The only value I can't find now is the size of the array.
If anyone has a better idea on how to draw a curve on a polygon mesh, please let me know.
Thanks,
Richard
Duncan
04-13-2005, 03:51 PM
You are in luck. I have a script that generates a curve from the stroke outpoints array.
I've attached the zipped mel script curveFromStroke.mel
Put the mel file in your scripts location, then
simply select the strokes to create curves for and do:
curveFromStroke degree
(degree is the degree of curve to generate, 1,2,3 etc.)
Duncan
Gnimmel
04-14-2005, 01:56 PM
Thanks a lot Duncan, this is exactly what I was looking for. I nearly had a similar script wrote, but I didn't know about the -size flag in the getAttr command. This is a much better way than what I was doing.
Thanks,
Richard
CGTalk Moderation
04-14-2005, 01:56 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.