Open TontonTremblay opened 3 years ago
You appear to be using ViSII instead of nvisii. Does this issue occur with nvisii?
Yes this is on nvisii.
On Fri, Jun 11, 2021 at 19:13 Nathan V. Morrical @.***> wrote:
You appear to be using ViSII instead of nvisii. Does this issue occur with nvisii?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/owl-project/NVISII/issues/110#issuecomment-859982871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABK6JID44SDNJTGK353XEN3TSK7C5ANCNFSM46RY4DYA .
This problem is caused by returning a list of entities that is too large. Work around for now is to load the obj file as a text file and create the list from the objects in the file.
# find the entity names
with open(obj_to_load) as f:
lines = f.readlines()
entity_names = []
for line in lines:
if line[0] == 'o':
name = line.split(' ')[-1].replace("\n","")
entity_names.append(f"{name}_{name}")
# print(entity_names)
nvisii writes a scene from an obj file as its name twice.