Import TOX

Hi friends! How can I import TOX (visuals compositions) like replicator COMP does it? *.tox files are a differents compositions although they have operators in common. I attached a exemple here: inlav.net/index.php/software/) I want import differents toxs from folder DAT… Thanks! :wink:

Your call backs DAT should have something like the following:

[code]def onReplicate(comp, allOps, newOps, template, master):

for c in newOps:
	#c.display = True
	#c.render = True
	#c.par.display = 1
	#c.par.clone = comp.par.master
	
	c.par.externaltox 	= template[c.digits, 'path']
	c.par.reinitnet.pulse()
	pass

return[/code]

The idea here is that you’d set the path to the external tox, then reinitialize the component. It’s worth keeping in mind that unless you’ve been careful about your optimization this could end up slowing your project down.

1 Like

OH yes!!! It Works!!! Thanks Matthew!! you are the best!!! Genius!!! :slight_smile: Thanks!!