I understand what each means, but when I tried the same code in a scrip, It didn´t work.
Ignition show me
"SyntaxError: (“mismatched input “expecting DEDENT”, (”,22,1, ´/tsystem.gui.transform(/n´))
i want to assing then new position with a int var like:
system.gui.transform(
component,
int var x_1, int var_y_1
)
I can´t see the property position on “Vision property editor”. It´s easy do it with a Symbol factory but i Want with a image.
Use triple backticks to format your code in this forum
```
def example():
pass
```
Like this to make it more readable. You have a syntax error so its really important for us to see your code as it actually is if we want a chance of being able to solve it.
Unlike other languages like Java which use {} to denote code blocks, python uses white spaces, so an indent is only used underneath control operators like an if statement.
if someCondition:
print "I am indented and only run if someConditon is met"
print "I always run!"
the code is working in a push botton… but i need that the image will be in continuosly movement, so i copied the code to the client timer scrips, din´t work on the scrips
Maybe Do you know how Can I change the position´s image with the vision properties edit? why I can´t see the image´s position option?
Is something updating your M_1M_2 tags? If they’re static, seems like the component will just be moved to that position once, and then just keep being placed to the same position. Can you post your entire code from your client script?