Coder Social home page Coder Social logo

touchdesigner-save-external's Issues

Colors DATs without External File par

This Tox is a lifesaver, but the current version is a bit overzealous with coloring DATs. I found that it looks for if any DAT's 'file' parameter doesn't equal an empty string, then its added to the collection of "externalized" DATs. But all DATs without a file parameter at all would fail that test.

I adjusted to the following and it worked for me. Was the exclude list to prevent this from happening?

def find_all_dats(self):
		external_dats = []
		exclude_list = [
			'eval', 
			'keyboardin', 
			'opfind', 
			'folder', 
			'examine', 
			'select',
			'udpout',
			'udpin',
			'script',
			'null',
			'info']
		for eachOp in root.findChildren(type=DAT):
			if eachOp.type in exclude_list:
				pass
			
			else:
				filepar = eachOp.par['file']
				if filepar is not None and filepar.valid:
					if filepar != '':
						external_dats.append(eachOp)
				else:
					pass
		return external_dats

The background color flash doesn't show up when displaying a TOP in the background.

A naive implementation could be:
`

	par_color 			= '{}*'.format(parColors)
	over_ride_color 	= parent().pars(par_color)

	
	# disabled top backdrops for a moment
	ui.panes[0].showBackdropTOPs = False  

	# change background color (0.1, 0.105, 0.12)
	ui.colors['worksheet.bg'] 	= over_ride_color
	
	# reenable the background tops in the delay script
	delay_script 				= "ui.colors['worksheet.bg'] = args[0]\nui.panes[0].showBackdropTOPs = True"
	
	# want to change the background color back
	run(delay_script, self.Defaultcolor, delayFrames = self.Flash_duration)		

`

Cancelling initial tox save shows the wrong error message

Steps to reproduce:

  • Create a new tox
  • hit ctrl-w
  • choose "this comp only"
  • choose cancel

An error message for another application state appears. "Failed to save tox - It looks like there is an existing tox at this location"

Additional Info:
touchdesigner-save-external: version 1.1.0

TD build: 2021.16410

Extensions not externalizing?

Hi - loving this tox. But when I go and make a new component, with a new extension, tag it accordingly, and save, the corresponding text dat is not externalizing. Am I missing a step here or is that feature not currently supported?

thanks!
b

line 100

save single component and not parent currently broken

ctrl + w

Integrate ctrl + w change as save mechanism

Move away from the built-in save elements, and instead use a dedicated hot key combo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.