

#if _name_ = "_main_": # only for live edit.It’s been possible to automate Google Sheets via the Google Sheets API for many years and there are multiple Python packages available that wrap this API: there’s gspread, pygsheets, ezsheets, and Google’s own google-api-python-client. node_tree.nodes]īox.prop(ip, "default_value", text=("%s: %s" % (node.type, ip.name))) My_mat = [mat for mat in ifīox.prop(my_mat, "diffuse_color", text="") Objs = [obj for obj in ifĬol_types = # add types as needed In the File tab ensure Auto Execution is checked.Ĭopy script into new text block (ensure the script has an explicit register function note bottom lines). I have the the Register Check box checked and I have the name of the text datablock as cp.py I have also set the preferences to Auto Execute but so far nothing works at all. The final hurdle though is that I want this script to be loaded ready for them so that they don't even have to worry themselves with clicking the Run Script button and hence having to leave the code open to the risk of accidental editing. This script, micraculously given my limited scripting experience, works fine. If _name_ = "_main_": # only for live edit. Layout.prop(vanpaint_colour.inputs, "default_value", text="Van Colour") Layout.prop(postbg_colour.inputs, "default_value", text="Background Colour") Layout.prop(clothing_colour.inputs, "default_value", text="Clothing Colour") Layout.prop(paper_colour.inputs, "default_value", text="Paper Colour")

The only sticking point is that they may need to change the colour of parts of the files so I have put together the following python script which when run allows them to just use colour pickers to change the colours. The idea is that guys in my office who aren't 3d literate can save a logo design as a texture file, then open this Blend file, hit render and it spits out a bunch of images showing off the logo in different scenarios. I have a blend file that contains the following scenes:
