Ungroup All Items with JavaScript, Illustrator CS6


i'm working on pretty complicated illstrator files. each file has 20 or layers, , many of layers have multiple sublayers. each of sublayers contain many grouped items, , grouped items contain additional grouped items. , on. there's literally hundreds of groups in each file, , don't want manually ungroup them.

 

so i'm writing attempting write javascript ungroup grouped items , keep them inside correct layer. i'm new javascript , new-ish concept of recursion. idea loop recursively through layers, loop recursively through grouped items, move items above grouped items. seems other people have demonstrated on forum (or @ least how understood it). i'm posting screenshot of i've written far. have ungroups many groups, errors out eventually. replies, ideas, or references appreciated. thanks.

 

screenshot.jpg

 

i think find resources in illustrator scripting forum.

 

http://forums.adobe.com/community/illustrator/illustrator_scripting

 

do search "ungroup" or similar.

 

http://forums.adobe.com/message/2077311#2077311



More discussions in Illustrator


adobe

Comments

Popular posts from this blog

Thread: Raspberry pi wont get past the login menu!!!

Illustrator CS5 javascript JPEG export 300 DPI & max quality