v9.0 -- mcjBuilderA - script to build anything in Daz Studio - updated sept. 16 2017

1235711

Comments

  • mCasualmCasual Posts: 4,607
    edited December 1969

    RAMWolff said:
    Got it... now one other request. Is it possible to have the manual in a downloadable PDF?

    my mcasualsdazscripts3 is quite full in fact i had to delete the mcjBox pdf manual and a few images
    to have space for the mcjBuilderA manual updates

    for now i converted the manual .... which is not completed --- it's a 10 MB PDF and i placed it here
    https://sites.google.com/site/mcasualsdazscripts4/bric-a-brac/mcjBuilderABeta3_manual.pdf?attredirects=0&d=1

    the final manual will probably be more compact, like 5 MB and will be on mcjBuilderA's page ... someday :)

    sloppy.jpg
    1280 x 720 - 87K
  • Miss BMiss B Posts: 3,071
    edited April 2014

    RAMWolff said:
    Got it... now one other request. Is it possible to have the manual in a downloadable PDF?
    I was JUST thinking the same thing Richard. Thanks for asking.

    Casual said:
    Got it... now one other request. Is it possible to have the manual in a downloadable PDF?

    my mcasualsdazscripts3 is quite full in fact i had to delete the mcjBox pdf manual and a few images
    to have space for the mcjBuilderA manual updates

    for now i converted the manual .... which is not completed --- it's a 10 MB PDF and i placed it here
    https://sites.google.com/site/mcasualsdazscripts4/bric-a-brac/mcjBuilderABeta3_manual.pdf?attredirects=0&d=1

    the final manual will probably be more compact, like 5 MB and will be on mcjBuilderA's page ... someday :)
    Thank you kind sir. :coolsmile: This makes things easier for working off-lline.

    Post edited by Miss B on
  • RAMWolffRAMWolff Posts: 10,212
    edited December 1969

    Oh, thanks so much . I think then I'll just hold off for the full final of this. :-)

  • 3WC3WC Posts: 1,107
    edited April 2014

    For some reason this is all I get:


    Log file says:

    Executing DAZ Script file: C:/Users/Wes/Documents/DAZ 3D/Studio/My Library/Scripts/mcasual/mcjBuilderA.dsa
    WARNING: Script Error: Line 2307
    WARNING: SyntaxError: Parse error
    WARNING: Stack Trace:
    ()@:2307
    Error in script execution!


    Using Windows 7 64 bit
    DS 4.6.2.120 64bit

    error.png
    422 x 109 - 12K
    Post edited by 3WC on
  • mCasualmCasual Posts: 4,607
    edited April 2014

    see below

    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited December 1969

    wwes said:
    For some reason this is all I get:


    Log file says:

    Executing DAZ Script file: C:/Users/Wes/Documents/DAZ 3D/Studio/My Library/Scripts/mcasual/mcjBuilderA.dsa
    WARNING: Script Error: Line 2307
    WARNING: SyntaxError: Parse error
    WARNING: Stack Trace:
    ()@:2307
    Error in script execution!


    Using Windows 7 64 bit
    DS 4.6.2.120 64bit

    sorry !!

    it’s a tiny bug affecting only paths that include the “closePath” command and i didn’t use this recently

    in the image shown below you can see line 2307 which was mentioned in your error message

    you could use notepad/wordpad to change the ’ character with the ; character

    but ... 5 or 10 minutes from now i’ll post the corrected version as version “Beta 4” on mcjBluilderA’s web page

    the new version will also include the “square” extrusion path which is the default extrusion path -
    the first time you start mcjBuilderA it must search for it and be worried

    Image Attachments

    ohmy.jpg
    858 x 312 - 40K
  • mCasualmCasual Posts: 4,607
    edited December 1969

    the 84 moldings / extrusion profiles

    one could print them

    though one could also simply save it to disk

    page3.jpg
    908 x 557 - 58K
    page2.jpg
    908 x 557 - 60K
    page1.jpg
    908 x 557 - 58K
  • 3WC3WC Posts: 1,107
    edited April 2014

    Thanks for the update, but I'm still getting an error, this time:

    Executing DAZ Script file: C:/Users/Wes/Documents/DAZ 3D/Studio/My Library/Scripts/mcasual/mcjBuilderA.dsa
    WARNING: Script Error: Line 1785
    WARNING: TypeError: Result of expression 'extrusionPathCurves[0]' [undefined] is not an object.
    WARNING: Stack Trace:
    ()@:1785
    Error in script execution!

    I opened it up in Notepad, but I have no idea what's wrong now.

    1785 var n = extrusionPathCurves[0].length;

    EDIT:
    Okay, I just deleted the ".length", but then I got another error in 1787, which seemed to be fixed by changing "o" to "0", now I'm getting this:

    Error in script execution!
    Executing DAZ Script file: C:/Users/Wes/Documents/DAZ 3D/Studio/My Library/Scripts/mcasual/mcjBuilderA.dsa
    WARNING: Script Error: Line 1791
    WARNING: TypeError: Result of expression 'edges' [undefined] is not an object.
    WARNING: Stack Trace:
    ()@:1791
    Error in script execution!

    1791 var p0 = extrusionPathVertices[edges[0]];

    Post edited by 3WC on
  • mCasualmCasual Posts: 4,607
    edited December 1969

    the manual for mcjBuilderA Beta4 in PDF format, only 2 megs is right here

    https://sites.google.com/site/mcasualsdazscripts3/mcjbuildera/mcjBuilderA_Beta4_Manual.pdf?attredirects=0&d=1

  • mCasualmCasual Posts: 4,607
    edited April 2014

    wwes said:
    Thanks for the update, but I'm still getting an error, this time:

    Executing DAZ Script file: C:/Users/Wes/Documents/DAZ 3D/Studio/My Library/Scripts/mcasual/mcjBuilderA.dsa
    WARNING: Script Error: Line 1785
    WARNING: TypeError: Result of expression 'extrusionPathCurves[0]' [undefined] is not an object.
    WARNING: Stack Trace:
    ()@:1785
    Error in script execution!

    I opened it up in Notepad, but I have no idea what's wrong now.

    1785 var n = extrusionPathCurves[0].length;

    EDIT:
    Okay, I just deleted the ".length", but then I got another error in 1787, which seemed to be fixed by changing "o" to "0", now I'm getting this:

    Error in script execution!
    Executing DAZ Script file: C:/Users/Wes/Documents/DAZ 3D/Studio/My Library/Scripts/mcasual/mcjBuilderA.dsa
    WARNING: Script Error: Line 1791
    WARNING: TypeError: Result of expression 'edges' [undefined] is not an object.
    WARNING: Stack Trace:
    ()@:1791
    Error in script execution!

    1791 var p0 = extrusionPathVertices[edges[0]];

    sorry again

    you are probably trying to open an extrusion-path file which is in .obj format

    unfortunately ( yeah lets blame Fortune ) that's another option i didn't test recently and it's bugged !

    you could replace the code with

    function objPathToScriptedPathpath()
    {
     var n = extrusionPathCurves[0].length;
     var edges = extrusionPathCurves[0];
     var bClosePath = wchkClosePath.checked;
    

    this should at least prevent the mcjBuilder from halting

    then you should only load path files in .txt format from the mcjBuilder\paths\txt folder

    or write one

    later today i'll fix the script so it can handle .obj paths correctly

    that version will be named Beta 5


    not far from there is a line that reads

    wLog.append( "Move\t" + shorter( d ) + "\t" + "0" );

    changing it to this would improve things to

    wLog.append( "Move\t" + shorter( d ) );

    --------

    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited December 1969

    wwes said:
    ... but I'm still getting an error, ...

    Beta 5 will be posted in the next 5 minutes !

    beta5iscoming.jpg
    1446 x 792 - 118K
  • mCasualmCasual Posts: 4,607
    edited December 1969

    * * mcjBuilderA Beta 5 ** * * mcjBuilderA Beta 5 ** * * mcjBuilderA Beta 5 **


    fixed the issue with extrusion path scripts that were Loaded/Imported in .obj format

    same bat time same bat site --> https://sites.google.com/site/mcasualsdazscripts3/mcjbuildera

    five.png
    444 x 444 - 72K
  • 3WC3WC Posts: 1,107
    edited April 2014

    Casual said:

    sorry again

    you are probably trying to open an extrusion-path file which is in .obj format

    unfortunately ( yeah lets blame Fortune ) that's another option i didn't test recently and it's bugged !

    you could replace the code with

    function objPathToScriptedPathpath()
    {
     var n = extrusionPathCurves[0].length;
     var edges = extrusionPathCurves[0];
     var bClosePath = wchkClosePath.checked;
    

    this should at least prevent the mcjBuilder from halting

    Well, I don't know what I'm trying, because these errors stop the script from even loading. It's not just halting, it's not starting in the first place. Just tried Beta 5, am getting the same thing, script won't start up. I haven't checked the log file to see yet what the problem is.

    Thanks for your hard work, this looks like an awesome script, I just can't get it to work for me.

    EDIT: Ok, I deleted the entire mcjbuildera folder, then reinstalled the new beta 5, now it seems to work.

    Post edited by 3WC on
  • mCasualmCasual Posts: 4,607
    edited December 1969

    wwes said:

    ....

    EDIT: Ok, I deleted the entire mcjbuildera folder, then reinstalled the new beta 5, now it seems to work.

    yay!

    if someday the script stops working, and if you are acquainted with regedit
    you could delete the registry section for mcjBuilderA

    which is something like HKEY_USERS\ ... \Software\DAZ\Studio3\mcjBuilderA

    ---

    down the road i'll improve things :)

  • Miss BMiss B Posts: 3,071
    edited December 1969

    I have to find time to play with this! I have to find time . . . I have to . . .

    OK I downloaded Beta5, and REALLY need to find time to play with this. :coolsmile:

  • mCasualmCasual Posts: 4,607
    edited May 2014

    next version ( Beta 6 ) will have mathematical operators ( + - * / being the most used )

    here it was used to set the position of the corner of the frame, based on the size of the frame

    ( - width/2 , height /2 )

    closePath false
    profileUnits inches
    moldSize 1 1
    pathUnits feet
    tread 1
    define cadre w h
    moveto -w/2 0 h/2
    hardturn 90
    move w
    hardturn 90
    move h
    hardturn 90
    move w
    hardturn 90
    move h
    hardturn 90
    defineEnd
    cadre 4 2.25

    also the next version will stop trying to re-load the last saved path file on startup to reduce possibilities you get stuck!

    instead it will always start with the path script for a frame


    other mathematical functions like random() and sin() will let us do some pretty fancy stuff !! to be continued

    smoothoperators.jpg
    1920 x 1200 - 257K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited May 2014

    ( feature for the upcoming Beta 6 )

    here you see a path script using the sine function and the "fr" variable to modulate the X and Z position of the extrusion nozzle

    "fr" variable means "frame" its increases as the extrusion progresses , 1 frame per "ring".

    you will also have access to the current extrusion path length

    
    define segment
    MoveTo sin(10*fr*180/pi) 0 fr/3
    Ring
    defineEnd
    
    repeat 100
    segment
    repeatEnd
    
    sinewavin.jpg
    1920 x 1200 - 391K
    Post edited by mCasual on
  • IndigoJansonIndigoJanson Posts: 1,100
    edited December 1969

    What can I say... just took this for a test drive (with your manual at my side) and it's great! Very hand script for quickly building this kind of thing and shaders went on nicely too.

    I've only done simple rectangular frames so far but looking forward to exploring further.

    Thank you for making it and sharing with us. :)

  • mCasualmCasual Posts: 4,607
    edited December 1969

    Jindi said:
    What can I say... just took this for a test drive (with your manual at my side) and it's great! Very hand script for quickly building this kind of thing and shaders went on nicely too.

    I've only done simple rectangular frames so far but looking forward to exploring further.

    Thank you for making it and sharing with us. :)

    thanks for testing it ! you were brave :)

  • IndigoJansonIndigoJanson Posts: 1,100
    edited May 2014

    Casual said:

    you were brave :)

    Only in that I'm cautious about downloading and installing scripts... but one look at your avatar and I knew that was a face I could trust. ;)

    I will need to spend some time with this, right now I'm having trouble going beyond the rectangular and square frames (though that alone is a nice feature and textures go on beautifully). I'm sure the problem is between the monitor and chair (i.e. I've typed in an odd value somewhere), as your code looks self-explanatory and the manual makes sense.

    [EDIT: Yes, I was missing something obvious... I'm making progress now.]

    I've been learning to use Blender but this is a great time-saver and I love that I'll be able to add my own path scripts too.

    Just to prove that it's possible to get results right from the start, I roped in my ever-willing assistant to pose for this image. The frame uses a Gemologica tile (1 horizontal, 10 vertical gives me the best results).

    a5_frame2.png
    494 x 494 - 392K
    Post edited by IndigoJanson on
  • mCasualmCasual Posts: 4,607
    edited May 2014

    in version Beta 6, there will be a variable named rcpt ( meaning repeat-counter ) which will increase by 1 each time a "repeat" is used
    so in the example below, i used this variable to position each arch
    The columns were also made using mcjBuilder Beta6

    ( see "TAHITI Love Sick M/V" for the real life columns and arches )

     define arche x
    profile classic_ovolo
    StepAngle 11.25
    radius 1.5
    MoveTo x+.5 5 .5
    MoldSize 35 35
    setRot 0 90 90
    TurnUp 180
    break
    defineEnd
    
    define arch x
    profile square
    StepAngle 11.25
    radius 1.325
    MoveTo x+.675 5 -.25
    MoldSize 150 35
    setRot 0 90 90
    TurnUp 180
    break
    defineEnd
    
    repeat 4
    arche 4*grcpt-8
    arch 4*grcpt-8
    repeatEnd


    =======

    figure 2 - Beta 6 will possibly include the ability to make complex path-caps ( the upper wall )

    lostwall.jpg
    1920 x 1299 - 560K
    rippit.jpg
    1280 x 720 - 168K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited December 1969

    a short tutorial that can help you figure how to proceed when writing your extrusion path scripts

    i tried to concentrate on the essentials

    https://sites.google.com/site/mcasualsdazscripts4/mcjbuilteratutorial1

    extri.jpg
    800 x 450 - 34K
  • Miss BMiss B Posts: 3,071
    edited December 1969

    Thank you sir. Those arches look wonderful!! :coolsmile:

  • mCasualmCasual Posts: 4,607
    edited May 2014

    Miss B said:
    Thank you sir. Those arches look wonderful!! :coolsmile:

    thanks they'll be packaged with the next version as path files and maybe as props too

    ----

    maybe the tutorial will be extended to cover them ( which was the plan but /// time you know )

    flyhi.jpg
    1920 x 1080 - 765K
    eXtrusionF.jpg
    1920 x 1200 - 341K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited May 2014

    mcjSuperLathe which is similar to mcjBuilder
    had "cutouts" or "lids" so mcjBuilder Beta 6 will have them too

    http://www.daz3d.com/forums/discussion/1785/P30

    so you'll have handrails with closed ends

    or guitars

    the "ear-cutting" triangulation code comes from Bill Overman
    // http://www.codeplex.com/PolygonTriangulation

    strato.jpg
    600 x 600 - 59K
    misterjones.jpg
    600 x 600 - 115K
    Post edited by mCasual on
  • RAMWolffRAMWolff Posts: 10,212
    edited December 1969

    Very cool Casual!

  • Miss BMiss B Posts: 3,071
    edited December 1969

    It's definitely getting better and better. :coolsmile:

  • mCasualmCasual Posts: 4,607
    edited May 2014

    works ! kinda but the UVs on the floor are not ok yet

    gearup2.jpg
    1920 x 1080 - 236K
    gearup.jpg
    1600 x 900 - 1M
    Post edited by mCasual on
  • IndigoJansonIndigoJanson Posts: 1,100
    edited December 1969

    Excited at the way this continues to progress! Thanks for the tutorial, I must grab that although might be a few days before I can work through it.

  • mCasualmCasual Posts: 4,607
    edited May 2014

    oops incomplete triangulation

    guess i was lucky in a way, the test case revealed a rarely occurring problem

    luckyinaway.jpg
    1920 x 1200 - 829K
    theissue.jpg
    1920 x 1080 - 291K
    problo.jpg
    1920 x 1080 - 176K
    Post edited by mCasual on
Sign In or Register to comment.