{"id":677,"date":"2017-07-15T16:22:48","date_gmt":"2017-07-15T15:22:48","guid":{"rendered":"http:\/\/documentation.particleflocker.com\/?post_type=docs&#038;p=677"},"modified":"2017-07-15T21:20:01","modified_gmt":"2017-07-15T20:20:01","slug":"static-modifier-attributes","status":"publish","type":"docs","link":"https:\/\/documentation.particleflocker.com\/?docs=particle-flocker-user-guide\/system-components\/modifiers\/static-modifier-attributes","title":{"rendered":"Static Modifier Attributes"},"content":{"rendered":"<p>Modifiers have a set of fixed attributes which all modifiers share. These are known as static modifier attributes and can be seen at the top of a modifier rollout.<\/p>\n<p>All attributes can be animated or expression driven to create more interesting flocking simulations.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-699\" src=\"http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/StaticModifierAttributes.jpg\" alt=\"\" width=\"476\" height=\"205\" srcset=\"https:\/\/documentation.particleflocker.com\/wp-content\/uploads\/StaticModifierAttributes.jpg 476w, https:\/\/documentation.particleflocker.com\/wp-content\/uploads\/StaticModifierAttributes-300x129.jpg 300w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/p>\n<p>The majority of these attributes control the type and size of the modifier&#8217;s volume shape. You can read about these attributes in the <a href=\"http:\/\/documentation.particleflocker.com\/?docs=particle-flocker-user-guide\/system-components\/modifiers\/modifier-volume\">Modifier Volume<\/a> section.<\/p>\n<h3 id=\"weight\">Weight<\/h3>\n<p>The weight of a modifier is a scale factor which determines how much influence it should have. The value ranges from 0 to 1, with 1 meaning that the modifier has full influence and 0 meaning it has none.<\/p>\n<p>The weight can be used in a number of situations such as to enable\/disable a specific modifier, or to blend between different modifiers when multiple modifiers are affecting the same set of particles.<\/p>\n<h3 id=\"method\">Modifier Method<\/h3>\n<p>The <em>Modifier Method<\/em> attribute determines how a modifier should apply its <a href=\"http:\/\/documentation.particleflocker.com\/?docs=particle-flocker-user-guide\/system-components\/modifiers\/dynamic-modifier-attributes\">dynamic modifier attributes<\/a> to particles within its volume. There are 2 modes of operation; Override and Additive.<\/p>\n<h4>Override<\/h4>\n<p>This is the default modifier mode and simply means that any particles within the volume of this modifier will have their simulation attributes overridden by the value given by this modifier.<\/p>\n<p>The override value is also interpolated between the modifier value and the system value based on the volume influence, so if the influence is 50%, the actual value used will be a 50% blend between the modifier value and the system value.<\/p>\n<p>The actual logic is as follows:<\/p>\n<pre>               From:            To:               Alpha:\r\nlinear_interp (current_value,   modifier_value,   volume_influence);<\/pre>\n<p>See <a href=\"http:\/\/documentation.particleflocker.com\/?docs=particle-flocker-user-guide\/system-components\/modifiers\/modifier-volume\">Modifier Volume<\/a> to learn more about the volume influence.<\/p>\n<h4>Additive<\/h4>\n<p>This modification method means that the value specified by each dynamic modifier attribute will be <em>added<\/em> to the current system value for any particles within the modifier&#8217;s volume. It is also possible to use negative values in this mode, which will <em>subtract<\/em> from the system value.<\/p>\n<p>The added value is also interpolated between the modifier value and 0 based on the volume influence. So if the influence is 50% the actual value added will be 50% of the modifier value.<\/p>\n<p>The actual logic is as follows:<\/p>\n<pre>               From:       To:               Alpha:\r\nlinear_interp (0.0,        modifier_value,   volume_influence)  +  current_value;<\/pre>\n<p>See <a href=\"http:\/\/documentation.particleflocker.com\/?docs=particle-flocker-user-guide\/system-components\/modifiers\/modifier-volume\">Modifier Volume<\/a> to learn more about the volume influence.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":74,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_tag":[],"_links":{"self":[{"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/677"}],"collection":[{"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=677"}],"version-history":[{"count":11,"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/677\/revisions"}],"predecessor-version":[{"id":723,"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/677\/revisions\/723"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/74"}],"next":[{"title":"Dynamic Modifier Attributes","link":"https:\/\/documentation.particleflocker.com\/?docs=particle-flocker-user-guide\/system-components\/modifiers\/dynamic-modifier-attributes","href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/679"}],"wp:attachment":[{"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=677"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}