#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
Quote:
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 |
#4
|
|||
|
|||
The viz.model.apply_collada_scale option was added in Vizard 4 so you'll need to scale each model after it's added.
|
Tags |
dae, import, scale, sketchup |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |