Jump to content
3DCoat Forums

Three command as default


rubeos
 Share

Recommended Posts

  • Advanced Member

Possibility to have the choice to have some default commands, opening 3DCoat or when start new project.

- Brush radius (lock or not lock)
- Simmetry (for me simmetry ON, and on specificy axis (X) as default)

- Perspective/orthographic command

Why? because every time I open 3Dcoat or start a new project I have to lose time to change those parameters.



 

Link to comment
Share on other sites

  • Member
we can set these value with script.

 

void main(){

  SetSliderValue("$PEN_RADIUS",10.00);/*Pen Radius 10*/

  SetBoolField("$SymmetryParams::EnableSymmetry",true);/*Enable Symmetry*/

  SetBoolField("$SymmetryParams::SymmX",true);/*X - Axis*/

  SetBoolField("$VIEW_ORTHO",true);/*Orthographic Projection*/

}

 

If we can run this script then 3dcoat startup, I think it's usefull.

Link to comment
Share on other sites

  • Advanced Member

 

we can set these value with script.
 
void main(){
  SetSliderValue("$PEN_RADIUS",10.00);/*Pen Radius 10*/
  SetBoolField("$SymmetryParams::EnableSymmetry",true);/*Enable Symmetry*/
  SetBoolField("$SymmetryParams::SymmX",true);/*X - Axis*/
  SetBoolField("$VIEW_ORTHO",true);/*Orthographic Projection*/
}
 
If we can run this script then 3dcoat startup, I think it's usefull.

 

 

 

I'm not able to use script.. :huh:  .I did some tests on intuition but have not worked: scripts --> create your scripts, ecc. I think I messed up :wacko:

What is the correct procedure? where do I paste the text of the script?

I use 3DCoat last beta version.

Edited by rubeos
Link to comment
Share on other sites

  • Member

1.Open this Path(It's OK anywhere like this D:\home\3dcoat\scripts)

C:\Users\****\Documents\3D-CoatV4\Scripts

 

2.make new folder named "yzk"

3.create new text file named "yzk_startup.script.txt"

4.copy and paste this script.

https://github.com/coverman03/3dcoat_script/blob/master/sample/yzk.sampleStartup.script.txt

 

5.save it.

 

6.In 3dcoat [scripts]-[Run Script] and select "yzk_startup.script.txt"

 

----completed

 

7.Let's see the [scripts]menu."yzk_startup.script.txt" has been added.

 you can excute this any time and define hotkey by "End key"

Link to comment
Share on other sites

  • Advanced Member

I tried but it does not work  :(  ... I have no symmetry at startup, brush radius and orthographic view.

I do not know what I was wrong:

 

------------------------------

1.Open this Path (It's OK anywhere like this D: \ home \ 3dcoat \ scripts)
C: \ Users \ **** \ Documents \ 3D-CoatV4 \ Scripts

I opened both of these paths, but I created the script only on this, right?:
C: \ Users \ **** \ Documents \ 3D-CoatV4 \ Scripts

 

2.make new folder named "yzk"
 

3.Create new text file named "yzk_startup.script.txt"

I created the new text named "yzk_startup.script.txt" in the 'scripts' folder...not into 'yzk' folder, correct?

 

 

4.copy and paste this script. https://github.com/c...rtup.script.txt

 5.Save it.

 6.In 3dcoat [Scripts] - [Run Script] and select "yzk_startup.script.txt"

---- completed

 

7.Let's see the [Scripts] menu. "Yzk_startup.script.txt" has been added.

you can excute this any time and define hotkey by "End key"



I see "yzk_startup.script.txt" and I run it by clicking on it but on interface nothing happens, and even restarted 3dcoat.

Link to comment
Share on other sites

  • Advanced Member

Ok, the script 'hello world' works perfectly, :) I followed this procedure:

1-Open C: \ Users \ **** \ Documents \ 3D-CoatV4 \ Scripts
2.make new folder named "hello world"
3.Create new text file named "yzk_helloWorld.script.txt"
4.copy and paste the script
5.Save it.
6.In 3dcoat [Scripts] - [Run Script] and select "yzk_helloWorld.script.txt"

-------------------------------------------------------------------------------------------------------------------

I tried to repeat the same procedure again for "yzk_startup.script.txt"

This time I noticed that some features are active and some not, when launch the script :

- Perspective / orthographic - works good
- Symmetry - works only if at least once I opened the window 'symmetry'
- Radius lock - does not work in any condition

Link to comment
Share on other sites

  • Advanced Member

I have done update too, and now:

 

- Perspective / orthographic - works good
- Symmetry - works good

- Radius lock - does not work

 

If possibile I'd like also turn off simmetry plane, before I had forgotten this..

Edited by rubeos
Link to comment
Share on other sites

  • Advanced Member

 

- Radius lock - does not work
 
I had thought Radius Lock can be set with bool command.
 
This is the command Toggle "Radius Lock"
cmd("$LOCK_SCREEN_RADIUS");
 
It works as only Toggle, and can't get & set the status.
so, looks like it's impossible.  :wacko:

 

 

Ok, not really matter ;)

-------------------------------------

 

ok, the script way are good, but my first idea was to have a way to costumize, like shaders: right click on a shader and I can set my favorite shader to default. At the next reboot I will have the shader without need to press any hotkey.

Similarly I would like these three commands ..and in general as possible all commands ^_^

 

 

 

Should I report it to mantis?

 

Are you asking me? I do not know, I suppose so :unsure:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...