Meshinstance that doesn't give lua error!

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
synthsin75
Posts: 10266
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Meshinstance that doesn't give lua error!

Post by synthsin75 »

I finally got tired of fa_meshinstance telling me that I had the layers in the wrong order when they weren't. Turns out there was an extra line of code that wasn't needed.
print("MeshInstance: wrong order - swap the source and the copy!")
return
The first entry of this in the script is what actually does its job. I have no idea what the second was meant for. Just delete the second time this shows up, including the return.

Or download my fixed version here:http://www.mediafire.com/?1cjdowizmta

I tested this, but I'm no scripter. I don't think deleting a print function could mess anything up.

Anyway, I hope others enjoy a meshinstance that doesn't keep spitting out lua errors. :wink:
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

Thanks for that! I don't usually use scripts much (more of an old school "brute force" kind of guy!), and I'm a bit of a late adopter, so as and when I start using meshinstance I'll be saying a quiet 'thank you'!
You can't have everything. Where would you put it?
Post Reply