mirror or flip an OBJ or OCS proxy

Forums: mirror or flip an OBJ or OCS proxy
Graphisoft ArchiCAD (Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

mirror or flip an OBJ or OCS proxy

Postby s3d-weyrauch » Sat May 09, 2015 6:56 am

s3d-weyrauch Sat May 09, 2015 6:56 am
You can mirror or flip a mesh in the Standalone, you have to give only negative values to the x / y / z scale.
I have tried it in the Plugin, and unfortunately it´s not possible. You can´t give negative values to the proxy scale. It´s equal for OBJ and OCS. :(
It is essential to connect the AC parameters with proxy parameters. Is it possible to let the objects somehow mirrored in the Plugin :?:
David
BIM team leader

Win 10 | ArchiCAD GER 23-24 | Octane Plugin for ArchiCAD
13 Licenses | Network Render over 12 graphic cards
User avatar
s3d-weyrauch
Licensed Customer
Licensed Customer
 
Posts: 48
Joined: Mon Sep 01, 2014 4:52 pm
Location: Leipzig, Germany

Re: mirror or flip an OBJ or OCS proxy

Postby face_off » Sun May 10, 2015 12:10 am

face_off Sun May 10, 2015 12:10 am
Is this a one-off need, or something you need on an ongoing basis? If one-off, export from the plugin the Octane Standalone and then set the X Scale of the Placement for the proxy Mesh to -1.

If it is an on-going requirement, at the moment there is no easy way to do this, because the plugin searches for Mesh nodes in the ORBX, so any Placement node used to mirror the vertices (using a scale of -1) gets ignored.

I could modify the plugin so that it first searches and uses a "Geometry Out" node in the ORBX node prior to searching for a "Mesh" node. That way you could plugin the Mesh node into a Placement into a Geometry Out node to mirror the ORBX. This solution would not work for OBJ proxies (but in the rare situation would need to mirror, you could load the OBJ into an ORBX).

Would this solution work for you?

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15475
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: mirror or flip an OBJ or OCS proxy

Postby s3d-weyrauch » Sun May 10, 2015 6:52 am

s3d-weyrauch Sun May 10, 2015 6:52 am
My imagination is to stear the proxy parameters with AC-parameters (connecting the real AC-object measures with the proxy). Than I can control and modify the position and size of the proxies without opening the plugin. I would do that for an object-library, it means it´s not a one-off need.

I work with OCS proxies because of the different material-variants. They load only one mesh and one texture with different colors and settings to the memory.
I don´t need OBJ, because I predefine the materials in an OCS before (instead of ugly MTL material definitions).

:o Is that Your suggestion?
OCS.jpg
OCS graph
OCS.jpg (38.53 KiB) Viewed 13046 times

It would be the best solution ever! It means, that I can do a placement correction in OCS before I use it in AC. A lot of object manufacturer makes a lot of mistakes, the objects are not at the zero, the scale is sometimes mm, or cm or m or inch or whatever. I should correct them in AC, but if you did for me this favour with placement and geometry out, I would save time! :mrgreen: :D
David
BIM team leader

Win 10 | ArchiCAD GER 23-24 | Octane Plugin for ArchiCAD
13 Licenses | Network Render over 12 graphic cards
User avatar
s3d-weyrauch
Licensed Customer
Licensed Customer
 
Posts: 48
Joined: Mon Sep 01, 2014 4:52 pm
Location: Leipzig, Germany

Re: mirror or flip an OBJ or OCS proxy

Postby face_off » Sun Sep 06, 2015 1:16 am

face_off Sun Sep 06, 2015 1:16 am
In the next release....
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15475
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: mirror or flip an OBJ or OCS proxy

Postby Daniel_Ward » Tue Sep 15, 2015 3:48 am

Daniel_Ward Tue Sep 15, 2015 3:48 am
Hi Paul,

loving the new Edit Proxies feature!
Question; is it possible to load an .obj as a proxy, then save it as an Orbx directly from the ArchiCAD Plugin?

Cheers, Dan.
+MAP Architects, Christchurch - New Zealand
ArchiCAD 4.12 - ArchiCAD 24 || Octane for ArchiCAD
i7-7700K - Gigabyte Aorus Z270X Gaming 9 - 32Gb RAM - 3x Gigibyte GTX1070 G1 Gaming - Window 10 64Bit
User avatar
Daniel_Ward
Licensed Customer
Licensed Customer
 
Posts: 158
Joined: Thu Apr 30, 2015 2:57 am
Location: Christchurch, New Zealand

Re: mirror or flip an OBJ or OCS proxy

Postby face_off » Tue Sep 15, 2015 1:19 pm

face_off Tue Sep 15, 2015 1:19 pm
Question; is it possible to load an .obj as a proxy, then save it as an Orbx directly from the ArchiCAD Plugin?
Not directly - however if you copy a blank ORBX a bunch of times, you could load one of them as your proxy, edit it, and load the OBJ within the NodeGraph editor. Once the current ORBX editing has proven stable, I could add a function to better allow this to happen.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15475
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: mirror or flip an OBJ or OCS proxy

Postby s3d-weyrauch » Wed Sep 16, 2015 7:00 am

s3d-weyrauch Wed Sep 16, 2015 7:00 am
Hi Paul,
i´m lovin it! It makes everything easier and faster.
It could be even better, if we could save the edited Proxy as another version. It means, not only overwriting the original ORBX/OCS, but having the chance to make a little bit difference between the trees. In the reality is the same, the leaves have always colors. Or another example: putting cars on the Asphalt and making with few clicks different colors for them. It would be really nice!

Edited: But, yes, it´s true, I could copy the file on the location, and I have to change the proxy to the new element.
However, saving with different name in the Plugin results less clicks.
David
BIM team leader

Win 10 | ArchiCAD GER 23-24 | Octane Plugin for ArchiCAD
13 Licenses | Network Render over 12 graphic cards
User avatar
s3d-weyrauch
Licensed Customer
Licensed Customer
 
Posts: 48
Joined: Mon Sep 01, 2014 4:52 pm
Location: Leipzig, Germany

Re: mirror or flip an OBJ or OCS proxy

Postby s3d-weyrauch » Mon Sep 21, 2015 9:47 am

s3d-weyrauch Mon Sep 21, 2015 9:47 am
And I would have a wish again. There is no good connection between the AC-Plugin materials and the Standalone materials.

I already mentioned, that I work rather with OAM Materials, while the other option to import a material is only the ORBX. I use a lot of textures not only once (for example, Plaster on the wall, but mixed with different colors). If I used ORBX (LocalDb), I would get to many duplicates in the video memory.

I can imagine two solutions:
1. Importing OCS as a material. The OCS should have a Material-out Node, the same as a Proxy should have.
ocs-material.jpg
ocs-material
ocs-material.jpg (20.65 KiB) Viewed 12208 times

2. Copy with clipboard. Unfortunately there is no chance to copy an existing Material-Setting in AC-Plugin to the Editor. It would be nice to select a material or something in the material-node (for example a texture), copy it and insert it in the new Proxy-Editor.

But thanks a lot for the Proxy-Editor again! Best wishes!
David
BIM team leader

Win 10 | ArchiCAD GER 23-24 | Octane Plugin for ArchiCAD
13 Licenses | Network Render over 12 graphic cards
User avatar
s3d-weyrauch
Licensed Customer
Licensed Customer
 
Posts: 48
Joined: Mon Sep 01, 2014 4:52 pm
Location: Leipzig, Germany

Re: mirror or flip an OBJ or OCS proxy

Postby face_off » Tue Sep 29, 2015 11:55 pm

face_off Tue Sep 29, 2015 11:55 pm
My apologies for the late reply to this - I thought I had already responded.

Edited: But, yes, it´s true, I could copy the file on the location, and I have to change the proxy to the new element.
However, saving with different name in the Plugin results less clicks.
I had a look at adding a Save As button for ORB proxies. However I wonder if it is actually easier to simply copy the file in Windows Explorer. If you have the Explorer window open with the folder containing your proxy ORBX files, it is a single click to copy. Whereas it is multiple clicks in AC, and there are some complexities with AC regarding special characters in filenames, and the way it "remembers" the previous folder open which the Windows Explorer handles better.

1. Importing OCS as a material. The OCS should have a Material-out Node, the same as a Proxy should have.
If you import from OCS, the texturemap paths are absolute, so if you copy the pln file to another PC you have to copy all the teturemaps across. Whereas if you import from ORBX, the texturemaps are contained in the ORBX, so you need to copy the source ORB file with the pln. Either way I guess you need to copy the assets - however it's neater with ORBX. You can also "Import Material from the Local DB" and select an OCS from another folder and it should import OK (I didn't try it, but it will probably work).

2. Copy with clipboard. Unfortunately there is no chance to copy an existing Material-Setting in AC-Plugin to the Editor. It would be nice to select a material or something in the material-node (for example a texture), copy it and insert it in the new Proxy-Editor.
I will add an option to copy/paste to/from the Windows clipboard.

I also also looking at offering an option to edit the material in the NodeGraph (as you do the proxy). Pls see https://youtu.be/UwPthyrV6zw for how this would look. I need to wait until all the issues are found with this workflow in the Poser plugin before I migrate it to AC.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15475
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Return to Graphisoft ArchiCAD


Who is online

Users browsing this forum: No registered users and 8 guests

Fri Apr 19, 2024 4:10 am [ UTC ]