1
$\begingroup$

I was hoping someone in the community will be able to help with this.

A similar question was posted back in 2017 and the user @Rich Sedman answered with a custom made python script that was able to unwrap the mesh in an almost seamless way.

link here: How Can I Use a Procedural Bump Map to Replicate a Natural Pattern?

I have attempted to do the same for a mesh I created recently replicating the process shown in the post but unfortunately came up with error show in the the image attached. It shows the system console for blender and which lines were specifically throwing out errors. So I downloaded the project file provided (this can be found at the bottom of the answer in the old post) and attempted to run the script but the same error occurred. I suspected this could be due to running the newer version of blender. But because I'm not familiar with python that's the only problem I could think of.

I have been in contact with Rich on the old post and he suspected it could be that as well. He kindly suggested to make a new post to see if anyone else can find a solution in the mean time and that he will review when he can.

Hopefully any answer from you guys can help future people as well.

UPDATE: as in batFingers comments some of the script needs updating from the changes done to 2.8+ API. So far I have managed to change line 11, 12, 18 using his comment. The rest needs updating as it goes, still attempting it atm.

Blender System Console Error

$\endgroup$
2
  • 3
    $\begingroup$ Pre 2.8 scripts require updating to work in 2.8+ The error shown is blender.stackexchange.com/questions/38618/… $\endgroup$ – batFINGER Nov 19 '20 at 16:16
  • 1
    $\begingroup$ Thanks, @batFinger the post helped and I managed to fix a few lines through various other research as well. Unfortunately I have gotten to what is line 59 in the code loopvertrec['left-dist'] = edge_length_get(obj, loopidx, left) unfortunately I couldn't find any documentation in the blender 2.8 API to fix the edge_length_get function. Any suggestions? $\endgroup$ – Dmitry Nov 19 '20 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.