dravec-ky / mayaCityGen

A python script for procedural city generation within Maya

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trouble getting started...

stephennspencer opened this issue · comments

This looks really interesting!

I have loaded the three files into user/maya/2020/scripts, then started Maya, started a new scene, set the project, opened the Script Editor, opened the mayaCityGen.py script, and attempted to run it, and get:

Error: NameError: file line 2206: global name 'scriptPath' is not defined

How can I resolve this error? Thanks!

Hi! Line 25 of the citygen script contains a definition of the scriptPath variable that only gets created if the project directory matches the location of the script. I would try deleting the if statement and setting the script path to user/maya/2020/scripts/cityGen.py by yourself.