<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating mutilpe curves? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170832#M16148</link>
    <description>okay I see where I was going wrong. And now it all works perfectly!&lt;BR /&gt;&lt;BR /&gt;Thank you very much for all your help John!</description>
    <pubDate>Tue, 28 Sep 2010 08:25:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-09-28T08:25:30Z</dc:date>
    <item>
      <title>Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170826#M16142</link>
      <description>I don't know much about mel but I am trying to create multiple curves then parent their shapes to make one curve object. I keep getting an error &lt;BR /&gt;&lt;BR /&gt;// Error: Cannot convert data of type string to type string[].&lt;BR /&gt;&lt;BR /&gt;string $cv1[] = `curve -d 3 -p -0.249915 ...etc`;&lt;BR /&gt;string $cv2[] = `curve -d 3 -p 0.250085 ...etc`;&lt;BR /&gt;&lt;BR /&gt;I know this works with two circles but why won't it work with two curves? what do I need to do to make it work?</description>
      <pubDate>Sun, 26 Sep 2010 03:41:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170826#M16142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-26T03:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170827#M16143</link>
      <description>The result of making your curve is just the name of the curve in a single string, not the shape node as well in an array(as it is when you create a primitive).&lt;BR /&gt;pickwalking down from there returns an array (or list) with only the shape node in its list...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;string $cv6=`curve -d 3 -p -0.55953 0 10.72212 -p -6.697326 0 7.827839 -p -6.530557 0 -2.189619 -p 3.017449 0 0.189942 -k 0 -k 0 -k 0 -k 1 -k 1 -k 1 `;&lt;BR /&gt;string $cv7[] =`pickWalk -d down`;&lt;BR /&gt;&lt;BR /&gt;print $cv6;&lt;BR /&gt;print $cv7;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The error you're seeing is Maya trying to put that string into a string array (not into a string in the array) and not being happy about that.</description>
      <pubDate>Sun, 26 Sep 2010 07:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170827#M16143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-26T07:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170828#M16144</link>
      <description>okay so making the first curve a simple string, w/o an array then using `pickWalk -d down` puts the shape in an array, so then now I can use that array in addition to my 3 other shape arrays to combine all my shapes into one object, right? &lt;BR /&gt;&lt;BR /&gt;I just tried it and got this error&lt;BR /&gt;&lt;BR /&gt;// Error: Invalid redeclaration of variable "$cv3" as a different type. //&lt;BR /&gt;&lt;BR /&gt;though if I just execute my curve it creates the curve just fine.&lt;BR /&gt;&lt;BR /&gt;Edit - I found I need to restart Maya to clear the variables, which I did and it now works.&lt;BR /&gt;&lt;BR /&gt;I am modifying a script from a tutorial, which I thought wouldn't be so hard and probably isn't if you know anything about scripting lol. Anyway, I now am trying to select the shapes of those curves and parent them which is not working. &lt;BR /&gt;&lt;BR /&gt;//Parent the shapes&lt;BR /&gt;string $relRcrv2[] = `listRelatives -shapes $rcrv2`;&lt;BR /&gt;parent -r -shape $relRcrv2 $rcrv1;&lt;BR /&gt;&lt;BR /&gt;//Delete the transform node&lt;BR /&gt;select $rcrv2; doDelete;&lt;BR /&gt;&lt;BR /&gt;//Rename the curve&lt;BR /&gt;string $rnmCurve = `rename $rcrv1 "myCrv"`;&lt;BR /&gt;&lt;BR /&gt;//Delete history of my curve&lt;BR /&gt;select $rnmCurve; DeleteHistory;&lt;BR /&gt;&lt;BR /&gt;but I get an error saying &lt;BR /&gt;&lt;BR /&gt;// Error: Last argument must be a group. // &lt;BR /&gt;&lt;BR /&gt;Which to me says that the parenting is not working. Does this have to do with the fact that my curves are strings within an array?</description>
      <pubDate>Sun, 26 Sep 2010 22:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170828#M16144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-26T22:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170829#M16145</link>
      <description>no,  to do what you suggest, try doing it one shape at a time with the same group node.&lt;BR /&gt;&lt;BR /&gt;The question I have is this though, do you think that getting them grouped together will make them the same object?  (they will select together) They won't really be one object, that's ok with you?</description>
      <pubDate>Mon, 27 Sep 2010 15:05:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170829#M16145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-27T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170830#M16146</link>
      <description>yeah I don't really care if they are a real object I just want them to all select together and behave as one object, having only one transform node etc. I am trying to make a script that will create a control curve with a specific shape for rigging, so anytime I want that shape I can just click a button on my shelf to create it.</description>
      <pubDate>Mon, 27 Sep 2010 22:04:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170830#M16146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-27T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170831#M16147</link>
      <description>Your way of working is working, you're just tripping on the string array vs string thing...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;string $cv11=`curve -d 3 -p -0.55953 0 10.72212 -p -6.697326 0 7.827839 -p -6.530557 0 -2.189619 -p 3.017449 0 0.189942 -k 0 -k 0 -k 0 -k 1 -k 1 -k 1 `;&lt;BR /&gt;string $cv12[] =`pickWalk -d down`;&lt;BR /&gt;string $cv13=`curve -d 3 -p 3.20667 0 8.105811 -p -1.300473 0 7.292677 -p -8.307956 0 4.785656 -p -8.574424 0 -3.382742 -p -0.248413 0 -5.167987 -k 0 -k 0 -k 0 -k 1 -k 2 -k 2 -k 2 `;&lt;BR /&gt;string $cv14[] =`pickWalk -d down`;&lt;BR /&gt;&lt;BR /&gt;parent -r -shape $cv14 $cv11; &lt;BR /&gt;select $cv13; doDelete; &lt;BR /&gt;&lt;BR /&gt;//Rename the curve&lt;BR /&gt;string $rnmCurve = `rename $cv11 "myCrv"`; &lt;BR /&gt;&lt;BR /&gt;//Delete history of my curve&lt;BR /&gt;select $rnmCurve; DeleteHistory; &lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Sep 2010 07:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170831#M16147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-28T07:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170832#M16148</link>
      <description>okay I see where I was going wrong. And now it all works perfectly!&lt;BR /&gt;&lt;BR /&gt;Thank you very much for all your help John!</description>
      <pubDate>Tue, 28 Sep 2010 08:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170832#M16148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-28T08:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mutilpe curves?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170833#M16149</link>
      <description>edit&lt;BR /&gt;&lt;BR /&gt;nvm I figured it out</description>
      <pubDate>Wed, 04 Jul 2012 14:16:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/creating-mutilpe-curves/m-p/4170833#M16149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-04T14:16:37Z</dc:date>
    </item>
  </channel>
</rss>

