Adding Text on Python Import

Adding Text on Python Import

Anonymous
Not applicable
904 Views
2 Replies
Message 1 of 3

Adding Text on Python Import

Anonymous
Not applicable

Hello Guys

 

Not sure if this is possible, I am trying to automate some things and one of them is adding text to a text node via a python script, I have this

 

import flame


schematicReels = [ '100' ] #create/name schematic reels
shelfReels = [ 'Extra_Data', ] #create/name shelf reels



flame.batch.create_batch_group( 'Sofia_Batch_01',
start_frame = 1001,
duration = 5,
reels = schematicReels,
shelf_reels = shelfReels )


flame.batch.go_to()

clip1 = flame.batch.import_clip("/Users/craigroy/Desktop/100.MOV", "100")
clip1.name = "Sofia_Clip_01"


text = flame.batch.create_node("Text") #store the newly created node in a variable called comp
writeFile = flame.batch.create_node("Write File") #store the newly created node in a variable called writeFile

 

flame.batch.connect_nodes(clip1, "Result", text, "Back")
flame.batch.connect_nodes(text, "Result", writeFile, "Front")

flame.batch.organize()

 

Which is perfect but I want to add text and positioning in the operation .. I have looked at the modules and API docs and there is nothing jumping out, anyone able to do this ?

 

Thanks in advance

0 Likes
Accepted solutions (1)
905 Views
2 Replies
Replies (2)
Message 2 of 3

fred.warren
Autodesk
Autodesk
Accepted solution

Hello helloUP7PN,

 

It is not possible to manipulate the Text settings using the Python API. The only option available would be to save a text setup template and use the load_node_setup function to load it in Python.

 

You can submit a feature request over at flamefeedback.autodesk.com if you would like to have the possibility to manipulate the text settings from the Python API.

 

Please accept this as a solution if you feel your question has been answered.

 

fred


Frédéric Warren
User Experience Designer
0 Likes
Message 3 of 3

Anonymous
Not applicable

Superstar thank you for the reply - will do

0 Likes