Message 1 of 3
JumpViewpoint not working - script python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
I run a cmd startup vred with script attached to it. Script goes in something like
I e "\\Autodesk\Vred\something.exe" -prePython = "scriptPath.py", can't remember exact line tbh. I actually tried 2 executions. 1 from the one on left, and 1 when after program start I send socket request to render it but it has the same issue.
for scene in sceneList: jumpViewpoint(scene.viewpoint) for light in scene.sceneLights: adjustLight(light) renderImage(scene.renderData,light)
I have 10 cameras, each of which have multiple viewpoints, Each viewpoint has unique name.
For some reason when this script runs it will not set proper viewpoint. It works fine if I just have 1-2 camera. But not more.
Any help?
I guess I need to somehow force refresh of viewport?