VRED Template

VRED Template

MattH_Work
Advisor Advisor
1,136 Views
8 Replies
Message 1 of 9

VRED Template

MattH_Work
Advisor
Advisor

Is there a concept of a Template file in VRED (similar to Standard.IPT, Standard.IAM etc in Inventor)

I would like to have a number of Vaiant Sets, Cameras, Scripts etc avaialble to all VRED scenes I create.

If Templates dont exist, what are my options?

 

Cheers

 

MattH


MattH
Product Design Collection 2027
Vault Pro 2027
0 Likes
1,137 Views
8 Replies
Replies (8)
Message 2 of 9

marcus_fritzen
Autodesk
Autodesk

Hi Matt,

currently there is no such template file functionality in VRED. However, you could set up such a scene, save it as vpb and load it everytime you create a new scene (which also happens on startup) by adding a load(filename) Python call to the script in the preferences.

Cheers,

Marcus



Marcus Fritzen
Principal Engineer
0 Likes
Message 3 of 9

MattH_Work
Advisor
Advisor

That process works really well, New scene is created from my Template.vbp but has no name, therefore on first save I can decide where to save it, and there is no chance of overwriting my template.

However

I can open the Template in its own right without issue (which indicates the file is not corrupt) , but when opening via the Preferencess script VRED crashes 90% of the time)

 

Regards

 

MattH


MattH
Product Design Collection 2027
Vault Pro 2027
0 Likes
Message 4 of 9

marcus_fritzen
Autodesk
Autodesk

Ok, this shouldn't happen. Could you please provide the crash report files? They can be found in the temp folder under VREDPro/log.

Thanks,

Marcus



Marcus Fritzen
Principal Engineer
0 Likes
Message 5 of 9

MattH_Work
Advisor
Advisor

See attached ZIP file for logs

 

Regards


MattH
Product Design Collection 2027
Vault Pro 2027
0 Likes
Message 6 of 9

Christian_Garimberti
Advisor
Advisor

Testing this post to answer a recent post, i found i think the same problem @MattH_Work found.

Adding a "load" line in the preferences, in the script section, seems to work the first time, but after some clicks on the "new" button , the viewport freezes and i got some errors in the terminal.

 

vrScenegraph::validateDestroyedDefaultEnvironment: studio material ref count (1) bug, cleaning up!

 

And closing and restarting Vred, make it crash, or better, it doesn't start anymore.

 

Having a method to load something as a template could be very useful to manage standards and centralized settings, so maybe @marcus_fritzen, you can watch into this.

 

Best

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Message 7 of 9

MattH_Work
Advisor
Advisor

VRED 2024 still crashes when adding the 'Load' instruction to the script


MattH
Product Design Collection 2027
Vault Pro 2027
0 Likes
Message 8 of 9

MattH_Work
Advisor
Advisor

Where does the 'script' used withing preferences actually live, is it a file on the hard drive somewhere that we can edit via notepad to remove the 'load' command


MattH
Product Design Collection 2027
Vault Pro 2027
0 Likes
Message 9 of 9

Christian_Garimberti
Advisor
Advisor

Hi, script section is in the preferences.xml file you can find in %appdata%\vred<Pro or Design>\ folder.

But it is not readable, i suppose it is an encoded string.

The key is "python script"

The fastest way to reset is to delete the key. At the first Start Vred recreate the key with the default value.

Best

Chris

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes