tyPreview Overlay MAXScript
#3
Sorry you are right the MAXScript overlay work properly with normal cameras.
In my case, I'm using typreview through MAXScript and scene with xref camera.
For example, I have this simple script : 

Code:
fn preview =
(
rgx = dotnetObject "System.Text.RegularExpressions.Regex" ""
previewpath =  (pathConfig.GetDir #preview) +"\\"+ (rgx.replace (getFilenameFile maxfilename) "_[0-9]+" "")+"_"+(dotNetClass "System.DateTime").now.ToString("MMddHHmm")+".mp4"

tyPreview displayFilter_grid:false \
displayFilter_shapes:false \
displayFilter_bones:false \
displayFilter_spacewarps:false \
displayFilter_helpers:false \
displayFilter_lights:false \
displayFilter_background:true \
appearance_antiAliasing:true \
appearance_textures:true \
appearance_transparency:true \
appearance_safeFrames:false \
appearance_mode:1 \
appearance_style:0 \
resolution_width: renderWidth \
resolution_height: renderHeight \
output_filename: (previewpath as string) \
overlay_camera: false \
output_version: 0 \
output_type: 0 \
overlay_frame:true \
overlay_maxscript:true \
overlay_maxscript_script:("\""+(getActiveCamera()).fov as string+"\" as string")
)

preview()


With this configuration the fov doesn't seem to update. Maybe a limitation du to xref cameras :/
  Reply


Messages In This Thread
tyPreview Overlay MAXScript - by Moe - 08-10-2021, 01:12 PM
RE: tyPreview Overlay MAXScript - by tyFlow - 08-11-2021, 01:02 AM
RE: tyPreview Overlay MAXScript - by Moe - 08-11-2021, 04:40 PM
RE: tyPreview Overlay MAXScript - by tyFlow - 08-11-2021, 04:44 PM
RE: tyPreview Overlay MAXScript - by Moe - 08-11-2021, 04:56 PM

Forum Jump: