Jump to content
Developer Wiki and Function Reference Links Read more... ×

Recommended Posts

Does anyone have an example of how to include the 2d hybrid information in a marionette network? I have added a small network to clarify.
The cube may only be visible in 3d mode. the circle in 2dtop plan view.
In the vector script referece guide something is mentioned,(http://developer.vectorworks.net/index.php/VS:SetTopPlan2DComp) but are marionette nodes available?

If someone has an example network, I would love to see it!

 

image.thumb.png.003bd2221a3cb32f949faae723bc10d4.png

 

image.thumb.png.a47bfac923b3428854a840b47224fae4.png

 

 

Cube to 2dcircel.vwx

Share this post


Link to post

Hi Nico

The circle is a planar object and will be the TopPlan display by default. So in my opinion you don't have to use any planar reference to objects. This would give the required result:

1024569811_Bildschirmfoto2018-11-07um11_04_21.thumb.png.4b7bc8ecc57b5f54482e80e715a933bc.png

 

If you have two planar Objects, you can use the Planar Ref ID -1 to set an object to the 3D view display. If you build your network as following, you will have a rectangle in 3D view and a circle in TopPlan view.

 

362276223_Bildschirmfoto2018-11-07um11_09_44.thumb.png.8588a437870e85399de7d53e24625890.png

 

  • Like 2

Share this post


Link to post

Thanks for your explanation. I tried searching for iPrefiD on Vectorworks help, Google and this forum with no usefull results at all! How did you know to put -1 into iPrefiD?  Is there an explanation of nodes I don't know about?

Share this post


Link to post
Quote

How did you know to put -1 into iPrefiD?

I think from the Vectorscript Forum i knew, that negative values can be used. But to get it for this was a standard procedure (try and error ) 🙂 

  • Like 2

Share this post


Link to post

The DevWiki is the go to place for all functions and also has an appendix for other 'selectors'

 

DevWiki: http://developer.vectorworks.net/index.php/VS:Function_Reference

Appendix: http://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix

SetPlanarRef function http://developer.vectorworks.net/index.php/VS:SetPlanarRef

 

Maybe @Jim Wilson, you could sticky the DevWiki link to the Customization Forum Sections?

  • Like 1

Share this post


Link to post

Thank you @DomC,

This works very well. I use a few plug-ins made in marionette and converted via export script etc.

Because I could not figure this out, I created a node that you have to connect behind the circle. It works with my node too (only  in pio). I use a different function SetTopPlan2DComp (ver.2019). I still have to figure out how to stack the 2d tiles right so that the small ones are visible above the large surfaces. Thank you for spending your time and helping us !!! (Custom Node included)

 

image.thumb.png.3a3ae10748996d239bdd9acea31e154f.png

SetTopPlan2DComp.vwx

Cube3DTocircleForum.vso

Share this post


Link to post
Quote

I still have to figure out how to stack the 2d tiles right so that the small ones are visible above the large surfaces.

 

I guess, you have to change the order of object creation in a way, your small objects were created at the end (maybe dummy nodes, groups or something like this). Also you could try to use commands (looks like you know how to create a node) for sending objects backward and forward.

 

vs.HMoveBackward(h, toBack)

vs.HMoveForward(h, toBack)

 

could work. But I think it is a problem if you want to send something in front of an uncreated object. You can find a "backward" node in my node collection here:

 

 

Share this post


Link to post

Since I don't know how to use Python, I've used a Group node followed bij another Group node to put one series of objects on top of another.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×