Jump to content

Rotating hybid objects.


Recommended Posts

Hybrid Objects can only be rotated in plan view (around the Z axis, so that only the X and Y values change).

 

If you really need to rotate them in 3D, you will need to use pure 3D objects.

 

I don't know of any short cuts in VW to do what you are asking. If this is a one time project I would just do it manually. If this is something that you will have to do repeatedly, then it might be worth looking at a script or Marionette.

 

Are all the objects Identical?

Link to comment
  • Vectorworks, Inc Employee

As Pat mentioned, Hybrid objects cannot be rotated off the ground plane.  They can only be rotated around the Z axis.

If that's all you need, one of these scripts should do it for you.

 

This script will rotate selected objects about their centers (center of their bounding box):

PROCEDURE MAIN;
FUNCTION RotateIt(h :HANDLE) :BOOLEAN;
VAR
    x, y, ang :REAL;
BEGIN
    HCenter( h, x, y );
    ang := Random * 360;
    HRotate( h, x, y, ang );
END;
    
BEGIN
    ForEachObjectInLayer(RotateIt, 2, 0, 4);
END;
RUN(MAIN);

 

This script will rotate selected symbols and plug-in objects about their insertion point:

PROCEDURE MAIN;
FUNCTION RotateIt(h :HANDLE) :BOOLEAN;
VAR
    x, y, ang :REAL;
BEGIN
    GetSymLoc( h, x, y );
    ang := Random * 360;
    HRotate( h, x, y, ang );
END;
    
BEGIN
    ForEachObjectInLayer(RotateIt, 2, 0, 4);
END;
RUN(MAIN);

 

 

Link to comment

If they are hybrid objects in the Vectorworks sense of the word meaning they have different representations in 3D view and Top/Plan view (think walls, doors, windows, Spotlight lighting instruments and truss objects), then you will not be able to rotate the objects except around the z-axis.

 

If they are hybrid in the sense that they are multiple objects combined together (group or symbol), but each individual piece is in 3D, then you will be able to accomplish what you want.

 

 

Link to comment

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...