I have a folder organized something like so:
Folder
Diagram
Block1
Block2
Subblock
Block3
I would like to create a foreach loop that only accesses the main blocks (eg block1, block2, block3).
My hope is for something that is generic and not getting all blocks then checking one by one if the names match the expected ones.
My thought is to somehow access Folder.inner_elements and then sort all the Class elements out (which is all the elements I desire), however my attempts so far have thrown errors.
Any ideas would be appreciated. I am new to both Velocity and Cameo, but I’ve tried looking through the documentation of both and don’t see anything specific other than how to access all the blocks.
Julia Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.