Tagged 'General Scripting'

Checkbutton question

Hi!

I made a toolbar to quickly change object properties (like Visibility to Camera).
At the moment for each property I have two buttons one to activate a property and one to deactivate it. I would like to have only one button with two states which updates on each object selection to reflect the actual property of the selected object. This task is too tricky for my poor scripting abilities and I would be very grateful if somebody could help me with this.

kind regards
buddho

CAN NOT MOVE OBJECT CREATED BY STRUCT

I have an idea , i want create a plugin . I try to create object in struct but i can not move it . Can you help me ? Sorry my bad enligh

struct BoxStruct
(
-- Fields
w,l,h,

-- initialize Function
fn _init = (
if w == undefined then w = 10
if l == undefined then l = 10
if h == undefined then h = 10
Box width:w length:l height:h
),

-- Do initialize
init = _init()
)

BoxObj2 = BoxStruct()

--PROBLEM HERE I CAN NOT MOVE IT

move BoxObj2 [19.2515,0,0]

Extrude - not works correctly in 2013.

Hello all! Why this code works correctly in 2010 max and not in 2013 etc? In 2013 when we pressed on spinner buttons it makes new and new extrude, while it must updates by max undo and undo on commands.
I experienced whis extrude on button instead spineer - works! Also I experienced whis code that cloned objects on spinner entered - it updates and cloned correctly! So, i think that a problem in extrude option.

(
rollout A "" width:120 height:50 (
spinner sE "Extrude :" pos:[0,5] width:115 height:20 range:[-10000,10000,10] type:#float
fn fn_A = (
$.extrusionType = 1

Convert Text to Array

How to convert text "1,3,5-12" to array #(1,3,5,6,7,8,9,10,11,12) ?

Position XYZ nested in a Position List

Hi all, yet another issue im trying to solve with code. :)

i have a number of objects that have Position XYZ nested in a Position List. This is throwing off some code im using to select keyframes.

how can i remove this while maintaining the key frames?

thanks so much!

Open All groups (and sub-groups)

Hi everybody!

I need to create a script to simplify my work. I need to open all groups in the scene, but it means all sub-groups too (groups inside antoher group). Something like a loop in the command "Select All" and "Group Open", until open all groups, that's what I'm doing manually.
To close is simple, one time command, but to open...
I don't know script, my only experience are recording actions and create scripts with it. Very, very, very basic...

Can anyone help me?

Regards,

Caetano Brasil

Batch Manager Output Error

I've been working on an automation script and I seem to have hit a small wall on one of the steps I'm working on.

In this example I have a scene with an object and some basic cameras, "Front", "Back", "Left", "Right". I started working on this neat little script script that at first seemed to work well.

batchRenderMgr.netRender = true
Front = batchRenderMgr.CreateView $Front
Front.overridePreset = on
Front.outputFilename = "\\\\Server\outputs\teapot_frontview.tif"
Front.name = "Front"

Repeat for Back, left and right Cameras.

Combining or overlaying images through script?

Does Maxscript have the ability to overlay a transparent PNG on top of another image, like a stamp or such?

Instances in sweep modifier

Hi there

I have a quistion regarding custom shapes in the sweep modifier (instance shapes).
The custom shape I will be using have a modifier in the stack (ex. Edit_Spline).

When I add my sweep manually both the baseobject and the modifier is an instance (see the link).

https://www.dropbox.com/s/ieh5thty21zv9t3/sweepProb.jpg?dl=0

But when I use my script only the baseobject is an instance:

sweep01 = sweep()
profil = $Rectangle001
addmodifier $ sweep01
sweep01.CustomShape = 1
sweep01.shapes[1] = profil
sweep01.AssignCSType = 2
sweep01.PivotAlignment = 5

Deadline scripting

Hi all Im trying to find the max script option for setting tile options in deadline.

I thinks its going to be along the lines of SMTDSettings.tilesRender = 0 or something. I might be completely off though.

Syndicate content