pechart
(Lot of questions today, sorry for bothering.)

How can I check the length of an array? I'm sure there's a simple way, but I can't figure it out.

I'm asking, because I'm using some arrayBlends and they need arrays of equal length, of course. I thought that my counts where equal, but it seems that I made a mistake somewhere in the network.

Thanks!
Reply 0 0
pshipkov
size(`getAttr node.attr`)
Reply 0 0
pechart
That's easy, thanks.
Reply 0 0
sloggo
Hey, is there a non-getAttr way of doing it? Im trying to use soup to build an asset that will need to be referenced/imported and a whole lot of getattrs will be a pain to keep up to date in different files
Reply 0 0
pshipkov
yeah, you can use python api calls to replace get/set attribs.
on average that is 150% faster.
Reply 0 0
Reply