{"id":273,"date":"2011-11-28T17:21:36","date_gmt":"2011-11-28T17:21:36","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=273"},"modified":"2011-12-11T20:04:41","modified_gmt":"2011-12-11T20:04:41","slug":"path-deform","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=273","title":{"rendered":"Path Deform"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-1024x295.jpg\" alt=\"\" title=\"path_deform\" width=\"640\" height=\"184\" class=\"aligncenter size-large wp-image-867 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-1024x295.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-300x86.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-680x196.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform.jpg 1167w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-300x143.jpg\" alt=\"\" title=\"megapathdefex\" width=\"300\" height=\"143\" class=\"alignright size-medium wp-image-876 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-300x143.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-1024x488.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-680x324.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex.jpg 1448w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nThe Path Deform modifier deforms an object using a spline as a path. You can move and stretch the object along the path, and rotate and twist it about the path. The usual gizmo and offset values can also be used to alter the look of the deformation. You can also opt to to describe the amount of stretch and twist via curves so the amount can vary along the length of a path. <\/p>\n<p>This version of the modifier will transform the path to the local space of the object aligning it to the axis selected, for another version look at the <a href=\"http:\/\/www.west-racing.com\/mf\/?page_id=361\" title=\"World Path Deform\">World Path Deform<\/a> version which will instead move the mesh to the path.<br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdeform1.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdeform1.jpg\" alt=\"\" title=\"megapathdeform\" width=\"260\" height=\"322\" class=\"alignright size-full wp-image-1058 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdeform1.jpg 260w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdeform1-242x300.jpg 242w\" sizes=\"(max-width: 260px) 100vw, 260px\" \/><\/a><\/p>\n<h3>Path Deform Param Description<\/h3>\n<h4><strong>Percent<\/strong><\/h4>\n<p>Moves the object along the path based on a percentage of the path length.<\/p>\n<h4><strong>Stretch<\/strong><\/h4>\n<p>Scales the object along the path, using the object&#8217;s pivot point as the base of the scale.<\/p>\n<h4><strong>Twist<\/strong><\/h4>\n<p>Twists the object about the path. The twist angle is based on the rotation of one end of the overall length of the path. Typically, the deformed object takes up only a portion of the path, so the effect can be subtle.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>Rotates the object about the path.<\/p>\n<h4><strong>Axis<\/strong><\/h4>\n<p>Changes the alignment of the path to local axis of the object<\/p>\n<h4><strong>Flip<\/strong><\/h4>\n<p>Reverses the direction<\/p>\n<h4><strong>Path<\/strong><\/h4>\n<p>Path to deform along, must be a MegaShape object in the scene<\/p>\n<h4><strong>Animate<\/strong><\/h4>\n<p>Automatically move the object along the path.<\/p>\n<h4><strong>Speed<\/strong><\/h4>\n<p>Speed to move the object<\/p>\n<h4><strong>Draw Path<\/strong><\/h4>\n<p>Display the deformation path<\/p>\n<h4><strong>Tangent<\/strong><\/h4>\n<p>How far to look ahead to get the direction of the path<\/p>\n<h4><strong>Use Twist Curve<\/strong><\/h4>\n<p>Use twist curve for amount fo twist along path<\/p>\n<h4><strong>Use Stretch Curve<\/strong><\/h4>\n<p>Use stretch curve for amount of stretch along curve<\/p>\n<h4><strong>Twist Curve<\/strong><\/h4>\n<p>Twist Curve<\/p>\n<h4><strong>Stretch Curve<\/strong><\/h4>\n<p>Stretch Curve<\/p>\n<h3>PathDeform Class<\/h3>\n<p>[cc lang=&#8221;c#&#8221;]public class MegaPathDeform : MegaModifier<br \/>\n{<br \/>\n\tpublic float          percent;<br \/>\n\tpublic float          stretch;<br \/>\n\tpublic float          twist;<br \/>\n\tpublic float          rotate;<br \/>\n\tpublic MegaAxis       axis;<br \/>\n\tpublic bool           flip;<br \/>\n\tpublic MegaShape      path;<br \/>\n\tpublic bool           animate;<br \/>\n\tpublic float          speed;<br \/>\n\tpublic bool           drawpath;<br \/>\n\tpublic float          tangent;<br \/>\n\tpublic bool           UseTwistCurve;<br \/>\n\tpublic AnimationCurve twistCurve;<br \/>\n\tpublic bool           UseStretchCurve;<br \/>\n\tpublic AnimationCurve stretchCurve;<br \/>\n}[\/cc]<\/p>\n<h3>Path Deform Example Video<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=oC2PMenKPNc&#038;hd=1&#038;fs=1&#038;autoplay=1\" class=\"fancybox-youtube\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytpathdef.jpg\" alt=\"\" title=\"ytpathdef\" width=\"680\" height=\"373\" class=\"aligncenter size-full wp-image-1470 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytpathdef.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytpathdef-300x164.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Path Deform modifier deforms an object using a spline as a path. You can move and stretch the object along the path, and rotate and twist it about the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":38,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/273"}],"collection":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":27,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/273\/revisions"}],"predecessor-version":[{"id":5255,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/273\/revisions\/5255"}],"up":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/38"}],"wp:attachment":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}