RSS< Twitter< etc

Krakatoa Modifiers Editor - Krakatoa for Maya

Introduction

Krakatoa MY implements a simple "modifiers" system using then native Maya Extra Attributes of particle objects to store relevant data which is then applied by the renderer to the particle data channels.

The Krakatoa Modifiers Editor provides a centralized interface for adding, removing, reordering and toggling these "modifiers".

To launch the Modifiers Editor, press the MOD icon on the Krakatoa shelf.

 

User Interface

UPDATE Particle Sources List button 

  • Press this button to refresh the list of Particle Sources.
  • The list will be updated automatically when the tool is first opened, but if you created/delete particle objects or loaded a new scene, pressing the button will allow you to refresh the list without restarting the tool. 

Particle Sources list 

  • The list displays all valid Krakatoa particle sources in the current scene, including Maya Particles and nParticles, PRT Loaders, PRT Volumes and PRT Fractals.
  • If one of the valid sources is selected in the scene, it will be also selected on the list when the tool is first opened.
  • Selecting an object name on the list will also select it in the scene / show its parameters in the Attribute Editor.
  • This is useful for fast navigation through the "modifiers" of all particle sources in the scene without using the Outliner or clicking in the viewport to select them. 

 

+Set Float Channel button

  • Pressing this button will add a new Float Channel set of Extra Attributes to the currently selected Particle Source.
  • The Float Channel attributes contain the following data: 

KMod N Scale Channel Enabled checkbox

Where N is the Modifier Index. 

  • This checkbox is checked by default.
  • When checked, the modifier will be evaluated by Krakatoa.
  • When unchecked, the modifier will be ignored by Krakatoa. 

KMod N Name text field 

  • This text field provides a user-defined name for the modifier.
  • The name is used only for reference/user notes and does not affect the modifier's functionality.
  • This name will also be displayed in the Modifiers Editor, so it should be set to a helpful text reflecting the function of the modifier.

KMod N Channel Name text field 

  • This text field defines the particle data channel to be set.
  • Default channel is "Density".

KMod N Channel Value field  

  • This float value defines new channel value.
  • The default is 1.0.
  • Arbitrary positive and negative values are accepted.  

 

+Set Float[3] Channel button

  • Pressing this button will add a new Float[3] Channel set of Extra Attributes to the currently selected Particle Source.
  • The Float[3] Channel attributes contain the following data: 

KMod N Scale Channel Enabled checkbox

Where N is the Modifier Index. 

  • This checkbox is checked by default.
  • When checked, the modifier will be evaluated by Krakatoa.
  • When unchecked, the modifier will be ignored by Krakatoa. 

KMod N Name text field 

  • This text field provides a user-defined name for the modifier.
  • The name is used only for reference/user notes and does not affect the modifier's functionality.
  • This name will also be displayed in the Modifiers Editor, so it should be set to a helpful text reflecting the function of the modifier.

KMod N Channel Name text field 

  • This text field defines the particle data channel to be set.
  • Default channel is "Color".

KMod N Channel Value fields 

  • The 3 float value field define the three components of the float[3] channel.
  • The default is 1.0, 1.0, 1.0.
  • Arbitrary positive and negative values are accepted for all three components.  

 

+Copy Channel button

  • Pressing this button will add a new Copy Channel set of Extra Attributes to the currently selected Particle Source.
  • The Copy Channel attributes contain the following data: 

KMod N Scale Channel Enabled checkbox

Where N is the Modifier Index. 

  • This checkbox is checked by default.
  • When checked, the modifier will be evaluated by Krakatoa.
  • When unchecked, the modifier will be ignored by Krakatoa. 

KMod N Name text field 

  • This text field provides a user-defined name for the modifier.
  • The name is used only for reference/user notes and does not affect the modifier's functionality.
  • This name will also be displayed in the Modifiers Editor, so it should be set to a helpful text reflecting the function of the modifier.

KMod N Source Channel text field 

  • This text field defines the particle data channel to be copied.
  • Default channel is "Color".

KMod N Destination Channel text field 

  • This text field defines the particle data channel to be copied into.
  • Default channel is "Emission".

KMod N Copy As Vector Length checkbox 

  • When checked, the source channel's Vector Magnitude will be used to set the Destination Channels' R,G and B components.
  • Default channel is "Color".

 

+Scale Channel button

  • Pressing this button will add a new Scale Channel set of Extra Attributes to the currently selected Particle Source.
  • The Scale Channel attributes contain the following data: 

KMod N Scale Channel Enabled checkbox

Where N is the Modifier Index. 

  • This checkbox is checked by default.
  • When checked, the modifier will be evaluated by Krakatoa.
  • When unchecked, the modifier will be ignored by Krakatoa. 

KMod N Name text field 

  • This text field provides a user-defined name for the modifier.
  • The name is used only for reference/user notes and does not affect the modifier's functionality.
  • This name will also be displayed in the Modifiers Editor, so it should be set to a helpful text reflecting the function of the modifier.

KMod N Channel Name text field 

  • This text field defines the particle data channel to be scaled. 
  • Both float and float[3] (vector) channels are supported.
  • Default channel is "Color".

KMod N Channel Scale value field  

  • This float value defines the scale factor.
  • The default is 1.0 (no change)
  • Arbitrary positive and negative values are accepted.  

 

+Apply Texture button 

  • Pressing this button will add a new Apply Texture set of Extra Attributes to the currently selected Particle Source.
  • The Apply Texture attributes contain the following data: 

KMod N Apply Texture Enabled checkbox

Where N is the Modifier Index. 

  • This checkbox is checked by default.
  • When checked, the Modifier will be evaluated by Krakatoa.
  • When unchecked, the modifier will be ignored by Krakatoa. 

KMod N Name text field 

  • This text field provides a user-defined name for the modifier.
  • The name is used only for reference/user notes and does not affect the modifier's functionality.
  • This name will also be displayed in the Modifiers Editor, so it should be set to a helpful text reflecting the function of the modifier.

KMod N Evaluate In Viewport checkbox 

  • This checkbox is checked by default.
  • When checked, the material will be evaluated and its results will be reflected by the viewport particles if the object the modifier is applied to is a Krakatoa PRT object and the Channel is "Color".
  • When unchecked, the material's results will not be evaluated in the viewports. 

KMod N Channel Name text field 

  • This text field defines the particle data channel to be replaced by the result of the shader evaluation.
  • The default is "Color" which will set the Color of the particles to the output of the shader.
  • Any relevant channel like "Emission" or "Absorption" can be specified here. 

KMod N Texture picker 

  • This control provides the texture to be evaluated for each particle. 

KMod N UVW Channel Name text field 

  • This text field provides the name of the Mapping Coordinates Channel to be used per particle to evaluate the texture.
  • It defaults to "Position", thus evaluating the texture in object space.
  • It can be set to any valid particle data channel that can be used as mapping coordinates.

 

+Repopulate Particles button

  • Pressing this button will add a new Repopulate Particles set of Extra Attributes to the currently selected Particle Source.
  • The Repopulate Particles attributes contain the following data: 

KMod N Scale Channel Enabled checkbox

Where N is the Modifier Index. 

  • This checkbox is checked by default.
  • When checked, the modifier will be evaluated by Krakatoa.
  • When unchecked, the modifier will be ignored by Krakatoa. 

KMod N Name text field 

  • This text field provides a user-defined name for the modifier.
  • The name is used only for reference/user notes and does not affect the modifier's functionality.
  • This name will also be displayed in the Modifiers Editor, so it should be set to a helpful text reflecting the function of the modifier.

KMod N Evaluate In Viewport checkbox 

  • This checkbox is checked by default.
  • When checked, the new particles will be displayed in the viewport.
  • When unchecked, the new particles will only be generated at render time.

KMod N Fill Radis value field 

  • This float value field defines the radius around the source particle to populate with new particles. 

KMod N Fill Radius Subdivs value field 

  • This integer value defines the number of grid subdivisions relative to the Radius value. 
  • Increasing the number of Subdivs will reduce the grid spacing used for repopulation.
  • The default is 1. 

KMod N Particles Per Subdiv value field 

  • This integer value defines the number of particles to be created at random locations within each subdivision.
  • The default value is 2.
  • Increasing this value will increase the number of particles. 

KMod N Density Falloff value field and slider 

  • This float value controls the density falloff.
  • The default value is 0.1, range is 0.0 to 1.0.
  • Increasing this value will increase the falloff.

KMod N Random Seed value field

  • This integer value controls the random distribution pattern.
  • The default is 42.
  • You can change this value to produce different random distributions, or keyframe it over time to avoid a static noise pattern between frames.

 

Modifiers list 

  • The modifiers list displays the Krakatoa modifier definitions found the Extra Attrbitures of the object selected on the Particle Sources list.
  • The list displays a + sign when the modifier is active, and a -- when it is turned off.
  • The line contain the name of the modifier and the values of the major properties like channel names and values to set or scale by etc.
  • To toggle a modifier on or off, double-click the line in the list. 

 

Move UP/DOWN/To TOP/To BOTTOM buttons 

  • These 4 buttons can be used to reorder the modifiers to change their evaluation order.
  • The modifiers are evaluated from top to bottom.
  • In other words, if you want to first set a channel, then scale it and then copy it, the modifiers must be added in this oder. 
  • If you need to move one of them on the list, highlight it and press the corresponding button. 

 

DELETE Modifier button 

  • Pressing this button will delete the currently highlighted modifier by removing the corresponding Extra Attributes from the Particle Source object highlighted on the top list.