|
Structure Tools TroubleHi everyone, This little follow-up to an earlier post on the Structure Tools page. I'm still trying to sort out an issue where structures are messed up when written to and loaded from file. I must be missing something obvious! In the following example, the user input written to disk (key: "S") and read back (key: "L") do not match. I might very well be mistaken on this one, just starting working with structures. Sorting doesn't seem to help me, either. Thanks! |
Try this... for some reason which I don't get the .plist file gets saved with the components out of order (component_1, component_3 / 4 /11)whatever. Pulling it back out based on compnent name seems to do the trick.
hope this helps... jd
There are parts of this discussion in other threads so I think I will paste the links here!
http://kineme.net/QuartzComposerPatches/StructureTools/0.1#comment-8496
http://kineme.net/Discussion/ProgrammingQuartzComposerPatches/arrayselem...
Thank you,
You are right, there is a way to retrieve indexed structure as if they were keyed structures. It could even be incremental by generating the string "component_" + increment.
However this seems a bit of overkill! :)
I would think there is a way to put them back in order using the structure sort patch, but I have no idea of how to fill in the sorting descriptor field. So far i can get no particular result! And the fact that component numbers do not include zeroes is a mess, since alphabetically component_10 would be sorted between component_1 and component_2.
Named structure maker, no other way round?
If there was a 0 in front of the 1, so that each number was two digits in length, what would happen when you get to 100 listings?
Hey Georges,
It depends on how many fishes are swimming in your aquarium… Guess I should have written "a bunch of zeroes" to be precise! ;-)