[Code] material.delete
-
@tig said:
The 'face.copy' is simply 'group.copy' - the group was called 'face' !!!
Ah. didn't see that. Thought it maybe wes undocumented.
@tig said:
You can embed a def locally within another def - useful if you want to 'loop until' etc.
That sure is. Will have to remember that.
I think this method, and the layer version would fit well into the Skx library. Would you mind if this was included? I can add it to the repository for you if you don't want to bother with setting up Mercurial.
-
Just had a though. What happens if this method is called from another method that already has done a model.start_operation?
can operations be nested? Or will it interrupt the previous? Maybe one of the transparency flags (SU7 only) can be used?
-
That's a good point, Thom. I'm not sure start_operation belongs in specific methods.
I asked somewhere here if nesting start_operations was allowed, or what happens if they are nested. It's possible to write some "guards" for start_operation that prevent nesting - which may be interesting to do just to see what is really happening with all the scripts you have already installed.
-
I'm wondering if trans or prev_trans flag can be used to inject these types of methods. But I don't fully understand the difference between the two. And I'm also unsure of the warning for trans apply to prev_trans.
-
@unknownuser said:
...
I think this method, and the layer version would fit well into the Skx library. Would you mind if this was included? I can add it to the repository for you if you don't want to bother with setting up Mercurial.Please add them for me...
-
As Jim says, perhaps best to remove the start/commit_operations unless 'we' can work out how best to 'transparencify' them... Advice welcome...
-
Ok. I'll add it to the Skx. Thanks for sharing the snippet.
After this week I'll have some time to do some experiment with start operation. It'd be interesting if we could find a best practice.
-
v1.3 now uses empty temp groups without detriment and so must be a little quicker too ... http://forums.sketchucation.com/viewtopic.php?p=166985#p166985
-
v1.4 - now has operation properly removed ! ... viewtopic.php?p=166985#p166985
-
Use v1.2: fixed an array bug.
http://forums.sketchucation.com/viewtopic.php?p=166978#p166978
Advertisement