Metasequoia BBS

| New message | Normal | Tree |
Status
Tag
Keyword
[9766] metasequoia script editor "deleteObject" not work / Tga
[Question] Response
When I used this example, the function MQSystem.getDocument().deleteObject(x) didn't delete the cache of objects that every time I run the code, the number of objects are accumulated and make the window lagged.
Is it possible to fix this problem?
Is there a code similar to AllObject.Clear()?
------------------------------------------------
import random
doc = MQSystem.getDocument()
out = MQSystem.println

for x in range(0, MQSystem.getDocument().numObject):
    MQSystem.getDocument().deleteObject(x)


def p(*args):
  if len(args)==0:
    MQSystem.println("")
    return
  for arg in args:
    MQSystem.println(str(arg))

#drawCube_def_metal.py

Show more...
2023-07-03 01:48

Show the middle 3 messages.

[9771] Re: metasequoia script editor / Administrator
It seems that you have already found a solution, but in any case there is a slight problem with the update process in the deleteObject() function.
We will resolve this issue in the next release.
2023-07-05 12:40
Title
Name
Mail address for renponse notification A mail will be sent when the response is written. This address will be not shown after you post.
Tag Please select from a preset or input arbitrary comma-delimited tags.
Message

Now file attachment is not available temporarily.