ΠΡ ΠΏΠΎΡΡΠ°ΡΠ°Π»ΠΈΡΡ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΠΎ ΡΠΏΡΠΎΡΡΠΈΡΡ Π΄ΠΎΡΡΡΠΏ ΠΊ UI (User Interface) 3DCoat ΠΈΠ· ΡΠΊΡΠΈΠΏΡΠΈΠ½Π³Π°.
Π’Ρ ΠΌΠΎΠΆΠ΅ΡΡ Π²ΡΠ±ΡΠ°ΡΡ ΠΈΠ· ΡΠΊΡΠΈΠΏΡΠ° Π»ΡΠ±ΠΎΠΉ ΠΏΡΠ½ΠΊΡ ΠΌΠ΅Π½Ρ, Π½Π°ΠΆΠ°ΡΡ Π»ΡΠ±ΡΡ ΠΊΠ½ΠΎΠΏΠΊΡ, ΠΏΡΠΎΡΡΠΎ Π·Π°ΠΏΠΈΡΠ°Π²
UI ui;
ui( "ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ΠΠΎΡΠΎΡΠΎΠ΅ΠΠΈΠ΄ΠΈΡΡΠΠ°ΠΠΊΡΠ°Π½Π΅" );
Π‘ΠΏΡΠΎΡΠΈΡΡ: "Π ΠΊΠ°ΠΊ ΠΆΠ΅ Π±ΡΡΡ Ρ ΠΏΠΎΠ»ΡΠΌΠΈ Π΄Π°Π½Π½ΡΡ
"? Π Π½ΠΈΠΌ ΠΏΠΎΠ»ΡΡΠ°ΠΉ Π΄ΠΎΡΡΡΠΏ, ΠΎΠ±ΡΠ°ΡΠ°ΡΡΡ ΠΏΠΎ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌΡ ΠΈΠΌΠ΅Π½ΠΈ.
ΠΡΠΈΠΌΠ΅Ρ:
Debug dbg;
DebugLog log = dbg.log();
void main() {
log.clear();
SculptRoom room;
room.clear().toSurface();
UI ui;
ui.toSculptRoom();
ui( "Primitives" )( "Create sphere" )
( "$SpherePrim::%$px4[62]", 0 )
( "$SpherePrim::%$py5[62]", 0 )
( "*Apply" );
ui( "$SpherePrim::%$px4[62]", 50 )
( "*Apply" );
ui( "$SpherePrim::%$py5[62]", 50 )
( "*Apply" );
}
Π’. ΠΊ. ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ 3DCoat - ΠΌΠ½ΠΎΠ³ΠΎΡΠ·ΡΡΠ½ΡΠΉ, Π΅ΡΡΡ ΠΎΠ΄ΠΈΠ½ Π½ΡΡΠ°Π½Ρ.
Π ΠΈΠΌΠ΅Π½Π½ΠΎ, ΡΡΠΎΠ±Ρ ΡΠ²ΠΎΠΉ ΡΠΊΡΠΈΠΏΡ ΡΠ°Π±ΠΎΡΠ°Π» ΠΈ Π΄Π»Ρ 3DCoat, ΠΊΠΎΡΠΎΡΡΠΉ Π·Π°ΠΏΡΡΠ΅Π½ Π½Π° Π΄ΡΡΠ³ΠΎΠΌ ΡΠ·ΡΠΊΠ΅, ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠΉ ΠΎΠ±ΡΠ°ΡΠ΅Π½ΠΈΠ΅ ΠΏΠΎ ΠΊΠΎΠ΄Ρ (Π½Π°ΡΠΈΠ½Π°Π΅ΡΡΡ Ρ ΡΠΈΠΌΠ²ΠΎΠ»Π° $
) ΠΈΠ»ΠΈ ΠΏΡΠΈ Π·Π°ΠΏΡΡΠΊΠ΅ ΡΠΊΡΠΈΠΏΡΠ° ΠΏΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ°ΠΉ ΡΠ·ΡΠΊ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠ°. Π₯ΠΎΡΠΎΡΠΈΠΌ ΡΠΎΠ½ΠΎΠΌ Π±ΡΠ΄Π΅Ρ Π²Π΅ΡΠ½ΡΡΡ ΡΠ·ΡΠΊ ΠΏΠΎ Π·Π°Π²Π΅ΡΡΠ΅Π½ΠΈΡ ΡΠΊΡΠΈΠΏΡΠ°.
string currentLang = ui.lang();
ui.lang( "english" );
ui.lang( currentLang );
ΠΡΡΡ Π΅ΡΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ ΡΡΠ½ΠΊΡΠΈΠΉ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΡΠ΅Π±Π΅ ΠΏΠΎΠ»Π΅Π·Π½Ρ ΠΏΡΠΈ ΡΠΎΠ·Π΄Π°Π½ΠΈΠΈΠΈ ΡΠΊΡΠΈΠΏΡΠ° Π΄Π»Ρ 3DCoat:
DEPRECATED bool cmd( string );
void Step( int n );
void Wait( int ms );
void InstallToMenu( string path, string itemName );
DEPRECATED bool FieldExists(string &in ID);
void main(){
int n=0;
do{
string s="$ExtraLight::Color["+formatInt(n,"l")+"]";
if(FieldExists(s)){
n++;
}else break;
}while(true);
string s="Amount of lights = "+formatInt(n,"l");
ModalDialog(s,"");
}
DEPRECATED bool GetBoolField(string &in ID);
DEPRECATED bool SetBoolField(string &in ID,bool val);
DEPRECATED int GetColorField(string &in ID);
DEPRECATED bool SetColorField(string &in ID,bool val);
DEPRECATED float GetSliderValue(string &in ID);
DEPRECATED bool SetSliderValue(string &in ID,float val);
DEPRECATED float GetEditBoxValue(string &in ID);
DEPRECATED bool GetEditBoxValue(string &out ID,string &out value);
DEPRECATED bool SetEditBoxValue(string &in ID,string &out val);
DEPRECATED bool SetEditBoxValue(string &in ID,float val);
DEPRECATED void SubstituteInputText(const string & val);
DEPRECATED void SubstituteInputText(float val);
SubstituteInputText(200.0);
cmd("$CubPrim::ScaleY");
Step(1);
Π’Π°ΠΊΠΆΠ΅ ΡΠ΅Π±Π΅ ΠΌΠΎΠ³ΡΡ ΠΏΡΠΈΠ³ΠΎΠ΄ΠΈΡΡΡ ΠΈ ΡΡΠΈ ΡΡΠ½ΠΊΡΠΈΠΈΠΈ:
DEPRECATED float GetMouseX()
DEPRECATED float GetMouseY()
DEPRECATED float GetPressure()
DEPRECATED bool LMBPressed()
DEPRECATED bool RMBPressed()
DEPRECATED bool MMBPressed();
DEPRECATED float GetVisiblePenRadius();
DEPRECATED void StartStroke(float x,float y,float Pressure)
DEPRECATED void DrawStrokeTo(float x,float y,float Pressure)
DEPRECATED void EndStroke()
DEPRECATED bool ScreenRayPicksObject(float x,float y)
DEPRECATED bool WasRecentlyPressed(string &in ID,float Time);
DEPRECATED bool WasRecentlyRMBPressed(string &in ID,float Time);
DEPRECATED bool IsInTool(string &in ToolID);
DEPRECATED string GetCurrentToolID ();
DEPRECATED float GetTimeSinceStart();
ΠΠΎΡΠΌΠΎΡΡΠΈ ΡΠ°ΠΊΠΆΠ΅ ΡΡΠΎΡ Π½Π°Π±ΠΎΡ ΡΡΠ½ΠΊΡΠΈΠΉ Π΄Π»Ρ ΠΏΠΎΠ»Π½ΠΎΠΉ ΠΊΠ°ΡΡΠΈΠ½Ρ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΠ΅ΠΉ:
string getCommandLine();
DEPRECATED void SetGlobalVar(string& Name,string& Value)
DEPRECATED string GetGlobalVar (string& Name)
DEPRECATED string GetSceneFileName()
DEPRECATED void SetSceneFileName(string& Name)
void HighlightUIElement(string &ID, float time);
DEPRECATED void back(int steps=1);
DEPRECATED void open(string &Path);
DEPRECATED void ppp(string &path);
DEPRECATED void mv(string &path);
DEPRECATED void ptex(string &path);
DEPRECATED void imagemesh();
DEPRECATED void refmesh(string &path);
DEPRECATED void vertexpaint(string &path);
DEPRECATED void autopo(string &path);
DEPRECATED void repair(string &id);
DEPRECATED void bass();
DEPRECATED void undercut();
DEPRECATED void activate(string &id);
DEPRECATED void retopo();
DEPRECATED void retopopen();
DEPRECATED void ToRoom(string &name);
DEPRECATED bool IsInRoom(string &name);
DEPRECATED void AddNewVolume(string &name);
DEPRECATED void uv();
DEPRECATED void vox();
DEPRECATED void sphere(float x,float y,float z,float r,int mode);
DEPRECATED void cube(float x,float y,float z,float sizex,float sizey,float sizez,int mode);
DEPRECATED void surf();
DEPRECATED void cursurf();
DEPRECATED void voxelize();
DEPRECATED void mergeopt(string &opt);
mergeopt( "[voxelize=true][as_skin=true][skin=4.5]" );
DEPRECATED void merge(string &model);
DEPRECATED void prim(string &id);
DEPRECATED void apply();
DEPRECATED void ApplyAndKeepScale();
DEPRECATED void mapply();
DEPRECATED void recent3b();
DEPRECATED void Log(string &line);
int rand(int min,int max);
float randF(float min,float max);
void seed(int val);
DEPRECATED void ProgressBar(const string& message,int pos);
DEPRECATED void SetOrthoMode(bool value);
- Π‘ΠΌ. ΡΠ°ΠΊΠΆΠ΅
- π Π‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ ΡΠ²ΠΎΠΈΡ
Π΄ΠΈΠ°Π»ΠΎΠ³ΠΎΠ²
-
π ΠΠΈΠ°Π»ΠΎΠ³ΠΎΠ²ΡΠ΅ ΠΎΠΊΠ½Π°