Is there a way to declare a variable without assigning it a value. In Visual Basic, you can use Dim or Public or Private to declare a variable(ex: Dim apples as Integer). How do you do this with Python?
Here’s the situation: I have a single python script. I want to create the variables and set their value only when the scene initializes, since I guess you can’t declare variables in python. I think they made python too simple.
If there’s no solution to this problem, how can I reference another python script and have it work when I make a runtime.
import TestScript TestScript.testvariable="testvalue"
This doesn’t seem to work with runtimes.
why not just assign it None?
blah = None
It’s ok. I got it working. I don’t hate python anymore. Thanks, though.