[Closed] createPreview in Shaded mode when using Nitrous
Hi,
I am having issues using createpreview() while being in Nitrous mode. I am trying to do a preview in Shaded mode using that command, however I always get a preview in Realistic mode.
In the help it says the following:
rndLevel: Controls the render level when using the Direct3D Driver. When using Nitrous, the current Nitrous settings accessible via NitrousGraphicsManager.GetActiveViewportSetting() will be used instead.
So I executed this, but it still doesn’t create the preview with Shaded mode.
nitrous = NitrousGraphicsManager.GetActiveViewportSetting()
nitrous.VisualStyleMode = 1
createpreview()
Any help would be appreciated,
Thanks,
Nahuel
Does’nt work here either –
always uses the setting from the create preview settings panel – regardless the mode which is set ( via MXS) in the actual viewport. I would say this is a bug – please report it …
A workarround/hack would be capturing the make preview config dialog ( openend via max preview ) using DialogMonitorOPS.RegisterNotification, searching for the dropdown and set it’s value accordingly and start the preview from that dialog by sending OK to the window.
I use such a method in PowerPreview to trigger the internal Make Preview, because i found the createpreview() options which where introduced just recently ( with Max 2013) far to limited…
Any new on this?
Seems that they doesn’t update the createPreview Method in 2015: http://help.autodesk.com/cloudhelp/2015/ENU/MAXScript-Help/files/GUID-89772473-4CCA-4E65-A83C-8F053CA86478.htm
Is there anywhere a example code of a work-a-round for this?!?
EDIT: Hm i found this statement in help:
rndLevel: Controls the render level when using the Direct3D Driver. When using Nitrous, the current Nitrous settings accessible via NitrousGraphicsManager.GetActiveViewportSetting() will be used instead.
EDIT2: btw. a createPreview() call is not interruptable with ESC as the normal dialogue
Is there a work-a-round for this?