![]() The code you enter is executed as a function, and so the value you want to return to the control should be returned with a return statement.Ĭode: Select all : x = math.random(0,100) return xYou can also write standalone scripts with optional user interfaces, and Fuses which are user-created tools and modifiers. In Fusion expression fields you can prefix the line with a colon : and then write Lua. Which get quickly out of hand as the expression becomes complicated, dense and limiting in what can be expressed. # various contextual information, like objects and properties can also be accessed and used # time, sin are available built-in functions ![]() Ideally we should be able to write a function in LUA or Python or Javascript that returns a value that becomes the value of the parameter.įor example, say for the zoom parameter of a Node, Whatever I have seen so far, expressions allow a small text entry field and expects a single line "Expression" - which becomes more and more dense, unreadable, error prone and editable. KeyFrames - are simpler mechanisms that are needed where things are discrete and not amenable to algorithmic expressions. Question: Is there a way to use the supported scripting language LUA or Python, for writing Expressions? with more streamlined syntax and full power?Īny pointers? I have searched quite a bit so far and not found any pointers to this topic.Įxpressions are great mechanism to "specify/express" values for parameters algorithmically where ever possible - the central crux of programming and automation. Let me know the right place to post this - as I think it is not just related to Fusion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |