Quantcast Avisynth: Conditional Variables? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
03-27-2004, 10:15 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Hi: How can I set conditional variables?

Something like:

c = (a == x) ? b = 1 : b = 2

I'm trying in this way but I got a message "insufficient memory..."
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
03-27-2004, 10:56 PM
Peter1234 Peter1234 is offline
Free Member
 
Join Date: Feb 2003
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Prodater64,
This use to be part of Kag's script:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2

I do not know if that helps.
Reply With Quote
  #3  
03-27-2004, 11:01 PM
Peter1234 Peter1234 is offline
Free Member
 
Join Date: Feb 2003
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Prodater64,
I have never done this, but I think you need your b= at start of line.
Reply With Quote
  #4  
03-27-2004, 11:25 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Peter1234
Prodater64,
This use to be part of Kag's script:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2

I do not know if that helps.
Thank you, this one sentence give me the key!!!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Conditional User Defined Functions? Prodater64 Avisynth Scripting 12 03-31-2004 11:38 PM
Avisynth: Question on conditional operator kwag Avisynth Scripting 16 06-18-2003 10:29 PM




 
All times are GMT -5. The time now is 08:18 AM  —  vBulletin © Jelsoft Enterprises Ltd