cannot use Custom node code with tessellation while it works when plugging only at diffuse

So, I am trying to get a custom node working with tessellation, and although I searched through google, I cannot seem to get this working.
I am getting errors al over and just don’t get what to do with it…the code works when I plug into diffuse or spec only.

Any help would be very helpful. (or an alternative way to do loops within the material editor)

regards! Tom

(i disabled the loop to check where this goes wrong…)

float3 uvs = worldposition / tile;
/*
uvs += vertexnormalws * 0;
float3 _hold = Texture2DSample(txt, txtSampler, uvs.rg);
float3 _prevhold = _hold;

for(int i = 0; i < counter; i++){
uvs += vertexnormalws * -(i*(1/counter));
_hold = max(_hold, Texture2DSample(txt, txtSampler, uvs.rg));

}
*/

return Texture2DSample(txt, txtSampler, uvs.rg);

Hi there,
my deepest apologises to bump this one time. I am really eager to see if this is solvable or not and hopes that someone who just missed this post could shine some light on it.

Summary: I am trying to use Texture2dSample code inside the custom node block with tessellation. That seems to throw these errors.

Well, so far bottomline is that you can’t use custom node, plugged into tessellation-related pins. Unreal Engine Issues and Bug Tracker (UE-23906)

bummer, I guess, I have to put the iteration nodes manually then in the editor.