Modifying interpolation settings via a script

32 views
Skip to first unread message

William Joel

unread,
Jun 14, 2024, 2:37:56 PMJun 14
to OpenToonz Users Forum
I would like to modify the settings for an existing interpolation using a script and NOT using the function editor.

OneWatt

unread,
Jun 14, 2024, 3:43:25 PMJun 14
to OpenToonz Users Forum
Not sure what kind of script you might have in mind, but (as I've recently learned) you can put figures to drive the interpolation (e.g., desired x,y,z coordinates, etc.) into a text file and then import that file into the function editor (by importing the txt file). 

Of course you could use whatever scripting language/environment you're already familiar with to produce those values, e.g., within a spreadsheet, and then export those values as a txt file for export/import into OT. 

Is this what you're after? 

OneWatt

unread,
Jun 14, 2024, 3:45:10 PMJun 14
to OpenToonz Users Forum
Oops ... sorry. Just read more clearly ... you do NOT want to use the function editor! My oversight!

Just curious: why are you against using the function editor when it is the entry point for digging deeply into customized interpolations? Kind of like saying I want to draw in OT but I don't want to use any brushes ;-)    

William Joel

unread,
Jun 14, 2024, 5:55:19 PMJun 14
to OpenToonz Users Forum
I do not want to use the function editor because I'm doing research that relates to motion curves and how to modify them algorithmically. To do so, I need to modify the slope and rate of change in the slope at various control points.

OneWatt

unread,
Jun 14, 2024, 6:08:48 PMJun 14
to OpenToonz Users Forum
Sounds like a fascinating project! 

I guess if I wanted to use OT in this kind of capacity, I'd return to something like my earlier thought... i.e., set up the algorithm outside of OT and generate the derivative/change in slope at specified control points. Then import that data as x/y coordinates of an object within OT using the file import function. 

(Unfortunately, I cannot steer you clear of the "function editor" since that's where the file/import feature is offered ... or at least that's one place where it appears ... perhaps access to that internal OT program logic is also available through other aspects of the program that are called something else ;-).

Best wishes - sounds like an interesting effort. 

Reply all
Reply to author
Forward
0 new messages