flags,maxscript , Dynamically change flags in 3ds Max with Maxscript


Dynamically change flags in 3ds Max with Maxscript

Question:

Tag: flags,maxscript

My main problem is that I don't know how to dynamically create a flag variable in 3ds Max with maxscript. I would have hoped you could have just put a pound sign in front of a concatenated sting but that didn't work.

I'm writing a script that will dynamically create a flag for the material. This works to change a materials' animation texture start time: meditMaterials[21][#Maps][#Diffuse_Color__Bitmaptexture__011_0060_ifl].starttime = 101f

I want the material flag (#Diffuse_Color__Bitmaptexture__011_0060_ifl) to be dynamically created, based off user input to get input like:

#Diffuse_Color__Bitmaptexture__020_0040_ifl #Diffuse_Color__Bitmaptexture__046_0010_ifl #Diffuse_Color__Bitmaptexture__300_0020_ifl


Answer:

You can create / get / set global variables using the globalVars structure: http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_E7584E94_8696_421E_920C_2A83FCD9ABBF_htm

Does that point you in the right direction?


Related:


Control Flags in Interrupt Routine and NMI [8086]


interrupt,masm,flags,8086
I know how an interrupt routine is executed in 8086. The thing that isn't clear to me is how different types of interrupts (i.e hardware, software and exception) uses the control flags (Interrupt Flag and Trap Flag) in their execution. And other thing is what is Non-mask-able Interrupts and its...

topoJSON is not correctly converting special chars from geojson like ë or ó


special-characters,flags,qgis,topojson
I really need these special (ë or ó) characters in my topoJSON file. I use QGIS and export the data as geojson. Here the special chars are all fine, still correct in the output. But when I now use topoJSON to bring all my geoJSON files together, all the special...

C# Enum - Guessing Flags given an int input


c#,enums,flags
Let's suppose we have the following Enum of Flags: [Flags] public enum Animals { Cow = 1, Duck = 2, Goose = 4 } Now, given this Enum, we want to specify a function with an int as the input, and given this number, we want to return an array...

Pass by value / reference performance comparison in Maxscript?


performance,3dsmax,maxscript
How does it affect efficiency in Maxscript?. Maxscript is a slow one, but i wonder how much does it affect? I tried this script, it took a lot of time to execute the operations in the array, but later on the call to functions were fast returning 0 to the...

How toggle by object/by layer in 3ds Max with maxscript?


properties,maxscript
I'm looking for the function to toggle an object's "By Object"/"By Layer" property in Display Properties, specifically to "By Object". I haven't been able to get any of the functions here http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_78B79975_7BA5_4A03_8FEF_27E78D14B575_htm to do what I want. Thanks in advance!...

Dynamically change flags in 3ds Max with Maxscript


flags,maxscript
My main problem is that I don't know how to dynamically create a flag variable in 3ds Max with maxscript. I would have hoped you could have just put a pound sign in front of a concatenated sting but that didn't work. I'm writing a script that will dynamically create...

Keeping track what the state parameters are


c#,design-patterns,flags,states
I'm refactoring software that is created by my predecessor. The software can communicate over the can-bus. At this moment all devices are hardcoded in the software and my job is to make every deviceType configurable. (Saved in serialized classes and creatable with a Model creator). With the software, the devices...

WPF Multiple Enum Flags to Converter Parameter?


c#,wpf,enums,flags,valueconverter
I have a control which I need visible if an enum value is (A | B | C). I know how to bind the visibility of a control to a SINGLE enum (A) using a converter. How do I go about doing the same for this case? What would go...

Rails keeps ignoring an IF statement inside the view


ruby-on-rails,ruby,if-statement,flags
I am writing an application where I want to list blog posts according to date they were created on the main index page. So lets say if I have 10 blog posts that were created today I would want to have smth like this come on the index page of...

Assign an image resource to ImageView according to a flag


android,onclick,imageview,flags
I have to change the image dsiplayed in the ImageView, when user click on it. And when he clicks it again, I want to show the original image. How to do this with the flags? Supposably: imageView1, R.drawable.pic_one, R.drawable.pic_two. ...

CSS regular expression flags: ignore case, global search


html,css,regex,flags
I have the following HTML: <div> <img class="hi" src="http://i.imgur.com/f9WGFLj.png"></img> <img class="HI" src="http://i.imgur.com/f9WGFLj.png"></img> </div> And the following CSS: img { height:200px; width:auto; } img[class*='i'] { outline:red inset; } img[class*='I'] { outline:green inset; } img[class*=/'i'/i] { outline:blue inset; } As you can see, in the last CSS snippet I'm trying (inexpertly) to...

Resetting output flags in C++


c++,iostream,flags,iomanip
I'm intending to reset all output flags to default on the lines where I end using the resetiosflags function. It provides erroneous output when I attempt to do it in this manner, contrary to my expectations. #include <iostream> #include <iomanip> using namespace std; int main() { bool first; int second;...