[Closed] CUI Files
Hello Everybody,
I am trying to implement a library to make easy to work with the Max interface. However i dont know what are the meaning of the parameters on the CUI files. Please anyone could tell me what are the meaning of the parameters. I checked the max help but i couldnt find anything about it. So Please, give me an hand.
Thank in advance,
ting
Here is part of my default cui file:
[CUIData]
WindowCount=8
[CUIWindows]
F000=S:Command Panel
F001=T:Main Toolbar
F002=T:Axis Constraints
F003=T:Layers
F004=T:reactor
F005=T:Extras
F006=T:Render Shortcuts
F007=T:Snaps
[Command Panel]
Rank=0
SubRank=0
Hidden=0
FRect=673 182 865 1089
DRect=893 39 1261 882
DRectPref=2147483647 2147483647 -2147483648 -2147483648
DPanel=8
Tabbed=0
TabCt=0
CurTab=-1
CurPos=8 893 39 1261 882
CType=4
[Main Toolbar]
Rank=0
SubRank=0
Hidden=0
FRect=1109 212 1181 271
DRect=0 0 1261 39
DRectPref=2147483647 2147483647 -2147483648 -2147483648
DPanel=1
Tabbed=0
TabCt=0
CurTab=-1
CurPos=1 0 0 1261 39
CType=1
ToolbarRows=1
ToolbarType=3
ItemCount=42
Item0=0|0|0|50034|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|0
FlyOffCt0=0|-1|0|3
Item1=0|0|0|50035|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|2
FlyOffCt1=0|-1|0|3
Item2=3|6|16|31|1
Item3=1|0|0|50010|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|4
FlyOffCt3=0|-1|0|3
Item4=0|0|0|50011|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|6
FlyOffCt4=0|-1|0|3
Item5=1|0|0|50036|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|8
FlyOffCt5=0|-1|0|3
Item6=3|6|16|31|1
Item7=5|70|280|30100|0|19|2|1342177795|ComboBox|All
Item8=1|0|0|50027|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|10
FlyOffCt8=0|-1|0|3
Item9=0|0|0|50029|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|18
FlyOffCt9=0|-1|0|3
Item10=0|0|0|50028|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|12
FlyOffCt10=5|0|300|3
Fly1000=-1|-1|-1|1|Maintoolbar|12
Fly1001=-1|-1|-1|1|Maintoolbar|14
Fly1002=-1|-1|-1|1|Maintoolbar|16
Fly1003=-1|-1|-1|1|Maintoolbar|96
Fly1004=-1|-1|-1|1|Maintoolbar|97
Item11=1|0|0|202|0|31|-1|4|-1|-1|0|0|0||SnapsControls|6
FlyOffCt11=0|-1|0|3
Item12=3|6|16|31|1
Item13=1|0|0|50001|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|20
FlyOffCt13=0|-1|0|3
Item14=1|0|0|50002|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|22
FlyOffCt14=0|-1|0|3
Item15=1|0|0|50003|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|24
FlyOffCt15=3|0|300|3
Fly1500=-1|-1|-1|1|Maintoolbar|24
Fly1501=-1|-1|-1|1|Maintoolbar|26
Fly1502=-1|-1|-1|1|Maintoolbar|28
Item16=5|70|200|30101|0|19|2|1342177795|ComboBox|View
Item17=0|0|0|50009|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|30
FlyOffCt17=3|0|300|3
Fly1700=-1|-1|-1|1|Maintoolbar|30
Fly1701=-1|-1|-1|1|Maintoolbar|32
Fly1702=-1|-1|-1|1|Maintoolbar|34
Item18=3|6|16|31|1
Item19=2|0|0|31|3|0|59225|0|0|||-1|
Item20=3|6|16|31|1
Item21=1|0|0|40072|0|31|-1|-1|-1|-1|0|0|0||SnapsControls|20
FlyOffCt21=3|2|300|3
Fly2100=-1|-1|-1|1|SnapsControls|16
Fly2101=-1|-1|-1|1|SnapsControls|18
Fly2102=-1|-1|-1|1|SnapsControls|20
Item22=1|0|0|40074|0|31|-1|-1|-1|-1|0|0|0||SnapsControls|22
FlyOffCt22=0|-1|0|3
Item23=1|0|0|40223|0|31|-1|-1|-1|-1|0|0|0||SnapsControls|24
FlyOffCt23=0|-1|0|3
Item24=1|0|0|280|0|31|-1|-1|-1|-1|0|0|0||SnapsControls|26
FlyOffCt24=0|-1|0|3
Item25=3|6|16|31|1
Item26=2|0|0|31|4|647394|namedSelSets`Edit|0|0|"Edit Named Selection Sets"||0|enss_maintoolbar
Item27=5|120|120|50037|0|19|2|1342178114|ComboBox|
Item28=3|6|16|31|1
Item29=0|0|0|40210|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|50
FlyOffCt29=0|-1|0|3
Item30=1|0|0|50012|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|56
FlyOffCt30=6|0|300|3
Fly3000=-1|-1|-1|1|Maintoolbar|56
Fly3001=-1|-1|-1|1|Maintoolbar|98
Fly3002=-1|-1|-1|1|Maintoolbar|58
Fly3003=-1|-1|-1|1|Maintoolbar|60
Fly3004=-1|-1|-1|1|Maintoolbar|73
Fly3005=-1|-1|-1|1|Maintoolbar|75
Item31=3|6|16|31|1
Item32=2|0|0|31|3|647394|LayerManager`Layers|0|0|"Layer Manager..."|"Layer Manager..."|-1|
Item33=3|6|16|31|1
Item34=2|0|0|31|4|647394|LaunchFCurveEditor`Track View|0|0|"Curve Editor (Open)"||62|Maintoolbar
Item35=0|0|0|50061|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|92
FlyOffCt35=0|-1|0|3
Item36=3|6|16|31|1
Item37=0|0|0|50048|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|64
FlyOffCt37=0|-1|0|3
Item38=3|6|16|31|1
Item39=0|0|0|60010|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|66
FlyOffCt39=0|-1|0|3
Item40=5|80|140|30104|0|19|2|1342177795|ComboBox|View
Item41=0|0|0|50031|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|70
FlyOffCt41=2|0|300|3
Fly4100=-1|-1|-1|1|Maintoolbar|70
Fly4101=-1|-1|-1|1|Maintoolbar|93
[Extras]
Rank=0
SubRank=0
Hidden=1
FRect=79 156 333 215
DRect=1283 39 1308 78
DRectPref=2147483647 2147483647 -2147483648 -2147483648
DPanel=1
Tabbed=0
TabCt=0
CurTab=-1
CurPos=16 79 156 333 215
CType=1
ToolbarRows=1
ToolbarType=16
ItemCount=4
Item0=1|0|0|30761|0|31|-1|-1|-1|-1|0|0|0||SnapsControls|29
FlyOffCt0=0|-1|0|1
Item1=2|0|0|31|4|0|40462|0|0|"AutoGrid"||0|AutoGrid
Item2=3|6|16|31|1
Item3=0|0|0|60120|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|52
FlyOffCt3=4|0|300|3
Fly0300=-1|-1|-1|1|Maintoolbar|52
Fly0301=-1|-1|-1|1|Maintoolbar|54
Fly0302=-1|-1|-1|1|Maintoolbar|84
Fly0303=-1|-1|-1|1|Maintoolbar|99
This is not really the answer your looking for but, I just used CUI to make my script dockable.
createDialog JOE 105 350 pos:[1000,100] bgcolor:[150,150,150]
cui.RegisterDialogBar JOE minSize:[105,350] maxSize:[105,350] style:#(#cui_floatable,#cui_dock_left,#cui_dock_right,#cui_handles)
It’s great, after running the script I can drag and drop the interface any ware. Next I would like to have the script open and dock automatically with the job file. I love building interfaces and would like to have more examples to reference. Looking forword to your list. Sorry I can’t contribute more, so much to learn:()
Hello Othoap, Yes i am doing the same as you with my script. However, I get a weird error that i would like to solve, that it is why i posted this thread. My problem is that if i have a toolbar on the left, let say the reactor toolbar, and I write a small script that create a new toolbar and dock it on the left, and I put my script in the startup script folder when the 3dsmax run, i get an error with the two toolbars on the left ( reactor and my new toolbar). One of the toolbar superimpose the other one giving an annoying error. I am trying to solve it but i dont know how. So please if anyone could give me hand with it, i will be very grateful
Regards,
ting
No one is going to explain all the parameters… there are a lot. Some are not necessary to understand because they are internal command code and knowing the code is good enough, not knowing what it means.
Some of what you want to know is the values for position… that’s usually the paired numbers.
Ex:
createDialog JOE 105 350 pos:[1000,100] bgcolor:[150,150,150]
createDialog JOE width height pos:[posx,posy] bgcolor:[0-255,0-255,0-255]
Position, width and height aer in screen pixels… starting at top left with 0,0 or 1,1 and ending on the bottom right with your screen resolution, something like 1024,768 or 1280,1024 or whatever.
Your Reactor bar is likely at CurPos=4 0 39 40 882 (? posx posy width height)
Make sure your new bar is next to it or below… something like [font=Arial]CurPos=4 41 39 40 882 (? posx posy width height)
Hope that gives you some pointers.
Maneswar
[/font]
Yes I’ve had the same problems with two scripts I dock manually on the right. Unless I pay attention to were I drag and drop them they will position behind other docks or below off screen. I agree with Maneswar about the <pos> issue. Things are fine when I load them on start up because of the declared pos. The thing is though I don’t want them to load as default, only with specific files. I would like to know how to link specific tool bars/dock with specific scenes. When you load a scene that used a plugin or materials but can’t find them Max alerts you. What is written to the scene that tells Max that scene has a plugin?
I wish ui/rollouts were based on html table and cell structure you could really do some fun things. I’m currently trying to figure out the hole bitmap backgrounds in rollouts now and it’s not working.
I think Max is one of the best interfaces out there, but if I had my wish I would like to see a move to the Dreamweaver/Flash style. My biggest interface wish for Max is to have scene tabs. In Dreamweaver or Flash you can have many projects open and flip between them via the tabs. Oh well, TMI babe.