# Do This without the custom node with code inside.

**URL:** <https://forums.unrealengine.com/t/do-this-without-the-custom-node-with-code-inside/1200330>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [June 15, 2023, 5:12pm UTC](https://forums.unrealengine.com/t/do-this-without-the-custom-node-with-code-inside/1200330 "2023-06-15T17:12:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanDuKul](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sandukul/32/1132109_2.png) [@SanDuKul](https://forums.unrealengine.com/u/SanDuKul)\
**Post date:** [June 15, 2023, 5:12pm UTC](https://forums.unrealengine.com/t/do-this-without-the-custom-node-with-code-inside/1200330/1 "2023-06-15T17:12:34Z")

</div>

Hello I would like to reproduce this without having the custom node except that I really have no idea how to do that. Can you help me please? thanks in advance

here the code :  
static const float PI = 3.14159265359f;  
int CDIndex = 13;

Steps = clamp(floor(Steps), 1, 128);  
RadialSteps = clamp(floor(RadialSteps), 1, 128);

float StepSize = Radius/Steps; // Step size needed to get from the center to edge of the shape  
float RadialStepSize = (PI2)/RadialSteps; // Step size needed to get around the object

float Result = 0.0f;

for (int i = 1; i \<= Steps; i++){

float CurrentStep = i StepSize;

for(int j = 1; j \< RadialSteps; j++) {  
float Angle = j\* RadialStepSize;  
float2 Coord = float2(cos(Angle), sin(Angle)) \* CurrentStep + UV;

float Sample = SceneTextureLookup(ViewportUVToSceneTextureUV(Coord, CDIndex), CDIndex, false);

Result += (MaxDistance - clamp(Sample, 0, MaxDistance)) / MaxDistance;

}  
}  
return float1 (Result / (RadialSteps \* Steps));

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/5/c453660103e4f7a098f95a68949639e3eb8c3b1c.jpeg)
