How to include own scripting?

 
 
 
Posted by:mbreidt
Data created:16 October 2012

Where can I get more information on how to add/include my own scripting code? I was under the impression that I could do that directly inside Lab?

Martin

Martin

 

Yes, just create an Ephere.Modeling.Script node and double click on it to enter the script editor. I will try to make an intro video to scripting soon.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I tried that a few days ago and this happened:  https://www.ephere.com/plugins/autodesk/max/lab/defect_1509.html

Tried that but I get an empty white window (/Script) that I cannot edit - guess we'll have to wait for the next release?

Also, why 'ephere.modeling'?

The tutorial would be great. Thanks!

Martin

Martin

 

BTW, another opportunity to pre-fill the element with some standard code, so new users can easily get started.

M.

Martin

 

Seems like I forgot to include a file in the install depoyment. Try putting the attached dll into the <windows_appdata>/ephere/library/bin/ directory and see if that fixes the issue. If it does I'll patch the install script for next build.

There is a basic script which should be auto-applied by default already.


Attached Files:

>ICSharpCode.AvalonEdit.dll (544768 bytes),

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Copied the file and restarted 3ds Max but same result: empty white 'sub-graph' window (title says '/Script') and no way to enter any text.

Martin

Martin

 

Strange, and no errors happen or get printed into the listener? Maybe it has something to do with WPF.. which Windows version are you using?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

  1. Create 'Geometry' object from Create > 'Ephere Lab Templates'
  2. Click on 'Edit Plugin'
  3. First message on listener: SQLite error (21): misuse at line 110832 of [a499ae3835]
  4. rt-click into LAB window and type 'script' to create Ephere.modeling.script node; each character produces another line like step #3
  5. double-click on 'Script' title of node (no output on listener)
  6. The View tab in the LAB window switches to an entirely white content

This is on Windows 7 x64 SP1 english and 3ds Max 2012 64-bit

Martin

 

Martin

 

I get the same white screen too with latest build (the exception about the temp file is gone, so that part is fixed). Same specs as Martin except I'm on max 2013x64

 

Yeah, still the same blank white subwindow with Lab 0.1.2.0

Martin

Martin

 

I am trying to figure out a way to effectively see what is going on. This seems to work for many other users to I'm not sure at this point why it doesn't work for others. My first guesses would be .NET 4.0 and WPF, but Win7 has both of these. I'll keep thinking...

Marsel Khadiyev (Software Developer, EPHERE Inc.)