VRED2021 import scrip concatenates to existing, rather than replacing

VRED2021 import scrip concatenates to existing, rather than replacing

Anonymous
Not applicable
341 Views
1 Reply
Message 1 of 2

VRED2021 import scrip concatenates to existing, rather than replacing

Anonymous
Not applicable

Hi, Ive noticed that importing a python script to vred will simply concatenate that script to the current script in the script editor. This must be a bug. 

 

I have a 2k line script that ive imported several times for testing

the script in the script editor is over 10k lines and has multiple instances of the text that is in my script

 

0 Likes
342 Views
1 Reply
Reply (1)
Message 2 of 2

markus_keller
Autodesk
Autodesk

Hi,

I think the way this currently works is by design. File->Import always merges everything that is loaded with the existing scene.  But I agree that this is not ideal for your usecase. 

Since you seem to externally develop your script I'd suggest updating the script editor with copy&paste instead of using File->import.

If you don't need your script in the editor, you could also use the 'load()' command in the VRED console which will load and execute your script whithout updating the editor (this was changed for 2021).

 

Other than that I think we maybe should add a file menu to the editor where you could update a script separately from the rest of the scene whithout having to use copy&paste.

 



Markus Keller
Principal Engineer
0 Likes