ce89
claire
- 20 public contributions
- Member since
- Latest contribution Mar 2022
Delete render elements which start with "mk_"
Forum topic
I've been trying to find a way to delete render elements with a certain suffix in the elementname, in my case "mk_" but I cannot seem to find any resources that describe how to do this. There are plenty of resources on adding or deleting…
2 commentsDelete render elements which start with "mk_"
Forum topic
I've been trying to find a way to delete render elements with a certain suffix in the elementname, in my case "mk_" but I cannot seem to find any resources that describe how to do this. There are plenty of resources on adding or deleting…
0 commentsBreak all spline knots
Forum topic
Hi Guys, What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer. In short all I'm trying to do is break all thespline knots of a selected…
0 commentsBreak all spline knots
Forum topic
Hi Guys, What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer. In short all I'm trying to do is break all thespline knots of a selected…
3 commentsBreak all spline knots
Forum topic
Hi Guys, What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer. In short all I'm trying to do is break all thespline knots of a selected…
0 commentsSelect layer parent by name
Forum topic
Hi guys, Having real problems selecting only the layer parent itself (no nodes, just parent). Looked through the docs and googled it but no real answer! I am basically looking to select a layer i.e "my new layer" then create a nested layer…
2 commentscopy object with unique name + only 2 digits
Forum topic
Hi Guys, Really confused with this one. Tried lots of varients now, but cant seem to work out what's going wrong. Say you have a Box (it's name "Box_01", only 2 digits not the normal 3). I have written a few lines of code to copy this node…
10 commentsGet selected radiobutton text
Forum topic
Hi guys, I am writing a little script that names the selected object by the the selected radiobutton and dropdownlist text. With dropdownlist it is simple i.e ddl.selection as string returns the selected dropdownlist text. I cannot seem to…
2 commentsCan anyone tell me where i'm going wrong?
Forum topic
Hi Guys, I have a selection of camera's in my scene. Some start with "cam_" other don't. I want to use matchpattern to select the camera's that do start with this prefix. Below is what I have been trying to use. Please could someone tell…
3 commentsOpen new instance of 3d max?
Forum topic
As the title says, is it possible to open a new instance of 3dmax via maxscript. I have found other posts from past asking the same but with no real answer. Just wondered if it was possible? Many thanks!
2 commentsobject cloning with offset to selection
Forum topic
This is a bit Maxscript 101, but I cant seem to get it to work. Let's say you have 5 boxes (copies or instances) in a selection, I am looking to create a new clone object (sphere) offset in the -z direction. I have been looking online and…
4 commentsIgnore unassigned materials
Forum topic
I was playing around with a some maxscript and thought I would try and print the name of all the scene materials. I use the code below for i in scenematerials do print i.name The problem is it still prints material names that were assigned…
2 commentssetting random values based on array
Forum topic
I'm trying to assign a random value from a predefined array. For example i have an array and i want to assign a random value from my array to the height of my selected boxes. myArray = #(10, 20, 30, 40) for i in selection do ( i.height =…
2 commentsCan anyone tell me the problem here? :-)
Forum topic
Can't seem to get this simple example to work. Any help would be much appreicated. rollout myTest "My test" ( curmaxFileName = maxFileName newMaxFileName = substring curmaxFileName 1 9 Messagebox (newMaxFileName as string) ) createDialog…
6 commentscheck for duplicate render elements and delete
Forum topic
Is it possible to check for duplicate render elements by Element name and ObjectID and delete duplicates. I have done endless Google searches and cant seem to find anything referring to deleting duplicate render elements. I'm also fairly…
7 commentsgroup properties issue
Forum topic
I am trying to check if there is only one "main/top level" group present in my maxfile. Basically i want to check that everything has been grouped at a top level and doesn't consist of 10's, possibly 100's of of objects. I cannot seem to…
2 commentsgroup pivot to min.z
Forum topic
I am trying to set the pivot of a currently selected group to min.z. I can do this for an ungrouped object but I am struggling to find a way to do it if the current selection is a group. I have looked through Maxscript help but as a novice…
3 commentsPrompt user for confirmation
Forum topic
In javascript I would use the "confirm()" function to prompt the user either yes or no to continue. Thus taking away away the worry of accidently pressing the wrong button. I have searched the docs but cant seem to find anything similar in…
2 commentsPassing a variable into a path name
Forum topic
I'm still quite new to scripting in general so this could be totally wrong what I'm trying to do? In the addNewXRefFile i am trying to replace the maxFile name with a variable holding that name. Not sure why it doesn't work or even if it's…
2 commentsSave to same location + subfolder and another small question
Forum topic
Hi Guys, This is my first post here. I am just getting started with Maxscript and trying a number of smaller scripts to slowly ease my way in, but give a good idea on script structure etc. So far going well, but hit a bit of a stumbling…
4 comments