Images in the Object Library
All  1-7  8-13

Previous
Next
 From:  BurrMan
12073.8 In reply to 12073.7 
If you are a "code reader" and want to experiment with results, I would look at this line:

..................
moi.ui.mainWindow.viewpanel.getViewport('3D').render(400, 320).save(savepath+fileName+".png");
..................

And fool around with the render size of the screengrab in relation to the zoom value to get better results for the type of objects you use
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
12073.9 In reply to 12073.8 
Hi BurrMan,

Thanks for the reply.

I wonder if the (400, 320) is the ideal size for the image I am supposed to create.

Maybe it's the proportions that are important.

Time to experiment.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
12073.10 In reply to 12073.9 
I fooled around with it a bit....

Changing the resolution of the created png file didnt change the behavior you are after

Changing the zoom factor seems to control it better

I found a setting of "2.0" to work as you asked

The line:

...........
vp.zoom(2.0);
...............

With that said, I have no idea what that means
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
12073.11 In reply to 12073.8 
Hey BurrMan,

You provided the solution.

Making sure the image ratio is 5:4 (400 divided by 320) and the image comes out nicely centered.

And Windows (I think it is part of Windows) happens to have a tool which allows adjusting an image to exactly 5:4.

Thanks.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
12073.12 In reply to 12073.6 
Hi Frederick,

re:
> The great thing is when you pick a part to use, it appears ready to adjust it's orientation
> to whatever surface you need, at whatever point you need it.

That's using the ImportPart command, you can run it by right clicking on File > Import.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  fcwilt
12073.13 In reply to 12073.12 
Hi Michael.

Good to know.

Before encountering that feature in the Object Library, I was importing parts and messing around with aligning them using move/rotate which was tedious.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-7  8-13