Curve To Ribbon

Plugins linking to this thread: (hide)

Curve to RibbonAuthor: Julien Carmagnac
Video demo. Curve to Ribbon generates polygon mesh strips based on input curves. There are settings for subdivision, thickness, center and offset as well as for the ribbon plane: XY, XZ, YZ or auto. Works with multiple curves and even merged curves. Requirement: »keyvis Curve Tools« by Eugen Sares (moved directly below).

local backup: CurveRibbon.xsiaddon

Post Reply
julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Curve To Ribbon

Post by julca » 21 Jan 2014, 13:38

Hello,

I want share with you my last plugin.
It create ribbons from curves.

I use the offset command from the "keyvis Curve Tools" addon created by Eugen Sares.
It create a perfect base before the loft.
So, you need to have this addon already installed (but who did not ;) ?) if you want use mine.

"Curve To Ribbon" have a custom property witch drive all proxy parameters from the differents meshes/operators.

Quick video demo :


Cheers.
CurveRibbon.rar
(89.76 KiB) Downloaded 596 times

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Re: Curve To Ribbon

Post by Bullit » 22 Jan 2014, 04:08

Thanks

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 08:59
Location: Close to The Hague, Netherlands
Contact:

Re: Curve To Ribbon

Post by Rork » 22 Jan 2014, 09:30

He,

That's a neat little tool!

Thanks for sharing, much appreciated! :-bd

rob

EDIT: Just tested it here, but getting python errors and an OLE message. It does create the curves, but no geometry.
SI 2013SP1, installed the .xsiaddon in a server workgroup.
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 22 Jan 2014, 11:44

Thank you guys !
Rork wrote:Just tested it here, but getting python errors and an OLE message. It does create the curves, but no geometry.
SI 2013SP1, installed the .xsiaddon in a server workgroup.
I just test it with 2013 SP1 (in a custom workgroup) and it work on my side.
Can you give me your model for a test ?

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 08:59
Location: Close to The Hague, Netherlands
Contact:

Re: Curve To Ribbon

Post by Rork » 22 Jan 2014, 12:23

Hi,

didn't do anything special. created a sphere and created the curves like in the video.
after that ran your tool.

retried with a couple of restarts of SI as well, same result. I do run the SI internal python thingy btw..

rob
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 22 Jan 2014, 12:27

I also run SI internal Python.
Can you send me your log ?

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 08:59
Location: Close to The Hague, Netherlands
Contact:

Re: Curve To Ribbon

Post by Rork » 22 Jan 2014, 12:42

This is what I get after selecting the extracted curve and running the tool:

Application.SelectObj("crvlist", "", "")
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 43, in curveRibbon_Execute
# firstCheck()
# File "<Script Block 2>", line 358, in firstCheck
# main(collOfCurveSelection)
# File "<Script Block 2>", line 82, in main
# customOffsetCurve(collOfCurveUniqueLeft, gRibbonWith * -0.5, collOfAllOffsetOpLeft)
# File "<Script Block 2>", line 322, in customOffsetCurve
# xsi.ApplyOffsetSubcurves(inCollOfCurveToOffset.GetAsText())
# File "C:\Program Files\Autodesk\Softimage 2013 SP1\Application\python\Lib\site-packages\win32comext\axscript\client\pyscript.py", line 142, in __getattr__
# return getattr(self._scriptItem_.dispatchContainer,attr)
# File "C:\Program Files\Autodesk\Softimage 2013 SP1\Application\python\Lib\site-packages\win32com\client\dynamic.py", line 500, in __getattr__
# raise AttributeError, "%s.%s" % (self._username_, attr)
# AttributeError: Application.ApplyOffsetSubcurves
# - [line 321 in \\SERVER\xsiwg\Tools\Addons\CurveRibbon\Application\Plugins\curveRibbon.py]
# ERROR : OLE error 0x80020101
Application.curveRibbon()


hope that helps,

rob
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 22 Jan 2014, 12:52

# AttributeError: Application.ApplyOffsetSubcurves
It's seems that you don't have the "keyvis Curve Tools" addon installed.
Can you check this ?

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 08:59
Location: Close to The Hague, Netherlands
Contact:

Re: Curve To Ribbon

Post by Rork » 22 Jan 2014, 13:01

Ah... that makes sense.

I misread your comment on the Keyvis Curve Tool. I was under the impression you used that part of the code.
But you use the plugin as well to get to this.

Problem solved! ;)

rob
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 22 Jan 2014, 13:11

Cool !

I use my own extract subcurves code but use the "ApplyOffsetSubcurves" command from the "keyvis Curve Tools" addon.

leo3d
Posts: 5
Joined: 08 May 2013, 15:58

Re: Curve To Ribbon

Post by leo3d » 23 Jan 2014, 13:02

Excellent Julien :-bd :-bd

leo

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 23 Jan 2014, 17:12

thank you Leo !

User avatar
druitre
Posts: 471
Joined: 25 Jun 2009, 23:35

Re: Curve To Ribbon

Post by druitre » 20 May 2016, 12:43

thanks Julca, this one saved my ass today

- Jasper

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 20 May 2016, 13:37

druitre wrote:thanks Julca, this one saved my ass today

- Jasper
Cool ! I am very pleased that this serve you well ! :)
And coincidence, I have used it again this morning.

RoN43
Posts: 18
Joined: 09 Nov 2009, 18:32

Re: Curve To Ribbon

Post by RoN43 » 27 Apr 2017, 13:47

Thanks!!

julca
Posts: 145
Joined: 07 Sep 2012, 14:24

Re: Curve To Ribbon

Post by julca » 27 Apr 2017, 15:49

RoN43 wrote:Thanks!!
I am glad that this is useful :) .

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests