Example #1
0
def proxyReset():
	args=ls()
	for arg in args:
		substring=str(aw_proxyScripts.removeEnding(arg))
		substring=substring[0:-1]
		geo=(substring + "_GEO")
		binproxy=(substring + "_binproxy")
		setAttr((binproxy + ".write_geometry"),
			0)
		disconnectAttr((geo + ".message"),(binproxy + ".geometry"))
Example #2
0
def connectProxies():
	args=ls()
	for arg in args:
		path="/jobs/trombaJalisco_5401779/build/build_sequence/maya/export/andres-w/geo/renderProxy/"
		substring=str(aw_proxyScripts.removeEnding(arg))
		substring=substring[0:-1]
		geo=(substring + "_GEO")
		binproxy=(substring + "_binproxy")
		print "Working with objects: " + str(arg) + " for binproxy: " + binproxy + " and geometry: " + geo + "\n"
		select(r=(geo + "*"))
		copies=ls(sl=1)
		for copy in copies:
			setAttr((str(copy) + ".miProxyFile"),
				"",
				type="string")
			setAttr((str(copy) + ".miExportGeoShader"),
				1)
			connectAttr((str(copy) + ".mentalRayControls.miGeoShader"),
				force=(binproxy + ".outValue"))
Example #3
0
def makeProxies():
	args=ls()
	for arg in args:
		path="/jobs/trombaJalisco_5401779/build/build_sequence/maya/export/andres-w/geo/renderProxy/"
		substring=str(aw_proxyScripts.removeEnding(arg))
		substring=substring[0:-1]
		geo=(substring + "_GEO")
		binproxy=str(createNode("mip_binaryproxy",
			n=(substring + "_binproxy")))
		print "Working with objects: " + str(arg) + " for binproxy: " + binproxy + " and geometry: " + geo + "\n"
		setAttr((binproxy + ".object_filename"),(path + substring + "_binprox.mi"),
			type="string")
		setAttr((binproxy + ".write_geometry"),
			1)
		#defaultNavigation -ce -d ($binproxy+".geometry") -source $geo;
		connectAttr((binproxy + ".geometry"),
			f=(geo + ".message"))
		setAttr((str(arg) + ".miExportGeoShader"),
			1)
		#defaultNavigation -ce -source $binproxy -destination ($arg+".miGeoShader");
		connectAttr((str(arg) + ".mentalRayControls.miGeoShader"),
			force=(binproxy + ".outValue"))