Remove all vray fur with maxscript

This widget could not be displayed.

Remove all vray fur with maxscript

Anonymous
Not applicable

Hi,

 

I'm working on some cleanup scripts for our asset pipeline and I'm looking for some maxscript code to delete all vrayfur from current open max file.

 

I tried to script remove it as a modifier or empty layers, but that seems to fail.

 

Grtz,

Fabian

0 Likes
Reply
Accepted solutions (4)
1,815 Views
5 Replies
Replies (5)

kevinvandecar
Community Manager
Community Manager
Accepted solution

Hi, I am not that familiar with VRay or their fur feature. Depending on how they add a reference to a native 3ds Max object, there would be a specific technique to remove that. If Vray is not present, then you may have to use the class id for the object. Someone more experienced with vray may answer here, but I would suggest to also try the ChaosGroup 3ds Max forums. See here: https://forums.chaosgroup.com/forum/v-ray-for-3ds-max-forums

 

hope it helps,

kevin

 


Kevin Vandecar
Developer Technical Services
Autodesk Developer Network



0 Likes

denisT.MaxDoctor
Advisor
Advisor

not many of us have VRay and its objects and modifiers. so it's difficult to give you a sure way to remove VRay things from the scene.

 

but you can help yourself.

go the MXS Listener, type and execute this string:

apropos "vrayfur"

and show us the result... maybe after that i will ask some other questions.

 

 

 

 

0 Likes

Anonymous
Not applicable
Accepted solution
Hi Kevin,

We found out what kinda class it is through using some code to reveal it
correct name/class, it is just "VRayFur" which makes this piece of code to
delete all VRayFur in an open scene:

select $*
(
for obj in selection do
if ((classOf obj)==VRayFur) do
delete obj
)

Afterwards we could use the STL checker modifier we use to analyse a Max
scene.

Grtz,
Fabian
0 Likes

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

for me it was only a question what surepclass of VRayFur... now I see it's a Node. so the deletion script is:

delete (getClassInstances VRayFur)
0 Likes

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

deleted as a dup

0 Likes