ListProjectTabs() and readProjectTab() in Modern Codea

Is there an equivalent to listProjectTabs() and loadProjectTab() in Modern Codea?

I am using a version of CodeaUnit that uses loadProjectTab() to find test functions, but I couldn’t find an equivalent in the Modern documentation. I don’t mind calling test functions some other way, but I was trying to update CodeaUnit to have full functionality in Modern projects.

Love all the updates by the way! Thank you to the Codea team!

1 Like

We want to move away from this towards string.read and string.save — you can reference the tab with asset.TabName

Thanks! Is there any way to iterate through the existing tabs without knowing tab names?

Here is how you can do it:

    for _,v in pairs(asset.all) do
        if v.ext == "lua" then
            print(v)
        end
    end
1 Like

Albert a long time ago o asked if anyone was interested in some kind of tutorial on Craft shaders and you said you were and then I never made one. Are you still interested in them? I haven’t made a tutorial but I’ve had ChatGPT and Claude make lots of them by now and I think we could answer any question you had.

Also I posted somewhere here a full documentation of how craft shaders work, that Claude wrote. It’s wrong in some places though. :man_shrugging: