<?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: Compiling circleNode example plugin in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8606339#M8229</link>
    <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should have been more specific, I'm trying to build a plugin for Maya 2018 so I've been following these documents:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_Setting_up_your_build_env_Windows_env_32bit_and_64bit_htm" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_Setting_up_your_build_env_Windows_env_32bit_and_64bit_htm&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_GUID_13D86D23_65DB_49A2_BD9C_DB9EF9F8644A_htm" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_GUID_13D86D23_65DB_49A2_BD9C_DB9EF9F8644A_htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I just redid everything from scratch, and I noticed this time I had .sln files in the plugins directory, so I opened that project for circleNode as stated in the first link. I built that (no build errors) and included it in Maya and same issue is happening where it says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Error: Line 1.18: Cannot find file "circleNode" for source statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the 2018 devkit I don't see any cmake files, only the visual studio project files. I have a copy of the 2019 devkit downloaded and I see that has cmake files so I'm assuming cmake is the new way to build all the samples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I loaded the Plugins.sln file to build all of the sample plugins, and 216 succeeded, 4 failed and 9 skipped. The ones that failed are shader ones so I think I'm just missing some external stuff that I'd need to install if I wanted those plugins.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I looked through the rest of the plugins and found that the translateCmd also includes things that I'll need to do so I imported that and it works perfect so I'm just going to go off of that. Eventually I'm going to be trying to hook up a custom serial USB device to move an object around, so this translateCmd is a good example to look at.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I'm just going to give up on circleNode. I guess I'm just confused on the usage of it. Why does "source circleNode" need to be called? Doesn't "source" compile a script, but circleNode has already been compiled via Visual Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 18:46:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-19T18:46:27Z</dc:date>
    <item>
      <title>Compiling circleNode example plugin</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8604197#M8227</link>
      <description>&lt;P&gt;I've just started playing around with maya plugin development today. I've got my environment setup and can compile a hello world command plugin. Running "HelloWorld" in the MEL commandline I see it prints out "Hello world!".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I'm trying to get one of the example plugins compiled but I'm having some issues. I'm using Visual Studio 2015 Update 3 for compiling the plugins. I don't see a visual studio project file for any of the example plugins, so I've created a new project using the MayaPluginWizard and called it circleNode. Inside that I copy and pasted the circleNode.cpp code into the cpp file automatically created for the project. Everything compiles without any errors and I copy it into a folder in my Maya plug-ins folder. I load it just the same as my hello world.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vs.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/604407iDB5CDA2426FDFA4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="vs.png" alt="vs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The circleNode.cpp file has instructions at the top that state:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="fragment"&gt;&lt;SPAN class="comment"&gt;// Executing the command "source circleNode" will run the MEL script which will&lt;/SPAN&gt;
&lt;SPAN class="comment"&gt;// create a new "Circle" menu with a single item. Selecting this will build&lt;/SPAN&gt;
&lt;SPAN class="comment"&gt;// a simple model (a sphere which follows a circular path) which can be played back,&lt;/SPAN&gt;
&lt;SPAN class="comment"&gt;// by clicking on the "play" icon on the time slider.  Note: the circleNode&lt;/SPAN&gt;
&lt;SPAN class="comment"&gt;// plugin needs to be loaded before the "Circle" menu item can be executed&lt;/SPAN&gt;
&lt;SPAN class="comment"&gt;// properly.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I'm trying to run source circleNode in the MEL command line but it comes back with this error:&lt;/P&gt;
&lt;P&gt;// Error: Line 1.18: Cannot find file "circleNode" for source statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see I have the plugin loaded.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="circlenode.jpg" style="width: 452px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/604405i17E928A9BCB73783/image-size/large?v=v2&amp;amp;px=999" role="button" title="circlenode.jpg" alt="circlenode.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not to familiar with Maya, Ive done a little bit of it in the past but I'm going to be working on a plugin for a client so I'm trying to get back into it. Maybe I'm just running the example wrong. I think theres some parts of circleNode that I can use for the plugin I need to make so thats why I'm trying to get it running.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 00:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8604197#M8227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T00:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling circleNode example plugin</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8605436#M8228</link>
      <description>&lt;P&gt;Hi, Although using the project wizard should work, I am not sure you have everything needed. I would suggest to read the "How to build plug-ins on Windows" topic. Maya devkit samples are using the command-line "cmake" tool to build. This helps to keep the devkit somewhat platform independent. To setup the devkit for Windows, see here: &lt;A href="http://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__developer_Setting_up_your_build_Windows_environment_64_bit__html" target="_blank"&gt;http://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__developer_Setting_up_your_build_Windows_environment_64_bit__html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then there is a intro that uses the circleNode as an example. See here: &lt;A href="http://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__developer_ExamplesAndSamples_Building_Sample_Plugins_Building_Windows_Samples_html" target="_blank"&gt;http://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__developer_ExamplesAndSamples_Building_Sample_Plugins_Building_Windows_Samples_html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure to use the doc version appropriate for your version of Maya (above link is for 2019). Sometimes the compiler version may change for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope it helps,&lt;/P&gt;
&lt;P&gt;kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 13:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8605436#M8228</guid>
      <dc:creator>kevinvandecar</dc:creator>
      <dc:date>2019-02-19T13:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling circleNode example plugin</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8606339#M8229</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should have been more specific, I'm trying to build a plugin for Maya 2018 so I've been following these documents:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_Setting_up_your_build_env_Windows_env_32bit_and_64bit_htm" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_Setting_up_your_build_env_Windows_env_32bit_and_64bit_htm&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_GUID_13D86D23_65DB_49A2_BD9C_DB9EF9F8644A_htm" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_GUID_13D86D23_65DB_49A2_BD9C_DB9EF9F8644A_htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I just redid everything from scratch, and I noticed this time I had .sln files in the plugins directory, so I opened that project for circleNode as stated in the first link. I built that (no build errors) and included it in Maya and same issue is happening where it says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Error: Line 1.18: Cannot find file "circleNode" for source statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the 2018 devkit I don't see any cmake files, only the visual studio project files. I have a copy of the 2019 devkit downloaded and I see that has cmake files so I'm assuming cmake is the new way to build all the samples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I loaded the Plugins.sln file to build all of the sample plugins, and 216 succeeded, 4 failed and 9 skipped. The ones that failed are shader ones so I think I'm just missing some external stuff that I'd need to install if I wanted those plugins.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I looked through the rest of the plugins and found that the translateCmd also includes things that I'll need to do so I imported that and it works perfect so I'm just going to go off of that. Eventually I'm going to be trying to hook up a custom serial USB device to move an object around, so this translateCmd is a good example to look at.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I'm just going to give up on circleNode. I guess I'm just confused on the usage of it. Why does "source circleNode" need to be called? Doesn't "source" compile a script, but circleNode has already been compiled via Visual Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8606339#M8229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T18:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling circleNode example plugin</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8608640#M8230</link>
      <description>&lt;P&gt;Hi, Sorry for any confusion. yes you are correct, the Maya 2019 release uses a new cmake to build. I am new to Maya development, so did not realize that.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regarding the 2018 version of the plugin, I was able to build it using the SLN as you mentioned. I then used the Maya plugin manager to load it, and that seemed to work without any error. Then following the cpp instructions, I tried "source circleNode" and see the same error you are getting. This essentially means that the accompanying MEL script is not being found directly. So depending on how you got Maya to load the plugin, you will have to tell Maya how to "find" this script as well. The easiest is to simply use the full path. You can do this for example:&amp;nbsp;&amp;nbsp;source "&amp;lt;your install location&amp;gt;/devkit/plug-ins/circleNode/circleNode.mel". This should then work and show a new menu on the Maya menubar, and allow you to execute the plug-in functionality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short, I find it easier to start by using full paths to everything to ensure the files are being found. By using the plug-in manager to load the plugin, you know it is being loaded (or an error with that specifically). Then if MEL script is not found, again use full path to ensure it's being found and executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have trouble,&amp;nbsp; I would suggest to double check&amp;nbsp; to make sure you have matching devkit and Maya update version. On the Maya developer center &lt;A href="http://autodesk.com/developmaya" target="_blank"&gt;http://autodesk.com/developmaya&lt;/A&gt; you will find all the versions for 2018. Make sure to use the correct update devkit to match your Maya update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps, and again, sorry for any initial confusion.&lt;/P&gt;
&lt;P&gt;kevin&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:58:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8608640#M8230</guid>
      <dc:creator>kevinvandecar</dc:creator>
      <dc:date>2019-02-20T14:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling circleNode example plugin</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8609201#M8231</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appending the full path worked for me. Thanks for helping me figure out my issue!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 18:10:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/compiling-circlenode-example-plugin/m-p/8609201#M8231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T18:10:47Z</dc:date>
    </item>
  </channel>
</rss>

