cloth scripting problem introduced in 3DS Max 2013 and 2014?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2013   #1
cloth scripting problem introduced in 3DS Max 2013 and 2014?

Hi,

Iíve narrowed down a piece of code that represents a system exception problem I am experiencing in 3ds max 2013 and 3ds max 2014 64 bit on win 8 64 bit with cloth related scripting. This code works in 3ds max 2012 without a system exception error.

Code:
cur_obj=sphere() addmodifier cur_obj (Cloth()) cur_obj.modifiers[#Cloth].makepointGroup #{1..cur_obj.verts.count} cur_obj (cur_obj.name+"_all") cur_obj.modifiers[#Cloth].getGroupParamBlock(cur_obj.name+"_all")


Run the above code. It will create a sphere, add the cloth modifier and then create a group. That last line that tries to assign the group to a variable so that the script can access its properties. It gives a system exception.

I tried the other method for accessing a cloth group via maxscript:

Code:
cur_obj.cloth.group01.Active


That also returns a system exception.
Due to this, I canít change group properties via maxscript anymore. I want to run these two lines:

Code:
theGroupRT.Strength=100 theGroupRT.Is_Soft=true


I could really use help with this issue. It seems to be a new problem in 3DS Max 2013 which was not in 2012. Can people please try running the code to see if the results are consistent?
Thanks,
Adnan Hussain
 
Old 06 June 2013   #2
Ya, looks like a bug.

Try:

cur_obj.cloth[3].Active
 
Old 06 June 2013   #3
Thanks Frank. That does give me access to constraint properties. Hopefully they will fix this, as it used to work in previous versions. I did submit a bug report. The cloth tools are really powerful in Max.

Adnan
 
Old 06 June 2013   #4
The step that still can't be scripted is creating the actual constraint. I can use makepointgroup and create an unassigned group of points, but as soon as I try makeconstraint, I get the system exception error. I can't find a way to makeconstraint with the current bug.

Adnan
 
Old 06 June 2013   #5
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:08 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.