Std ViewIvIssueCamPos/it: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
(Created page with "Il metodo {{incode|getCamera}} dell'oggetto ActiveView restituisce le stesse impostazioni della fotocamera in una singola stringa. Questo metodo non è disponibile se FreeCAD è in modalità console.") |
||
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{UnfinishedDocu}} |
|||
{{GuiCommand|Name=Std ViewIvIssueCamPos|MenuLocation=[[Std View Menu|View]] → Stereo → Issue camera position|Workbenches=All|Shortcut=|SeeAlso=}} |
|||
{{Docnav/it |
|||
|[[Std_ViewIvStereoOff/it|Stereo off]] |
|||
|[[Std_ViewZoomIn/it|Ingrandisci]] |
|||
|[[Std_View_Menu/it|Menu Visualizza]] |
|||
|IconL=Std_ViewIvStereoOff.svg |
|||
|IconR=Std_ViewZoomIn.svg |
|||
|IconC=Freecad.svg |
|||
}} |
|||
{{GuiCommand/it|Name=Std ViewIvIssueCamPos|Name/it=Pubblica la posizione della camera|MenuLocation=Visualizza → Stereo → Pubblica la posizione della camera|Workbenches=Tutti|Shortcut=|SeeAlso=[[Std_FreezeViews/it|Viste bloccate]]}} |
|||
<span id="Description"></span> |
|||
==Descrizione== |
==Descrizione== |
||
Il comando '''Pubblica la posizione della camera''' stampa le impostazioni della fotocamera della [[3D_view/it|Vista 3D]] attiva nella [[Report_view/it|Finestra dei Report]] e nella [[Python_console/it|Console Python]]. |
|||
Questo comando serve a conoscere i dati della posizione, dell'orientamento e le altre informazioni sulla camera. |
|||
{{Code|code= OrthographicCamera { viewportMapping ADJUST_CAMERA position 57.73505 -57.73502 57.735027 orientation 0.74290609 0.30772209 0.59447283 1.2171158 nearDistance 81.588844 farDistance 109.60551 aspectRatio 1 focalDistance 100 height 100 } |
|||
}} |
|||
{{Caption|Esempio di output: impostazioni della fotocamera dopo la modifica in [[Std_ViewIsometric/it|vista isometrica]] in un nuovo documento}} |
|||
<span id="Usage"></span> |
|||
==Utilizzo== |
|||
# Selezionare l'opzione {{MenuCommand|Visualizza → Stereo → [[Image:Std_ViewIvIssueCamPos.svg|16px]] Pubblica la posizione della camera}} dal menu. |
|||
<span id="Notes"></span> |
|||
==Note== |
|||
* Le impostazioni della fotocamera possono essere utilizzate per aggiungere viste bloccate a un file *.cam. Vedere [[Std_FreezeViews/it|Viste bloccate]]. |
|||
<span id="Scripting"></span> |
|||
==Script== |
|||
{{Emphasis|Vedere anche:}} [[FreeCAD Scripting Basics/it|Script di base per FreeCAD]] |
|||
Il metodo {{incode|getCamera}} dell'oggetto ActiveView restituisce le stesse impostazioni della fotocamera in una singola stringa. Questo metodo non è disponibile se FreeCAD è in modalità console. |
|||
{{Code|code= |
|||
import FreeCADGui |
|||
FreeCADGui.ActiveDocument.ActiveView.getCamera() |
|||
Esempio casuale dei dati di posizione della camera nel pannello Report: |
|||
}} |
|||
{{Docnav/it |
|||
[[Image:CameraPosition1_it.png|CameraPosition1_it.png]] |
|||
|[[Std_ViewIvStereoOff/it|Stereo off]] |
|||
|[[Std_ViewZoomIn/it|Ingrandisci]] |
|||
|[[Std_View_Menu/it|Menu Visualizza]] |
|||
|IconL=Std_ViewIvStereoOff.svg |
|||
|IconR=Std_ViewZoomIn.svg |
|||
|IconC=Freecad.svg |
|||
}} |
|||
{{Std Base |
{{Std Base navi{{#translation:}}}} |
||
{{Userdocnavi |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
{{clear}} |
Latest revision as of 21:11, 24 March 2023
Pubblica la posizione della camera |
Posizione nel menu |
---|
Visualizza → Stereo → Pubblica la posizione della camera |
Ambiente |
Tutti |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Viste bloccate |
Descrizione
Il comando Pubblica la posizione della camera stampa le impostazioni della fotocamera della Vista 3D attiva nella Finestra dei Report e nella Console Python.
OrthographicCamera { viewportMapping ADJUST_CAMERA position 57.73505 -57.73502 57.735027 orientation 0.74290609 0.30772209 0.59447283 1.2171158 nearDistance 81.588844 farDistance 109.60551 aspectRatio 1 focalDistance 100 height 100 }
Esempio di output: impostazioni della fotocamera dopo la modifica in vista isometrica in un nuovo documento
Utilizzo
Note
- Le impostazioni della fotocamera possono essere utilizzate per aggiungere viste bloccate a un file *.cam. Vedere Viste bloccate.
Script
Vedere anche: Script di base per FreeCAD
Il metodo getCamera
dell'oggetto ActiveView restituisce le stesse impostazioni della fotocamera in una singola stringa. Questo metodo non è disponibile se FreeCAD è in modalità console.
import FreeCADGui
FreeCADGui.ActiveDocument.ActiveView.getCamera()
Std Base
- File: New, Open, Close, Close All, Save, Save As, Save a Copy, Save All, Revert, Import, Export,Merge project, Project information, Print, Print preview, Export PDF, Recent files, Exit
- Edit: Undo, Redo, Cut, Copy, Paste, Duplicate selection, Refresh, Box selection, Box element selection, Select All, Delete, Send to Python Console, Placement, Transform, Alignment, Toggle Edit mode, Edit mode, Preferences
- View:
- Miscellaneous: Create new view, Orthographic view, Perspective view, Fullscreen, Bounding box, Toggle axis cross, Clipping plane, Texture mapping, Toggle navigation/Edit mode, Appearance, Random color, Workbench, Status bar
- Standard views: Fit all, Fit selection, Isometric, Dimetric, Trimetric, Home, Front, Top, Right, Rear, Bottom, Left, Rotate Left, Rotate Right
- Freeze display: Save views, Load views, Freeze view, Clear views
- Draw style: As is, Points, Wireframe, Hidden line, No shading, Shaded, Flat lines
- Stereo: Stereo red/cyan, Stereo quad buffer, Stereo Interleaved Rows, Stereo Interleaved Columns, Stereo Off, Issue camera position
- Zoom: Zoom In, Zoom Out, Box zoom
- Document window: Docked, Undocked, Fullscreen
- Visibility: Toggle visibility, Show selection, Hide selection, Select visible objects, Toggle all objects, Show all objects, Hide all objects, Toggle selectability, Toggle measurement, Clear measurement
- Toolbars: File, Edit, Clipboard, Workbench, Macro, View, Structure, Help
- Panels: Tree view, Property view, Selection view, Tasks, Python console, DAG view, Model, Report view
- Link navigation: Go to linked object, Go to the deepest linked object, Select all links
- Tree view actions: Sync view, Sync selection, Sync placement, Pre-selection, Record selection, Single document, Multi document, Collapse/Expand, Initiate dragging, Go to selection, Selection Back, Selection Forward
- Tools: Edit parameters, Save image, Load image, Scene inspector, Dependency graph, Project utility, Measure distance, Add text document, View turntable, Units calculator, Customize, Addon manager
- Macro: Macro recording, Macros, Recent macros, Execute macro, Attach to remote debugger, Debug macro, Stop debugging, Step over, Step into, Toggle breakpoint
- Help: Help, FreeCAD Website, Donate, Users documentation, Python scripting documentation, Automatic Python modules documentation, FreeCAD Forum, FreeCAD FAQ, Report a bug, About FreeCAD, What's This
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub