<?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 nConstraint is giving the error &amp;quot;source attribute '.nucleusid' cannot be found in Maya Animation and Rigging Forum</title>
    <link>https://forums.autodesk.com/t5/maya-animation-and-rigging-forum/nconstraint-is-giving-the-error-quot-source-attribute-nucleusid/m-p/10128494#M7341</link>
    <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Full error:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;// Error: file: C:/Program Files/Autodesk/Maya2019/scripts/others/createNConstraint.mel line 722: The source attribute '.nucleusId' cannot be found. //&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm trying to make attach a cape to a walking animation using a point to surface nConstraint. I made the nCloth in a new animation scene using a referenced rig but it comes to this error every time. Other nConstraints like component to component also yields this error.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Things I've tried:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried making the nCloth in the original rig and it yields the same error, so the error is not because I used a referenced file.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried resetting my preferences but same error.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried testing this constraint on a simple scene, a cube and a plane, and it works! So the problem is with the animation/mesh.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have looked at the node editor and I don't understand it. I can confirm that the nRigidShape(the passive collider on the mesh) IS connected to the nucleus. Sorry, I'm still a beginner.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Component to Component on the nCloth cape DOES work.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Making the mesh a passive collider does work with the cloth. From what I understand, the point to surface nConstraint should automatically make the surface a passive collider. Regardless, I've tried making the passive collider before and after the nConstraint and it yields the same error.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have deleted the history on the cape before creating the nCloth.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;What I want to know is how to fix this error and what is causing it so I can avoid it in the future. I don't understand why nucleus ID is needed or why it cannot be found, or for what. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 02:24:55 GMT</pubDate>
    <dc:creator>zackjavinlu</dc:creator>
    <dc:date>2021-03-04T02:24:55Z</dc:date>
    <item>
      <title>nConstraint is giving the error "source attribute '.nucleusid' cannot be found</title>
      <link>https://forums.autodesk.com/t5/maya-animation-and-rigging-forum/nconstraint-is-giving-the-error-quot-source-attribute-nucleusid/m-p/10128494#M7341</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Full error:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;// Error: file: C:/Program Files/Autodesk/Maya2019/scripts/others/createNConstraint.mel line 722: The source attribute '.nucleusId' cannot be found. //&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm trying to make attach a cape to a walking animation using a point to surface nConstraint. I made the nCloth in a new animation scene using a referenced rig but it comes to this error every time. Other nConstraints like component to component also yields this error.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Things I've tried:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried making the nCloth in the original rig and it yields the same error, so the error is not because I used a referenced file.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried resetting my preferences but same error.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried testing this constraint on a simple scene, a cube and a plane, and it works! So the problem is with the animation/mesh.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have looked at the node editor and I don't understand it. I can confirm that the nRigidShape(the passive collider on the mesh) IS connected to the nucleus. Sorry, I'm still a beginner.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Component to Component on the nCloth cape DOES work.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Making the mesh a passive collider does work with the cloth. From what I understand, the point to surface nConstraint should automatically make the surface a passive collider. Regardless, I've tried making the passive collider before and after the nConstraint and it yields the same error.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have deleted the history on the cape before creating the nCloth.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;What I want to know is how to fix this error and what is causing it so I can avoid it in the future. I don't understand why nucleus ID is needed or why it cannot be found, or for what. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 02:24:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-animation-and-rigging-forum/nconstraint-is-giving-the-error-quot-source-attribute-nucleusid/m-p/10128494#M7341</guid>
      <dc:creator>zackjavinlu</dc:creator>
      <dc:date>2021-03-04T02:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: nConstraint is giving the error "source attribute '.nucleusid' cannot be found</title>
      <link>https://forums.autodesk.com/t5/maya-animation-and-rigging-forum/nconstraint-is-giving-the-error-quot-source-attribute-nucleusid/m-p/12846572#M7342</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I just had this issue and did this :&lt;/P&gt;&lt;P&gt;The error indicates that the .nucleusId attribute is missing, which suggests there might be an issue with the Nucleus solver or the constraints setup in Maya. Here are a few steps to troubleshoot and potentially resolve this issue:&lt;/P&gt;&lt;P&gt;Steps to Resolve the Error&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Nucleus Solver&lt;/STRONG&gt;: Ensure that you have a Nucleus solver in your scene. If not, you can create one by going to the Dynamics menu set, then nDynamics &amp;gt; Nucleus &amp;gt; Create Nucleus.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check for Existing Nucleus Constraints&lt;/STRONG&gt;: Sometimes existing constraints or their incorrect settings can cause issues. Delete any existing constraints on the vertex or object and try to recreate them.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Reset Tool Settings&lt;/STRONG&gt;: Reset the settings for the Nucleus constraint tools. Go to nDynamics &amp;gt; nConstraint &amp;gt; Point to Surface, and click the small option box next to it. Then, click "Edit" and choose "Reset Settings."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Script Editor&lt;/STRONG&gt;: Sometimes running specific MEL scripts directly can bypass the UI issues. Open the Script Editor and run the following commands:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;// Select the vertex or vertices
select -r vertexComponent;

// Select the target object
select -add targetObject;

// Create the Point to Surface constraint
createNConstraint pointToSurface;&lt;/LI-CODE&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;UL&gt;&lt;LI&gt;&lt;P&gt;Replace vertexComponent with the appropriate vertex selection (e.g., pCube1.vtx[0]) and targetObject with the target object's name.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check for Updates&lt;/STRONG&gt;: Ensure that you have the latest service pack or update for Maya 2018 installed. Autodesk frequently releases updates that fix various bugs.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Scene Integrity&lt;/STRONG&gt;: Sometimes scenes can become corrupted or have hidden issues. Try importing your objects into a new scene to see if the problem persists.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Manual Attribute Check&lt;/STRONG&gt;: If the error persists, you might need to manually inspect and add the .nucleusId attribute if it is missing. Use the following MEL commands to inspect and potentially add the attribute:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;// Check if the attribute exists
if (!`attributeExists "nucleusId" yourObjectShape`) {
    // Add the attribute if it doesn't exist
    addAttr -ln "nucleusId" -at long yourObjectShape;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Replace yourObjectShape with the shape node of your object.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Example Steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Select the vertex or vertices you want to constrain.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Shift-select the target object.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run the following MEL command in the Script Editor:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;createNConstraint pointToSurface;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By following these steps, you should be able to resolve the error and apply the Point to Surface constraint successfully. But I did NOT!!&lt;BR /&gt;I finally came with an old solution for the buggy Maya:&lt;BR /&gt;- on the old scene, I save the nCloth hard-work-hours as a preset&lt;/P&gt;&lt;P&gt;- create a new scene an imported the old one, overwritting it.&lt;BR /&gt;- I used the same saved presets as before and... VOILA!&lt;BR /&gt;Constrains working again!&lt;BR /&gt;&lt;BR /&gt;Hope this helps others too!&lt;BR /&gt;&lt;BR /&gt;LAO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:01:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-animation-and-rigging-forum/nconstraint-is-giving-the-error-quot-source-attribute-nucleusid/m-p/12846572#M7342</guid>
      <dc:creator>laomusic_arts</dc:creator>
      <dc:date>2024-06-18T12:01:00Z</dc:date>
    </item>
  </channel>
</rss>

