# renderable curve attribute startWidth

**URL:** <https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883>\
**Category:** Issues\
**Created:** [June 27, 2012, 2:05pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883 "2012-06-27T14:05:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AardmanCGI](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AardmanCGI](https://forums.chaos.com/u/AardmanCGI)\
**Post date:** [June 27, 2012, 2:05pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/1 "2012-06-27T14:05:08Z")

</div>

Hi

I am trying to render a load of curves but can’t seem to control the width properly…

The default 0.2 startWidth is too big so i set it to .05 but it rounds back to 0.1. This is still too big but if i set it to anything below .05 it just renders a 1 pixel line..

Cheers,

Nathan

---

<div class="post-metadata">

**Author:** ![ivaylo.ivanov](https://avatars.discourse-cdn.com/v4/letter/i/eb8c5e/32.png) [@ivaylo.ivanov](https://forums.chaos.com/u/ivaylo.ivanov)\
**Post date:** [June 27, 2012, 2:42pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/2 "2012-06-27T14:42:05Z")

</div>

Only the UI control is doing the rounding. The exact value is used internally.

---

<div class="post-metadata">

**Author:** ![AardmanCGI](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AardmanCGI](https://forums.chaos.com/u/AardmanCGI)\
**Post date:** [June 27, 2012, 3:06pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/3 "2012-06-27T15:06:10Z")

</div>

ok so the only way i can get around this is to setAttr.

If i set it manually through the ui to .03 and the call getAttr “curveShape2.vrayNurbsCurveStartWidth” i get 0.  
If i setAttr i get .03

This seems specific to this attribute as my precision for everything else is set to 3 decimals.

Also is there a way to apply the one renderable curve attr to multiple curves?

Cheers

---

<div class="post-metadata">

**Author:** ![AardmanCGI](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AardmanCGI](https://forums.chaos.com/u/AardmanCGI)\
**Post date:** [June 27, 2012, 3:15pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/4 "2012-06-27T15:15:38Z")

</div>

in this case it actually looks like the maya ui is rounding it internally too

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [June 27, 2012, 6:38pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/5 "2012-06-27T18:38:06Z")

</div>

what I did in that case was I just took multiply/divide node and connected its out x to the start width, and used the precision value there instead. Its not very good though…

---

<div class="post-metadata">

**Author:** ![alainfx](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@alainfx](https://forums.chaos.com/u/alainfx)\
**Post date:** [June 28, 2012, 8:14am UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/6 "2012-06-28T08:14:42Z")

</div>

> [@Casa E.A.](https://forums.chaos.com/t/casa-e-a/38574/5):
>
> If i set it manually through the ui to .03 and the call getAttr “curveShape2.vrayNurbsCurveStartWidth” i get 0.

Strange, it works all right in my tests here (no “rounded” bug).

What version do you use ?

I have this :  
VRay stable build 19902 (2.10.01) from Mar 10 2012.  
Maya2012 64bit Subscription Advantage Pack, Service Pack1 (released on 2012/01/26)  
Windows Seven 64bit.

---

<div class="post-metadata">

**Author:** ![ivaylo.ivanov](https://avatars.discourse-cdn.com/v4/letter/i/eb8c5e/32.png) [@ivaylo.ivanov](https://forums.chaos.com/u/ivaylo.ivanov)\
**Post date:** [June 28, 2012, 9:15am UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/7 "2012-06-28T09:15:45Z")

</div>

Strange, in Maya 2012 it is doing the rounding only for display purposes. I did change the control to show 3 digits after the point though. You can download the nightly build from today if you have problems with this.

---

<div class="post-metadata">

**Author:** ![AardmanCGI](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AardmanCGI](https://forums.chaos.com/u/AardmanCGI)\
**Post date:** [July 12, 2012, 5:48pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/8 "2012-07-12T17:48:50Z")

</div>

Hi sorry for the lat reply… we are using maya 2011.

Is there a way to add renderable curve attrs to multiple curves in a similar way to vrayDisplacement node?

Cheers

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [July 12, 2012, 6:24pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/9 "2012-07-12T18:24:56Z")

</div>

No, unfortunately; for the moment you’ll have to script it, but it’s on the “to do” list.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![AardmanCGI](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AardmanCGI](https://forums.chaos.com/u/AardmanCGI)\
**Post date:** [July 13, 2012, 11:44am UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/10 "2012-07-13T11:44:40Z")

</div>

renderable curve script

Ok no worries… already did.

usefull for anyone with the same prob…

```auto

import maya.cmds as mc
import maya.mel as mm

sel = mc.ls(sl=True)
for s in sel:
    shape = mc.listRelatives(s, shapes=True)[0]

    print shape

    try:
        mc.getAttr ("%s.vrayNurbsCurveRenderable"%shape)
    except Exception:
        mm.eval("vray addAttributesFromGroup %s vray_nurbscurve_renderable 1"%shape);

    mc.setAttr( "%s.vrayNurbsCurveRenderable"%shape, 1)
    mc.setAttr( "%s.vrayNurbsCurveTesselation"%shape , .1)
    mc.setAttr( "%s.vrayNurbsCurveStartWidth"%shape , .03)

```

---

<div class="post-metadata">

**Author:** ![MartinB](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@MartinB](https://forums.chaos.com/u/MartinB)\
**Post date:** [October 5, 2012, 5:29pm UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/11 "2012-10-05T17:29:23Z")

</div>

Nathan, you know my python is shocking. Trying to run the above code and get an # Error: unexpected indent #

EDIT: Don’t worry, being abit dopey.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [October 7, 2012, 8:34am UTC](https://forums.chaos.com/t/renderable-curve-attribute-startwidth/41883/12 "2012-10-07T08:34:47Z")

</div>

Actually in the latest builds we added a renderable curves set, so you can just connect all the curves that you want to render and control them from one place.

Best regards,  
Vlado
