Jump to content
ibenjamin.price

Attaching Objects to a Renderworks Camera using Marionette

Recommended Posts

I'm trying to attach a rectangle object to a renderworks camera,. The ultimate goal of which is when moving around the design layer inside the camera view, the object always stays oriented to the camera the same way...

 

Does anyone have any tips on what "input" node for the camera i could use to start this? 

There isn't a "camera" node, so does this require a custom node? 

 

Schematically, this seems quite simple. 

Input node "camera" - Get Location Node

Rectangle Node- Set Location based off of the "get" data from the camera..

 

At its simplest I'm really just trying to create a coincident constraint between these two objects... Unfortunately, constraints don't work on cameras in 3D view...

 

Any help or ideas is appreciated. 

 

Thanks!

-Ben

 

 

Share this post


Link to post

I think you will find that this isn't as easy as you're hoping.

A camera object is considered a plug-in object, and currently I'm not aware of any exposed functions to create one.

 

I tried using a camera as Control Geometry, but it appears that you can't activate it if you do that.

 

For now, I hate to say that I can't see a solution to this, but I'll keep it in mind and report back if I find any promising leads.

Share this post


Link to post

Hi Ben,

 

I don't think this will actually answer your question, but it may help you figure out a work around for your problem. Attached is a simple network that allows you to change the record data of a camera. Hope this helps!

accessingCameraRecord.vwx

 

Share this post


Link to post

Why not create an image prop, this will (if set up correctly ) always orientate to the user.HTH

Share this post


Link to post

Hi

You can insert a PIO with "Marionette Default Library" -> "BIM" -> "Symbols" -> "Create Custom Object / Path" . And then change values like declared by sarah. Maybe some PIOs need further objects like path etc. 

If you create a Camera Object it can look strange because with the tool you draw a line, which defines some values. You can set this values with Set Record Field Node. 

 

Do it as follows:

Draw a Camera with the tool ... create a Worksheet and play with the values and look, how to name the field names. The attached example is the same as from sarah, with additionally the "Create Custom Object" Node. The Camera looks strange, because the line length will be 0. Use Field name 'LineLength' to set the Line Length.

 

 

Camera.vwx

Share this post


Link to post

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.


 

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.

×
×
  • Create New...