Credits: Credits and thanks to Lewis Saunders for the ‘copy to clipboard’ cool QT trick and Franck Lambertz for the case2 script (from a timeline)
Two scripts: one for selecting a clip or sequence on a reel or in the media … Read more
bits & ideas.
Credits: Credits and thanks to Lewis Saunders for the ‘copy to clipboard’ cool QT trick and Franck Lambertz for the case2 script (from a timeline)
Two scripts: one for selecting a clip or sequence on a reel or in the media … Read more
Selected a node a print: the actual value of each attribute, limits, type …
import flame mynode = flame.batch.current_node.get_value() print '******** ', mynode.name, ' ********' print '' # mynode_attr will be a list mynode_attr = mynode.attributes # sort the list mynode_attr.sort()… Read more
Options to select newly created nodes.
Option 1: create a node and set it as selected (True)
import flame # create a node mynode = flame.batch.create_node("Mux") mynode.name = "node1" wanted_node = flame.batch.get_node("node1") wanted_node.selected = True print wanted_node.name
Option 2: create 2 nodes … Read more
Author: Stefan
Created for Flame 2019.2
GNU License
– Creates a new BatchGroup and import all (or only selected) cg passes for a given element in a given shot.
– Creates a Flowgraph to rebuild the Beauty Pass from multi passes … Read more
Author: Stefan
Version: 01b
Version: 2020 and up?
Automate the creation of a VFX Shots folders structure:
– Create a VFX library like VFX_ABC
– Create a folder per shot, like ABC_0010
– Create subfolders as needed, based on … Read more
Author: Stefan
Version: Alpha 0
Deprecated.
Mac only (not even tested on Linux)
You need to have PySide2 or PyQt5 installed to run the app.
This is only a GUI, no actions attached.
The layout is created in QT Creator, then … Read more
CUA_append_batch
Author: Stefan
New version with more options and view modes
This script will show up in the main menu (bottom right) and you can assign it a shortcut. I use shift+cmd+number
1) Copy some your useful (sub) setups in a … Read more
A simple working example and a link to the official documentation
# using *args and **kwargs in functions # 2018/10/24 # Official documentation: https://docs.python.org/2/tutorial/controlflow.html#more-on-defining-functions # Python Bits & Pieces # Stefan Gaillot # xenjee@gmail.com def args_and_kwargs(my_var, *args, **kwargs): print "a… Read more
A few example about the split function.
############################# print '-' * 30 my_path = '/Users/stefan/XenDrive/__WORK/PROJECTS/PULSE/18P520_python/shots/VFX_0010/3d/camera/Chair.fbx' print my_path split_my_path = my_path.split('/')[1:3] print split_my_path print '-' * 30 ############################# string01 = "Line1-abcdef \nLine2-abc \nLine4-abcd" print string01.split() print string01.split(' ', 1) print '-'… Read more
A few examples about the join() string method.
code:
''' From https://www.programiz.com/python-programming/methods/string/join The syntax of join() is: string.join(iterable) The join() method takes an iterable - objects capable of returning its members one at a time. Some of the example of… Read more
update: 2021/12/29
Things have changed and it’s now much easier to add hooks to your Flame install.
Simply copy them in /opt/Autodesk/shared/python and restart flame.
Starting with Flame 2022, Flame hooks need to be python3.
I haven’t updated any of the … Read more
Author: Stefan
Playing around with displaying sockets and connections infos.
Just a starting point.
Either paste the code or open the script in the console then run it and look at the prints (console and shell). Add more prints as you … Read more
Author: Stefan
update: 2019/02/17
Flame 2019.2 and up (pyside2)
A little UI to type in the node you want to add.
This first version just adds the node ‘loose’ in the schematic, no auto-connect.
It shows up in the Main Menu … Read more
First manually add an action node to a batch schematic, then select it and run the console script
code:
import flame # Use the currently selected Action Batch node action = flame.batch.current_node.get_value() # AVAILABLE NODES in action print… Read more
As the title says, simply prints a list of all available nodes in batch.
import flame print 'AVAILABLE NODES IN BATCH: ' print '' for nt in flame.batch.node_types: print nt
Type in the console input field.
Minimalist code that asks you to type in some input info that can be later used in your script.
Type words only separated by spaces, without any punctuation.
code:
import flame typed_in… Read more
Author: Stefan
Beta version.
Old stuff
Download the package from there:
https://github.com/xenjee/flamepy_sg
From the README file:
The idea is that the flame tools package might contain files that we don’t want Flame to even bother looking at, like yaml or txt … Read more
Create a batch to rebuild the beauty pass from multi passes CG renders, for Vray render passes. Flame 2019 and up.
Author: Stefan
This is incomplete as you would need to have a similar project structure or naming convention and might … Read more
Batch Nodes Selections:
Save and load (frame) selections of nodes in batch.
A tool to save and load sets of nodes in Batch, and trigger other custom actions. It uses a QT Gui (window) and uses the yaml python module (included) … Read more
You must be logged in to post a comment.