Page 1 of 1
					
				Create new expressions within script
				Posted: 02 Dec 2014 12:49
				by tmjorud
				Hi,
Is it possible to create new expressions within a script? I think I read something about this topic somewhere else, that there was some kind of undocumented method available for creating new objects on the fly? Is this still available?
			 
			
					
				Re: Create new expressions within script
				Posted: 04 Dec 2014 00:52
				by ndivuyo
				for new expressions you can use  'decl'
but then you said new objects, which one??
decl test;
or
decl test = something;
			 
			
					
				Re: Create new expressions within script
				Posted: 04 Dec 2014 03:41
				by Macciza
				Hi
Yes you can create new expression with the decl keyword , however they are restricted in there lexical and temporal scope to the script itself, and its operations . . 
You cannot create external expressions as such; there was a function (createobject()) that allowed creation of objects programatically but it is currently deprecated, (though it may be reinstated at some point when fixed)
Hope that helps
			 
			
					
				Re: Create new expressions within script
				Posted: 04 Dec 2014 19:49
				by tmjorud
				Thanks for the replies 

 I was referring to external expressions. The createobject() is what I was looking for, but I understand that it is deprecated for now.
 
			
					
				Re: Create new expressions within script
				Posted: 02 Apr 2015 01:09
				by ndivuyo
				oh, how I'd love a createobject()
canvas in the meantime
			 
			
					
				Re: Create new expressions within script
				Posted: 03 Apr 2015 21:50
				by Phil999
				ndivuyo wrote:oh, how I'd love a createobject()
yes, but only together with a destroyobject(). 

 
			
					
				Re: Create new expressions within script
				Posted: 04 Apr 2015 10:12
				by Softcore
				Phil999 wrote:ndivuyo wrote:oh, how I'd love a createobject()
yes, but only together with a destroyobject(). 

 
Indeed!
 
			
					
				Re: Create new expressions within script
				Posted: 05 Apr 2015 17:38
				by ndivuyo
				createamazinglayout(x,y,simplicity)
			 
			
					
				Re: Create new expressions within script
				Posted: 05 Apr 2015 20:27
				by Softcore
				hahhahahaha, we wish it was that simple!