Hi all,
In a couple of my recent scripts I have come up against a problem while trying to get data by looping through the ItemInfo slider. I don’t think this is machine specific. The two sliders that have given me problems are those for Tools and Materials; the others may give similar problems but I’ve not tested them.
The problem only arises when using the IFreeze command. The code might be something like this:
[IFreeze,
[Loop,75,
[ISet,Material:ItemInfo,n+1]
[VarSet,Mat(n),[IGetTitle,Material:ItemInfo]]
,n]
]
After running this bit of code I get a slowdown in ZBrush operations. Selecting a new material won’t update the pop up and if I try to change the IColors in the Preferences palette ZBrush will sometimes freeze up altogether.
Take out the IFreeze and all is fine. Reduce the loop to below about 60 and all is fine.
It seems that this is to do with how the interface updates (or doesn’t). If I split the operation into three loops of 25, each with its own IFreeze, then there is no problem.
I mention the problem mainly to alert other scripters; if anybody has come across similar issues then it might be useful to post them here.