2017-08-08, 22:28
I am sorry if this has been covered I am not sure how to look it up.
I see in many scrpits ppl are passing attributes or info to there script from the skin, up til now I have only used a simple RunScript for what I have been doing and have the actual code linear just doing simple if then checks.
What I would like to do is make my add on actually take advantage of classes and only use certain classes based on arguments set at RunScript
Basically I am hoping someone could guide me in how to do something like
RunScript (script.test, arg1,arg2,...agr5)
Where agr1 will set the class or entry point
Agr 2 thru 5 would be varabiles
How would I decipher that on the python side?
I see in many scrpits ppl are passing attributes or info to there script from the skin, up til now I have only used a simple RunScript for what I have been doing and have the actual code linear just doing simple if then checks.
What I would like to do is make my add on actually take advantage of classes and only use certain classes based on arguments set at RunScript
Basically I am hoping someone could guide me in how to do something like
RunScript (script.test, arg1,arg2,...agr5)
Where agr1 will set the class or entry point
Agr 2 thru 5 would be varabiles
How would I decipher that on the python side?