Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

stop cooking with script

Still a little green? Ask your beginner's questions here

stop cooking with script

Postby delray » Wed Aug 28, 2013 4:08 pm

Hi All,
I am trying to optimize a performance patch and there are a few instances where stopping cooking of some TOPs and COMPs (or should I say set the bypass flag on/off?) selectively would be very handy. I suspect its a script. Wondering if someone can helpout, or point me in the right direction.

Below is a sample patch for toggling a noise TOP - I had been doing this by using a level top, but of course the noise is still generating, so Id like for it to be on and off.

hope that is relatively clear - and python would be a bonus since I'm on 088.
thanks...
Attachments
stoppcookin.toe
(4.71 KiB) Downloaded 131 times
User avatar
delray
 
Posts: 139
Joined: Thu Jun 30, 2011 9:38 am
Location: Montreal, QC

Re: stop cooking with script

Postby elburz » Wed Aug 28, 2013 6:04 pm

Sorry, can't check out your project where I am now but:

How to bypass:
op('OPNAME').bypass = True
op('OPNAME').bypass = False

Cooking flag:
op('OPNAME').allowCooking = True
op('OPNAME').allowCooking = False

Other flags can be found under "Common flags" section here:
http://www.derivative.ca/wiki088/index. ... COMP_Class
--
Elburz Sorkhabi
Creative + Technology
nVoid Art-Tech Limited
http://nvoid.com
elburz
 
Posts: 1971
Joined: Fri Jun 01, 2012 6:55 pm
Location: Toronto, Canada

Re: stop cooking with script

Postby delray » Thu Aug 29, 2013 11:35 am

Brilliant - thanks elburz. took me a few minutes to figure out the chopexec DAT (duh, gotta have that "run()" line!)

thanks - this will be a huge boost...
m
User avatar
delray
 
Posts: 139
Joined: Thu Jun 30, 2011 9:38 am
Location: Montreal, QC

Re: stop cooking with script

Postby raganmd » Thu Mar 13, 2014 2:28 pm

This is brilliant!
raganmd
 
Posts: 1198
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: stop cooking with script

Postby brendamcdonald » Mon Apr 23, 2018 7:46 am

elburz wrote:Sorry, can't check out the Instapot project where I am now but:

How to bypass:
op('OPNAME').bypass = True
op('OPNAME').bypass = False

Cooking flag:
op('OPNAME').allowCooking = True
op('OPNAME').allowCooking = False

Other flags can be found under "Common flags" section here:
http://www.derivative.ca/wiki088/index. ... COMP_Class


I looked everywhere for this script. Finally, problem solved! Thanks a ton
brendamcdonald
 
Posts: 1
Joined: Mon Apr 23, 2018 7:40 am


Return to Beginners

Who is online

Users browsing this forum: Bing [Bot] and 7 guests