{"id":36,"date":"2006-11-16T00:49:00","date_gmt":"2006-11-16T06:49:00","guid":{"rendered":""},"modified":"2007-05-18T14:00:24","modified_gmt":"2007-05-18T20:00:24","slug":"weight-maps-and-plug-ins","status":"publish","type":"post","link":"https:\/\/www.moridin.com\/posts\/?p=36","title":{"rendered":"Weight Maps and Plug-ins"},"content":{"rendered":"<p>The rigging of my model is taking longer than expected, mainly because I hit a speed bump this week while trying to weight map my character. Based on someone&#8217;s advice, I added a plug-in to LightWave that is <span style=\"font-style: italic\">supposed<\/span> to make the mirroring of weight maps extremely easy. Of course it worked when I initially tried it, but subsequent tries failed by crashing Modeler! After trying different config options and tests, I still can&#8217;t figure out why it fails so miserably on my model.<\/p>\n<p>So, I took a different approach. The crashing plug-in is written in the C\/C++ SDK, which makes it difficult to debug. But there is another alternative for writing plug-ins: LScript. LScript is a C-like scripting language that gives you programmatic access to many of the features of LightWave. Armed with the Reference Manual, User Guide, and someone else&#8217;s code as a base example of how to create a plug-in, I actually wrote a working version of the plug-in, although it doesn&#8217;t have all of the flexibility of the original. However, it works and satisfies my needs.<\/p>\n<p>I&#8217;m excited because I use scripting all the time for other tasks on the computer (in fact, my day job involves writing and maintaining a large collection of scripts that do a ton of work automatically). Extending those skills to LightWave has the possibility to be extremely beneficial down the road. I look forward to building a nice library of scripts to automate those tedious, repetitive tasks that computers are soooo good at finishing in seconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The rigging of my model is taking longer than expected, mainly because I hit a speed bump this week while trying to weight map my character. Based on someone&#8217;s advice, I added a plug-in to LightWave that is supposed to make the mirroring of weight maps extremely easy. Of course it worked when I initially [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-3d"],"_links":{"self":[{"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":0,"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moridin.com\/posts\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}