{"id":334,"date":"2011-11-28T22:53:55","date_gmt":"2011-11-28T22:53:55","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=334"},"modified":"2012-04-28T12:13:37","modified_gmt":"2012-04-28T12:13:37","slug":"stretch","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=334","title":{"rendered":"Stretch"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-1024x283.jpg\" alt=\"\" title=\"stretch\" width=\"640\" height=\"176\" class=\"aligncenter size-large wp-image-1026 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-1024x283.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-300x83.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-680x188.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch.jpg 1145w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThe Stretch modifier simulates the traditional animation effect of &#8220;squash-and-stretch.&#8221; Stretch applies a scale effect along a specified stretch axis and an opposite scale along the two remaining minor axes. The amount of opposite scaling on the minor axes varies, based on distance from the center of the scale effect. The maximum amount of scaling occurs at the center and falls off toward the ends.<br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megastretch.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megastretch.jpg\" alt=\"\" title=\"megastretch\" width=\"259\" height=\"152\" class=\"alignright size-full wp-image-1033 fancy\" \/><\/a><\/p>\n<h3>Stretch Param description<\/h3>\n<h4><strong>Amount<\/strong><\/h4>\n<p>Sets the base scale factor for all three axes. The scale factor derived from the Stretch value varies according to the sign of the value.<\/p>\n<ul>Positive stretch values define a scale factor equal to Stretch+1. For example, a stretch value of 1.5\tyields a scale factor of 1.5+1=2.5, or 250 percent.<\/ul>\n<ul>Negative stretch values define a scale factor equal to -1\/(Stretch-1). For example, a stretch value of -1.5 yields a scale factor of -1\/(-1.5-1)=0.4, or 40 percent.<\/ul>\n<ul>The calculated scale factor is applied to the selected stretch axis and the inverse scale is applied to\tthe minor axes.<\/ul>\n<h4><strong>Amplify<\/strong><\/h4>\n<p>Changes the scale factor applied to the minor axes. Amplify generates a multiplier using the same technique as stretch. The multiplier is then applied to the Stretch value before the scale factor for the minor axes is calculated. Amplify values affect scaling along the minor axes in the following way:<\/p>\n<ul>A value of 0 has no effect. It uses the default scale factor calculated from the Stretch amount.<\/ul>\n<ul>Positive values exaggerate the effect.<\/ul>\n<ul>Negative values reduce the effect.<\/ul>\n<h4><strong>Axis<\/strong><\/h4>\n<p>Axis to stretch along.<\/p>\n<h4><strong>Do Region<\/strong><\/h4>\n<p>Constrain the effect to a region.<\/p>\n<h4><strong>From<\/strong><\/h4>\n<p>Start of the region.<\/p>\n<h4><strong>To<\/strong><\/h4>\n<p>End of the region.<\/p>\n<h3>Stretch Class<\/h3>\n<p>[cc lang=&#8221;c#&#8221;]public class MegaStretch : MegaModifier<br \/>\n{<br \/>\n\tpublic float    amount;<br \/>\n\tpublic bool     doRegion;<br \/>\n\tpublic float    to;<br \/>\n\tpublic float    from;<br \/>\n\tpublic float    amplify;<br \/>\n\tpublic MegaAxis axis;<br \/>\n}[\/cc]<\/p>\n<h3>Stretch Tutorial<\/h3>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=AWdMG9pztl0&#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\/ytstretch.jpg\" alt=\"\" title=\"Click to Play\" width=\"680\" height=\"405\" class=\"aligncenter size-full wp-image-1931 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytstretch.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytstretch-300x178.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Stretch modifier simulates the traditional animation effect of &#8220;squash-and-stretch.&#8221; Stretch applies a scale effect along a specified stretch axis and an opposite scale along the two remaining minor axes. [&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\/334"}],"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=334"}],"version-history":[{"count":13,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/334\/revisions"}],"predecessor-version":[{"id":1027,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/334\/revisions\/1027"}],"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=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}