Yes according to SDK Guide, view attributes that support "Set" is only:
- camera
- displaymode
- lockstatus
- targetcontent
- view
Other attributes only support "Get".
To change camera to orthographic you must use the camera properties itself.
For example if you use "Camera" in your object view
vObjView.SetAttributeValue("camera", "Camera");
You could change "Camera" to Orthographic by setting it projection type
(orthographic/perspective) for example
SetValue("Camera.camera.proj", 0, null);
But beware that this will change the camera also in other viewport (viewD).
So maybe it's better to setup a temporary camera just for your view.
Regards,
> Hi guys,
> Currently struggle with this thing..
>
> I created an new Object view with script below :
> anyone know how can I change the camera to orthographic
> or change the focal length parameter using script?
> I checked in the view list there is a new temporary view created there..
>
> currently I can only access some of the Object view like display all,
> lockstatus etc..
>
>
>
>
> jscript :
>
> var obj = ActiveSceneRot.AddNull();
> var layout = Desktop.ActiveLayout;
> var vObjView = layout.CreateView( "Object View", "MyView" );
>
> vObjView.SetAttributeValue("targetcontent", obj.Fullname);
> vObjView.SetAttributeValue("displayall","true");
> vObjView.SetAttributeValue("lockstatus","true");
> vObjView.SetAttributeValue("view","left");
> vObjView.SetAttributeValue("displaymode","shaded");
>
>
> thx
>
> --
> L. Edy Susanto
> Character TD
> Infinite Frameworks Studios
> Batam
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi