Creating Custom Dynamics Stroke for Substance Painter

Tutorial / 23 August 2021

Hello,

I searched  how  to understand how work the Stiches Straight dynamics stroke on Substance Designer for Substance Painter. 


The only official documentation we have is this: Substance Documentation really cool for create gradient but It was not my goal :) but that helped me to understand what I need.

So first step we need to create two integer variable :

stampIndex  and stampCycleCount. 

the Substance documentation is clearly about this two parameter : 

The StampIndex is the ID of an individual stamp inside a brush stroke. By default it starts at 0 and increase by 1 for each new stamp. The StampCycleCount is a way to limit the amount of unique indexes and tells Substance 3D Painter to recycle/re-use the already generated Substance graphs. When the current ID reaches the limit Substance 3D Painter will start again from 0, creating a loop.

stampIndex just need to be create, value min/ max / default are not importante 


stampCycleCount is important in this case I don't want to loop too fast, so 20 it's good value for me.


Now If I observe the Stiches Straight dynamics stroke on Substance Painter I see two important thing : the patern is not center, and when I draw the complet patern appears gradually. I conclued that the pattern has an transform when I draw


I created simple rope material ( base color, normal, height ect ... )



at the end I used transformationation 2D node with function for scroll thepattern on the -Y axe:



 copy and past the transformationation 2D node for all maps ( normal, height ect ... )

Important thing to know : the height map is neutre if the color are grey 128


  and in my case I need to add alpha on the diffuse.


I exposed some parameter of my materials and done :



  


  Don't hesitate if you have question  :)