rhino3dm icon indicating copy to clipboard operation
rhino3dm copied to clipboard

Bindings: ViewInfo.viewport

Open fraguada opened this issue 5 years ago • 3 comments

I can get the properties of a ViewInfo object, but cannot seem to get the .viewport in js: image

These are from the NamedViews array on a File3dm object.

fraguada avatar Aug 08 '20 15:08 fraguada

Linked with RH3DM-109

mcneel-build avatar Aug 08 '20 15:08 mcneel-build

Seems it is commented out here: https://github.com/mcneel/rhino3dm/blob/2fc48fe3c3957283c2cd9e7997a790bf91a1e1b7/src/bindings/bnd_3dm_settings.cpp#L145

fraguada avatar Aug 08 '20 15:08 fraguada

Accidentally created a new issue about this same item. Have now closed that other issue.

I would also like to access the viewport information.

Looking in the Rhino3dm.js API it seems that the ViewportInfo class does exist but as per the above I cannot find out how to access this information from a specific ViewInfo object. I'm trying to access information via namedViews from the 3dm file.

jjsolly avatar Aug 06 '21 08:08 jjsolly

this has been included in rhino3dm8.0.0-beta3

fraguada avatar Oct 10 '23 10:10 fraguada

I'm still not able to access this in rhino3dm8.0.0-beta3...am i missing something? Screenshot 2023-12-06 193135

dmaslan avatar Dec 06 '23 18:12 dmaslan