Thanks, it works!
I have a few questions..
1. `all_data[sel] = {}`, why can't I wrote it as `all_data[sel] = None`? I
tried and I got an error that states ''NoneType' object does not support
item assignment'
I asked this because since I have no values to append in the first place,
wouldn't using None be more practical? Or, do correct me if I am wrong,
since we are dealing with dictionaries, initializing an empty dict is then
the correct way?
2. Do I still need to have `attr_data = {}` still needs to be placed under
the `for time ... end_frame +1))` line? Would that not cause it to be loop
continuously? P.S, Again, I tried placing it outside of the `for` statement
as initially seen in my post, and it works too..
3. This is slightly unrelated but what can I do to refine writing logic
process? There are times in which I seem to get it (but it is in a big
chunk where it can be further refine), and times like this, where I am
unable to..
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/ec6429bb-8cad-4509-8485-83974dfa3e87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.