This tutorial outlines pretty well how to do this, I’m just offering a bit of clarification (we had some trouble getting this to work).
- When it mentions ‘primscript’ there are actually two. One is the generic one linked on the site, this goes in your top-level prim (in this case, ‘ant maker’) as ‘primscript’. The other is the one the Maya script generates, it goes in the notecard (copy/paste) and it’s that notecard’s UUID you use when calling primscript. It doesn’t matter what you call the notecard as you are using its UUID and not its name.
- Be sure that ‘primscript’ in your top-level prim has its ‘Running’ box checked! If you can’t check it, then the script can’t compile, which means you copy/pasted incorrectly somehow.
I have changed the wikipedia entry accordingly.
