-
-
Save zeffii/11002522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ast | |
t = """ | |
# here is where one might create polygon index loops | |
types = int, int | |
vert_indices = [(i, i+1, i+7, i+6) for i in range({0}) if (i-{1}) % ({1}+1)] | |
""" | |
def local_temp(variable_inputs): | |
t = bpy.data.texts[self.text].as_string() | |
exec(t.format(*variable_inputs)) | |
return vars() | |
a = local_temp((30, 5)) | |
print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment