User:Sybren/SfA

= Scripting for Artists ideas =

This is just a page to collect some ideas for Scripting for Artists. No promises.

Call for suggestions: https://twitter.com/sastuvel/status/1241706841320677376

6: Working with Collections in 2.8x

 * Are there any changes or new things you can do in 2.8+? Did you teach how to create multiple render layers in a specific folder?
 * &mdash; pipeliner (@cgpipeliner)

Script | YouTube | Cloud

TODO: excluding collections from the scene via `C.view_layer.layer_collection.children['SfA'].exclude = True`

7: `for` vs `while`

 * I see you have &quot;For&quot; loops. When is it better to use &quot;While&quot; loops instead? That might be a cool topic 🤓
 * &mdash; Rodger (@RDavis3D)

Script | YouTube | Cloud

8: Your own Operator
No direct questions about this, but IMO a good next step.

Script | YouTube | Cloud

9: Turning your code into an add-on
No direct questions about this, but IMO a good next step.

Script | YouTube | Cloud

10: Creating a UI: menus and buttons

 * I would like to know how to create simple ui menus. Also if there’s a way to automate rendering multiple cameras from the same scene, that would be great for a project I have.
 * &mdash; João Morgado (@_MrJomo)


 * Is it an idea to show how to build an addon with an UI where the user can set values?
 * &mdash; nocerasparita (@nocerasparita)

Script | YouTube | Cloud

11: Custom Properties
Script | YouTube | Cloud

12: Procedurally build a scene

 * A python script that procedurally builds a scene. This script should cover creating objects, adding to collections, setting view layers, add basic animation. :)
 * &mdash; Satish Goda (@satishgoda)

script | YouTube | Cloud

13+: Roast my Add-on
Suggested in Pablo's Blender Today livestream.


 * First roast: call on Twitter | Script | YouTube | Cloud
 * Second roast. call on Twitter | YouTube
 * Nature Clicker by OlePost Twitter | GitHub. Started coding recently, plenty to roast.
 * Their demo video on YouTube

Possible add-ons to roast:


 * Gizmo Size by -L0Lock- Twitter | GitHub. Simple, two operators to increase/decrease a user preference.
 * Collision Helpers by Matthias Patscheider Twitter | GitHub. More complex, multi-file and plenty to roast.
 * Blender-Render-Match-VSE-Strips by Patrick W. Crawford Twitter | GitHub.

Planned Videos
These are videos that are either currently in production, or that I want to make in the coming weeks/months. No promises, though!

Understandable Code
Cognitive complexity and other things to make your code easier to understand.

Procedurally build a shader node tree

 * A python workflow that shows how to build shader with nodes like cycles but using Python! Can work for Animation Nodes and Sverchok as well. What to think when connecting disconnecting nodes etc with bpy.
 * &mdash; Blender Sushi Guy (@jimmygunawanapp)

Automated USD export

 * something like an automated USD exporter maybe
 * &mdash; pipeliner (@cgpipeliner)

Creating a USD file for every object in the scene, then creating the layers of USD wrappers that Pixar also have in their example files. Boring work, really good for scripting.

Procedurally create objects & meshes

 * I personally would like to know more about making simple addons and also anything related to randomization, procedural creation of objects...
 * &mdash; Lopo Isaac (@lopoisaac)


 * what about mesh creation from calculated points.
 * &mdash; Mike Webster (@mudumat)

Procedurally draw with Grease Pencil

 * can you explain how to draw greasepencil pictures with python
 * &mdash; Momotron2000 (@momotron2000)

Binding Hotkeys to Operators

 * How to add a hotkey for the Studio Light rotation.
 * &mdash; 3Rton (@3Rton93)