{"id":170,"date":"2010-01-19T11:58:00","date_gmt":"2010-01-19T11:58:00","guid":{"rendered":"http:\/\/pycheung.com\/weblog\/?p=170"},"modified":"2012-12-10T17:11:07","modified_gmt":"2012-12-10T17:11:07","slug":"dla-with-maya-dynamics","status":"publish","type":"post","link":"https:\/\/www.pycheung.com\/weblog\/post\/170","title":{"rendered":"DLA with Maya dynamics"},"content":{"rendered":"<p><img loading=\"lazy\" src=\"http:\/\/www.pycheung.com\/weblog\/wp-content\/uploads\/zrtn_003p79c37d86_tn.jpg\" style=\"BORDER-BOTTOM: #000000 1px; BORDER-LEFT: #000000 1px; BORDER-TOP: #000000 1px; BORDER-RIGHT: #000000 1px\" height=\"450\" width=\"600\" alt=\"DLAdynamics2.jpg\" border=\"0\"\/><\/p>\n<p><span class=\"test\">Got the basic <a href=\"http:\/\/apricot.polyu.edu.hk\/~lam\/dla\/dla.html\" target='\"_blank\"'>Diffusion Limited Aggregation<\/a> logic to work in Maya <\/p>\n<p>some tweaks required in the force fields that governs the random movement of the mobile cells (particles) <br \/>but the experiment shows that DLA can be done using maya dynamics and a bit of scripting <\/p>\n<p>First I found out that dynamic connect doesn&#8217;t work within event procedure, particles wasn&#8217;t able to collide with the new geometry created. <\/p>\n<p>Got it working by putting the name of the new geometry into an array during event procedure (on collision against fixed cells) then use expression to run script every frame, loop through the array to make collision between the new geometries and the particles, clear array.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Got the basic Diffusion Limited Aggregation logic to work in Maya some tweaks required in the force fields that governs the random movement of the mobile cells (particles) but the&#8230;<\/p>\n<div class=\"royalwp-readmore-wrap\"><a href=\"https:\/\/www.pycheung.com\/weblog\/post\/170\" class=\"royalwp-readmore\">Explore more <i class=\"far fa-hand-point-right\"><\/i><\/a><\/div>\n","protected":false},"author":2,"featured_media":1077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[155],"tags":[36,37,60,62,76],"_links":{"self":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/170"}],"collection":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":1,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":929,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/170\/revisions\/929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media\/1077"}],"wp:attachment":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}