Jump to content

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

Link to comment

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
Link to comment

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
Link to comment

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

Link to comment
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:

 

 

Link to comment
  • 3 years later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...