The standard value is "0". A luminous plane gets the value "64". I can set this value for other objects, too. Which other states are there? What happens then?
It's a bit mask, you can find the (complete? @phil.bobo) list of flags by searching for DRAW_FLAG under the main tree, the first result should lead you to MAIN:/project/exec/globals/fsmacros.
Here's the list in 16.2:
#define DRAW_FLAG_BILLBOARD_MASK 0x3 #define DRAW_FLAG_ONE_SIDED 0x4 #define DRAW_FLAG_TWO_SIDED 0x8 #define DRAW_FLAG_NO_DEPTH_TEST 0x10 #define DRAW_FLAG_REFLECTIVE 0x20 #define DRAW_FLAG_LUMINOUS 0x40 #define DRAW_FLAG_SCALE_CHILDREN 0x80 #define DRAW_FLAG_IGNORE_PICKING 0x100 #define DRAW_FLAG_NO_ON_DRAW 0x200 #define DRAW_FLAG_NO_ON_PRE_DRAW 0x400 #define DRAW_FLAG_SKIP_ALL_DRAW 0x800 #define DRAW_FLAG_CENTER_PORT_NAMES 0x1000 #define DRAW_FLAG_INOUT_PORT_NAMES 0x2000
So if you were to set the drawflags attribute to, for example:
DRAW_FLAG_LUMINOUS | DRAW_FLAG_SCALE_CHILDREN
You'd get the equivalent of checking the corresponding boxes in the object's properties.
You can also set certain flags using bit-wise operators in FlexScript or C++:
// make an object draw luminous set(drawflags(so()),get(drawflags(so())) | DRAW_FLAG_LUMINOUS);
// make an object not draw luminous set(drawflags(so()),get(drawflags(so())) &~ DRAW_FLAG_LUMINOUS);
5 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved