Change Default values of Anybody types

Hi,
just a short and easy question. Is it possible to change the default
values of certain Anybody Types (e.g. AnyDrawNode)?

Thanks
Peter

Hello Peter,

I don’t think so. What is often done is use an include having something that
looks like:

StandardNodeDrawing.any:

AnyDrawNode DrawNode = {

             RGB = Main.DrawSettings. SegmentNodes.Nodes;

ScaleXYZ = Main.DrawSettings.SegmentNodes.ScaleXYZ;

Transparency = …DrawNode;

};

So then, in your model, whenever you have a node, you write:

AnyRefNode TheNode = {

             sRel = {12.333,120.182,12.281};

             AnyVar DrawNode = 0;

             #include "StandardNodeDrawing.any"

};

This way, whenever you want to draw the node, you set DrawNode to 1 and it
will draw it. And it will draw it with the settings of DrawSettings.any,
which you can change to your wish. You can also add your own settings in the
file to have, let’s say, DrawSettings.PeterNodes.RGB :slight_smile:

Hope this helps

Jean-Olivier Racine

joracine@humancad.com

HumanCAD development team

Nexgen Ergonomics Inc.

http://www.nexgenergo.com/

From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of peter.belei
Sent: Thursday, March 13, 2008 3:57 AM
To: anyscript@yahoogroups.com
Subject: [AnyScript] Change Default values of Anybody types

Hi,
just a short and easy question. Is it possible to change the default
values of certain Anybody Types (e.g. AnyDrawNode)?

Thanks
Peter

[Non-text portions of this message have been removed]