WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-29-2014, 10:53 AM
armo armo is offline
Member
 
Join Date: Mar 2014
Posts: 21
fail to scale a .dae file

Hello

I have the vizard version 3.18.0002 and I'm currently having many problems when scaling a .dae file imported from google sketchup.

I've read in other threads that the following line is useful to the task:

"viz.setOption('viz.model.apply_collada_scale' ,1)
.
.
.
viz.add('file.dae')"


but in my script it just doesn't work. It does nothing wherever I write it.

Can anyone explain me where I'm doing wrong?


P.S.some time ago I found a thread on the worldviz site where the author stated that applying the following formula would do the same job:

object.setScale([0.0254]*3)

Is there a difference with the former formula?
Reply With Quote
  #2  
Old 04-01-2014, 02:46 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Both the viz.model.apply_collada_scale option and the scale command with the inches to meters factor should have the same effect on the model. Does the model still appear to big? Do you see some effect if you scale it down further?
Code:
object.setScale([0.001]*3)
Reply With Quote
  #3  
Old 04-01-2014, 05:36 AM
armo armo is offline
Member
 
Join Date: Mar 2014
Posts: 21
Quote:
Originally Posted by Jeff View Post
Both the viz.model.apply_collada_scale option and the scale command with the inches to meters factor should have the same effect on the model. Does the model still appear to big? Do you see some effect if you scale it down further?
Code:
object.setScale([0.001]*3)

Dear Jeff


I have tried the scale command with the inches to meters factor and it works pretty well!

Nonetheless, the viz.model.apply_collada_scale command still doesn't. Is there a specific line where I should put this last command so I don't have to scale every object only with tha inches to meters factor (I have more than 100 objects to load...)?


Best regards, armo
Reply With Quote
  #4  
Old 04-01-2014, 08:44 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The viz.model.apply_collada_scale option was added in Vizard 4 so you'll need to scale each model after it's added.
Reply With Quote
Reply

Tags
dae, import, scale, sketchup

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
Closing of an imported .py file Uttama_vizard Vizard 2 05-04-2010 06:18 AM
IVEx file extenstion unrecognised. sindi Vizard 2 12-10-2009 01:20 AM
avatar scale and link.setpos conflict? sircedric4 Vizard 0 09-29-2009 07:48 AM
Read file....many issues Uttama_vizard Vizard 9 07-08-2008 02:16 PM
File Management Uttama_vizard Vizard 2 07-01-2008 09:44 AM


All times are GMT -7. The time now is 12:06 PM.


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