Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nightfreak

Pages: [1]
1
Python Scripting / Re: how to get variables from VC ??
« on: April 19, 2016, 06:06:09 PM »
oh, evalvars is exactly what I want, i tried it before but it did not work.
Now I have seen that my VC is too old and doesn't support this function.
updated now --> works like a charm :-)

2
Python Scripting / Re: how to get variables from VC ??
« on: April 19, 2016, 05:51:27 PM »
because I'm not good in writing Code, so it would be "the simple way" to get variables from VC.
Anyway...I try to solve it the way you described in your example

thanks again

3
Python Scripting / Re: how to get variables from VC ??
« on: April 19, 2016, 04:55:28 PM »
thank you very much, James!
Now It gets a little bit clearer, but I am wondering if there is no simple way to get a variable from ResultsSetVar into the Python script.

For Example (working):
Code: [Select]
tempC=vc.getObject("LastResult","")
print tempC


But this is not working.....I always get "None" instead of the variable I set with ResultsSetVar?!
Code: [Select]
tempC=vc.getObject("var.testvar","")
print tempC

I read the tutorial 10 times but it doesn't make "click" in my head ;-) sorry...

4
Python Scripting / how to get variables from VC ??
« on: April 19, 2016, 01:04:48 PM »
after 5h of reading forum posts and trying different ways, i give up :-/

Anyone knows how to get variables from VC to my python testscript? - can't get it running :-/

Here is my code:
Code: [Select]
def conditions(testvar):
x = float(testvar)

vc.callAction("OSD.ShowText","This is test number %s"%x, None)

Here is my VC script:

Pages: [1]