wigal123 Posted October 24, 2009 Share Posted October 24, 2009 (edited) Hello How does a python expression needs to look to return the value to a parameter and sets it? how about just setting a random value in tx of a given node. in hscript a simple rand() would do... but how do you achieve something like this with python? import random random.random() gives you a random number, but how do you pipe it back into the parm? thanks g Edited October 24, 2009 by wigal123 Quote Link to comment Share on other sites More sharing options...
graham Posted October 25, 2009 Share Posted October 25, 2009 If your python code is more than 1 line long you need to return it. import random return random.random() Quote Link to comment Share on other sites More sharing options...
wigal123 Posted October 25, 2009 Author Share Posted October 25, 2009 If your python code is more than 1 line long you need to return it. import random return random.random() damn.. so easy thanks very much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.