Eyeon Talk:Script/Reference/Libraries/eyeon/writestring
From VFXPedia
This works fine when I read a .comp from disk, but if I do something like fusion:GetCurrentComp and try this, I get nil. What's the proper way to get something out of a comp that's open that looks like the contents of a .comp file? --Chad 15:58, 19 April 2010 (EDT)
- Not surprising that you got nil, since GetCurrentComp() gives you a reference to the comp object, so that you can call more functions off it (eg. comp:GetToolList()). It's not a table containing a saved/serialised version of the comp. To get that you could use comp:CopySettings(), or save the comp to disk (using comp:Save()) and read it back in (using eyeon.readstring). For individual tools you can call tool:SaveSettings().
- Super! Thanks. Sorry I couldn't find that on my own, dunno how I missed that, but that's just what I need. --Chad 14:12, 21 April 2010 (EDT)