WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-30-2017, 06:05 AM
VizMars VizMars is offline
Member
 
Join Date: Jan 2016
Posts: 40
It would be great if I could try to apply the view from SketchUp to the model in Vizard as I need the same viewpoint from which the model was exported. Also, it looks like the saved view is displayed in the right way in Inspector in my case. Can you provide the Vizard code for getting the camera's position and euler values from this node?
Reply With Quote
  #2  
Old 05-31-2017, 01:35 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
First get a handle to the transform node and then you can get its position and orientation:

Code:
model = viz.addChild('model.dae')
viewNode = model.getTransform('skp_camera_Last_Saved_SketchUp_View')
pos = viewNode.getPosition(viz.ABS_GLOBAL)
ori = viewNode.getEuler(viz.ABS_GLOBAL)
Reply With Quote
  #3  
Old 05-31-2017, 05:21 AM
VizMars VizMars is offline
Member
 
Join Date: Jan 2016
Posts: 40
Thanks Jeff, that did the job for me!
Reply With Quote
Reply

Tags
powerwall, sketchup, viewpoint

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Viconnect viewpoint rajnishv Precision Position Tracker (PPT) 3 03-20-2017 11:03 PM
Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES rajnishv Vizard 0 06-27-2016 03:57 AM
moving at different speeds Saz Vizard 8 06-07-2011 05:02 AM
Arrington - Ethernet ViewPoint Client jaclyn.bill Vizard 3 10-23-2009 10:43 AM


All times are GMT -7. The time now is 08:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC