![]() |
what does this error code mean?
Heya im getting this error, im trying to make it so when the left mouse button is pressed an event occurs,
but i Keep getting the following error: if info.valid and info.object == female: UnboundLocalError: local variable 'info' referenced before assignment any thoughts? the code is below: Code:
import viz |
You are creating the info variable in a different indentation block than the if statement. So if the right mouse button was clicked you would get an error because the info object would never be created. So you need to indent the if info.valid and info.object == female: block so it is in the same scope as the line info = viz.pick(1)
|
thanks
cheers, thats sorted a lot of the problems ive been havin :)
Also I was wondering if there could be a scripts page in the future on here, so users can share scripts etc? Thankyou for your time |
All times are GMT -7. The time now is 06:52 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC